36 ControlExec(std::vector<string> appParamsNames = std::vector<string>(), std::vector<string> appRenderParamsNames = std::vector<string>(),
size_t cacheSize = 1000,
int nThreads = 0);
58 : AbsolutePath(absolute), RelativePath(relative) {}
214 int Paint(
string name,
bool force =
false);
235 int ActivateRender(
string winName,
string dataSetName,
string renderType,
string renderName,
bool on);
250 void RemoveRenderer(
string winName,
string dataSetName,
string renderType,
string renderName,
bool hasOpenGLContext);
284#ifdef VAPOR3_0_0_ALPHA
296 int SavePreferences(
string file);
311 int RestorePreferences(
string file);
335 int OpenData(
const std::vector<string> &files,
const std::vector<string> &options,
string dataSetName,
string type =
"vdc");
345 std::vector<string>
GetDataNames()
const {
return (_dataStatus->GetDataMgrNames()); }
391 bool RenderLookup(
string instName,
string &winName,
string &dataSetName,
string &rendererType)
const;
411 int DrawText(
string winName,
string text,
int x,
int y,
int size,
float color[3],
int type = 0);
429 int DrawText(
string text,
int x,
int y,
int size,
float color[3],
int type = 0);
475 size_t UndoSize()
const {
return (_paramsMgr->UndoSize()); }
480 size_t RedoSize()
const {
return (_paramsMgr->RedoSize()); }
608 int AddFunction(
string scriptType,
string dataSetName,
string scriptName,
string script,
const vector<string> &inputVarNames,
const vector<string> &outputVarNames,
609 const vector<string> &outputVarMeshes,
bool coordFlag =
false);
652 bool GetFunction(
string scriptType,
string dataSetName,
string scriptName,
string &script, vector<string> &inputVarNames, vector<string> &outputVarNames, vector<string> &outputVarMeshes,
653 bool &coordFlag)
const;
678 std::map<string, Visualizer *> _visualizers;
686 Visualizer *getVisualizer(
string winName)
const
688 std::map<string, Visualizer *>::const_iterator it;
689 it = _visualizers.find(winName);
690 if (it == _visualizers.end())
return NULL;
694 int openDataHelper(
bool reportErrs);
695 bool _undoRedoRenderer(
bool undoFlag);
696 bool _undoRedoVisualizer(
bool undoFlag);
698 int activateClassRenderers(
string vizName,
string dataSetName,
string pClassName, vector<string> instNames,
bool reportErrs);
700 void _removeRendererHelper(
string winName,
string dataSetName,
string paramsType,
string renderName,
bool removeFromParamsFlag,
bool hasOpenGLContext);
702 void _autoStretchExtents(
string dataSetName);
704 void _setDefaultOrigin(
string datasetName);
A class for managing CalcEngine class instances.
RelAndAbsPathsExistException(const std::string &absolute, const std::string &relative)
const std::string AbsolutePath
const std::string RelativePath
Provides API for VAPOR visualizer User Interfaces (UIs)
void RemoveRenderer(string winName, string dataSetName, string renderType, string renderName, bool hasOpenGLContext)
bool GetSaveStateEnabled() const
virtual int LoadState(string stateFile, LoadStateRelAndAbsPathsExistAction relAndAbsPathsExistAction=LoadStateRelAndAbsPathsExistAction::LoadAbs)
bool GetFunction(string scriptType, string dataSetName, string scriptName, string &script, vector< string > &inputVarNames, vector< string > &outputVarNames, vector< string > &outputVarMeshes, bool &coordFlag) const
vector< string > GetVisualizerNames() const
void SetNumThreads(size_t nthreads)
void RemoveFunction(string scriptType, string dataSetName, string scriptName)
int DrawTextNormalizedCoords(string winName, string text, float x, float y, int size, float color[3], int type=0)
void ClearAllRenderCaches()
int SaveSession(string file)
std::vector< string > GetDataNames() const
void ClearRenderCache(const string &winName, const string &inst)
size_t GetNumThreads() const
virtual void LoadState(const XmlNode *node)
string GetRemoveVisualizerUndoTag() const
Return tag pushed to the undo stack when RemoveVisualizer() is called.
std::vector< string > GetFunctionNames(string scriptType, string dataSetName) const
int GetNumVisualizers() const
void SetSaveStateEnabled(bool enabled)
int DrawText(string text, int x, int y, int size, float color[3], int type=0)
int NewVisualizer(string name)
int ResizeViz(string name, int width, int height)
string GetRemoveRendererUndoTag() const
Return tag pushed to the undo stack when RemoveRenderer() is called.
int ClearText(string winName)
bool RenderLookup(string instName, string &winName, string &dataSetName, string &rendererType) const
int ActivateRender(string winName, string dataSetName, const RenderParams *rp, string renderName, bool on)
GLManager::Vendor GetGPUVendor() const
int DrawTextNormalizedCoords(string text, float x, float y, int size, float color[3], int type=0)
ParamsMgr * GetParamsMgr() const
DataStatus * GetDataStatus() const
string GetFunctionStdout(string scriptType, string dataSetName, string scriptName) const
void CloseData(string dataSetName)
string GetActivateRendererUndoTag() const
Return tag pushed to the undo stack when ActivateRender() is called.
ControlExec(std::vector< string > appParamsNames=std::vector< string >(), std::vector< string > appRenderParamsNames=std::vector< string >(), size_t cacheSize=1000, int nThreads=0)
string MakeRendererNameUnique(string name) const
int EnableAnimationCapture(string winName, bool doEnable, string filename="")
int Paint(string name, bool force=false)
string GetNewVisualizerUndoTag() const
Return tag pushed to the undo stack when NewVisualizer() is called.
void RemoveAllRenderers(string winName, bool hasOpenGLContext=false)
static string MakeStringConformant(string s)
std::vector< string > GetRenderInstances(string winName, string renderType) const
int ActivateRender(string winName, string dataSetName, string renderType, string renderName, bool on)
Activate or Deactivate a renderer.
static vector< string > GetAllRenderClasses()
int OpenData(const std::vector< string > &files, const std::vector< string > &options, string dataSetName, string type="vdc")
int InitializeViz(string name, GLManager *glManager)
void RemoveVisualizer(string name, bool hasOpenGLContext=false)
LoadStateRelAndAbsPathsExistAction
int AddFunction(string scriptType, string dataSetName, string scriptName, string script, const vector< string > &inputVarNames, const vector< string > &outputVarNames, const vector< string > &outputVarMeshes, bool coordFlag=false)
int EnableImageCapture(string filename, string winName, bool fast=false)
int DrawText(string winName, string text, int x, int y, int size, float color[3], int type=0)
std::vector< string > GetRenderClassNames(string winName) const
RenderParams * GetRenderParams(string winName, string dataSetName, string renderType, string instName) const
void SetCacheSize(size_t sizeMB)
A class for describing the currently loaded dataset.
A singleton class for managing Params instances.
A Params subclass for managing parameters used by Renderers.
A class for performing OpenGL rendering in VAPOR GUI Window.
Contains references to context scope OpenGL data.