1 #region Using Statements
3 using System.Collections.Generic;
6 using Microsoft.Xna.Framework;
7 using Microsoft.Xna.Framework.Graphics;
17 public bool updateCamera;
19 public bool updateData;
22 public EngineState(
bool _updateCamera,
bool _loadData,
bool _updateData,
bool _drawData)
24 updateCamera = _updateCamera;
26 updateData = _updateData;
81 public bool shaderDebugMode =
false;
82 public bool debugOutput =
false;
84 public string CVD =
"deuteranopy";
85 public bool recolor =
false;
94 #region xna draw window
95 public int GuiWindowWidth = 1024;
96 public int GuiWindowHeight = 768;
97 public int XNADrawSurfaceWidth = 690;
98 public int XNADrawSurfaceHeight = 700;
99 public int fullscreenWidth = 1024;
100 public int fullscreenHeight = 786;
102 public bool showInfoText =
true;
105 #region transfer function
107 public float[] distinctDensityValues;
108 public int[] countDensityValues;
109 public List<TransferControlPoint> colorControlPoints =
new List<TransferControlPoint>();
110 public List<TransferControlPoint> alphaControlPoints =
new List<TransferControlPoint>();
111 public List<TransferControlPoint> cvdColorControlPoints =
new List<TransferControlPoint>();
117 public String dataDir =
"Data\\";
118 public String dataFilename =
"lobster.dat";
122 public String saveFilename =
"scene.png";
123 public bool saveView =
false;
130 public int xDataRange = 100;
131 public int yDataRange = 100;
132 public int zDataRange = 100;
133 public float xSliceValue = 0.5f;
134 public float ySliceValue = 0.5f;
135 public float zSliceValue = 0.5f;
138 public bool enableTransferFunction =
true;
139 public bool enableTransferAlphaValues =
false;
140 public bool showDensityValue =
true;
144 public bool CVDTFOptimized =
false;
146 public bool enableCVDView =
false;
147 public bool simulate =
false;
148 public bool originalView =
true;
149 public bool recoloredView =
false;
150 public bool cvdView =
false;
151 public bool simulatedView =
false;
152 public float lambda = 0.0f;
154 public bool triggerRecolor =
false;
155 public bool triggerOptimize =
false;
156 public bool triggerSimulate =
false;
159 public bool enableClippingPlane =
true;
162 public bool perspectiveProjection =
true;
163 public bool maximumIntensityProjection =
false;
167 public bool enableFrontToBackBlend =
false;
170 public bool enableShading =
true;
171 public Vector3 directLightPos =
new Vector3(1.0f, 4.0f, 1.0f);
174 public int gradientSampleSize = 1;
175 public float currSampleDist = 1.0f;
176 public float baseSampleDist = 0.5f;
177 public bool enableAvgFilter =
false;
178 public bool enableGaussFilter =
false;
182 public Vector3 position = Vector3.Zero;
183 public Vector3 cameraInput = Vector3.Zero;
184 public Vector3 dataOrigin = Vector3.Zero;
196 private static void calculateViewportDimension()