00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 using Microsoft.Xna.Framework; 00006 using Microsoft.Xna.Framework.Graphics; 00007 00008 namespace visLU2 00009 { 00013 public struct ArrowPlot 00014 { 00015 int sizeX; //dimensions for the plot positions 00016 int sizeY; 00017 int stepsizeX; 00018 int stepsizeY; 00019 List<float> scale; 00020 List<Vector2> position; //sampled plot positions 00021 List<float> orientation; //the interpolated orientations angles for all plot positions 00022 List<float> magnitude; //the interpolated magnitudes for all plot positions 00023 List<Color> color; //array for color coding 00024 00025 #region Properties 00026 public int StepsizeX 00027 { 00028 get { return stepsizeX; } 00029 set { stepsizeX = value; } 00030 } 00031 public int StepsizeY 00032 { 00033 get { return stepsizeY; } 00034 set { stepsizeY = value; } 00035 } 00036 00037 public List<float> Scale 00038 { 00039 get { return scale; } 00040 set { scale = value; } 00041 } 00042 public List<Vector2> Position 00043 { 00044 get { return position; } 00045 set { position = value; } 00046 } 00047 public List<float> Orientation 00048 { 00049 get { return orientation; } 00050 set { orientation = value; } 00051 } 00052 public List<float> Magnitude 00053 { 00054 get { return magnitude; } 00055 set { magnitude = value; } 00056 } 00057 public List<Color> Color 00058 { 00059 get { return color; } 00060 set { color = value; } 00061 } 00062 00063 #endregion 00064 00065 public ArrowPlot(int sizeX, int sizeY) 00066 { 00067 this.sizeX = sizeX; 00068 this.sizeY = sizeY; 00069 stepsizeX = 20; 00070 stepsizeY = 20; 00071 00072 scale = new List<float>(); 00073 position = new List<Vector2>(); 00074 orientation = new List<float>(); 00075 magnitude = new List<float>(); 00076 color = new List<Color>(); 00077 } 00078 00079 public void clear() 00080 { 00081 scale.Clear(); 00082 position.Clear(); 00083 orientation.Clear(); 00084 magnitude.Clear(); 00085 color.Clear(); 00086 } 00087 } 00088 }