7 #include <vapor/ExpatParseMgr.h>
21 class ViewpointParams;
23 class AnimationParams;
42 if (!_controlExec) _controlExec =
new ControlExec();
68 static int NewVisualizer(
int vizNum = -1);
73 static int RemoveVisualizer(
int viz);
86 static void InitializeViz(
int viz,
int width,
int height);
100 static void ResizeViz(
int viz,
int width,
int height);
120 static int Paint(
int viz,
bool force=
false);
140 static int ActivateRender(
int viz, std::string type,
int instance,
bool on);
167 static Params* GetParams(
int viz,
string type,
int instance);
183 static int SetParams(
int viz,
string type,
int instance, Params* p);
199 static int RemoveParams(
int viz,
string type,
int instance);
207 static int AddParams(
int viz,
string type, Params* p);
215 static int FindInstanceIndex(
int viz, RenderParams* p);
224 static int GetNumParamsInstances(
int viz,
string type);
232 static int GetNumBasicParamsClasses();
240 static int GetNumParamsClasses();
249 static int GetNumTabParamsClasses();
254 static const std::string GetShortName(
string& typetag);
262 static int SetCurrentParamsInstance(
int viz,
string type,
int instance);
269 static int GetCurrentRenderParamsInstance(
int viz,
string type);
276 static Params* GetCurrentParams(
int viz,
string type);
283 return GetCurrentParams(GetActiveVizIndex(),type);
289 return (
RegionParams*)GetActiveParams(Params::_regionParamsTag);
308 static Params* GetDefaultParams(
string type);
315 return (
int)_visualizers.size();
323 std::map<int, Visualizer*>::iterator it;
324 it = _visualizers.find(viz);
325 if (it == _visualizers.end())
return 0;
326 return _visualizers[viz];
333 static int GetActiveVizIndex();
340 static int SetActiveVizIndex(
int index);
356 int SaveSession(
string file);
377 int RestoreSession(
string file);
406 static DataMgrV3_0 *LoadData(vector <string> files,
bool deflt =
true);
431 static int DrawText(
int viz,
int x,
int y,
string font,
int size,
string text);
468 string GetCommandText(
int n);
478 bool CommandExists(
int offset);
493 static int EnableCapture(
string filename,
int viz);
505 static int SetErrorHandler(ErrorHandler* handler);
512 static void SetToDefault();
522 static int ValidateParams(
Params* p);
540 static const string _VAPORVersionAttr;
541 static const string _sessionTag;
542 static const string _globalParamsTag;
543 static const string _vizNumAttr;
544 static const string _visualizerTag;
545 static const string _visualizersTag;
547 bool elementEndHandler(ExpatParseMgr* pm,
int depth, std::string& tag);
548 bool elementStartHandler(ExpatParseMgr* pm,
int depth, std::string& tag,
const char **attrs);
551 void createAllDefaultParams();
553 static void reinitializeParams(
bool doOverride);
555 void destroyParams();
556 static std::map<int,Visualizer*> _visualizers;
560 Params* _tempParsedParams;
562 vector<int> _parsingInstance;
565 #endif //ControlExec_h
A pure virtual class for managing parameters used in visualization.
Provides API for VAPOR visualizer User Interfaces (UIs)
A class for describing a 3D axis-aligned region in user space.
static Params * GetActiveParams(string type)
static ViewpointParams * GetActiveVPParams()
static DataMgrV3_0 * GetDataMgr()
static RegionParams * GetActiveRegionParams()
A class for describing the viewpoint and lights in a 3D VAPOR scene.
static ControlExec * getInstance()
Obtain the singleton ControlExec object.
A class for performing OpenGL rendering in VAPOR GUI Window.
static AnimationParams * GetActiveAnimationParams()
static int GetNumVisualizers()
A class that specifies parameters used in animation.
static Visualizer * GetVisualizer(int viz)
A cache based data reader.