|
VAPoR
0.1
|
A pure virtual class for managing parameters used in visualization. More...
#include <params.h>
Public Member Functions | |
| Params (XmlNode *parent, const string &name, int winNum) | |
| Params (int winNum, const string &name) | |
| Deprecated constructor, needed for built-in classes that do not have associated XML node: More... | |
| Params (const Params &p) | |
| Default copy constructor. More... | |
| virtual | ~Params () |
| virtual const std::string & | getShortName ()=0 |
| virtual bool | isRenderParams () |
| virtual Params * | deepCopy (ParamNode *nd=0) |
| virtual void | restart ()=0 |
| Pure virtual method, sets a Params instance to its default state. More... | |
| virtual int | getVizNum () |
| virtual void | setLocal (bool lg) |
| bool | isLocal () |
| virtual void | setVizNum (int vnum) |
| virtual void | SetVisualizerNum (int viznum) |
| virtual int | GetVisualizerNum () |
| virtual bool | reinit (bool) |
| virtual Box * | GetBox () |
| virtual int | getOrientation () |
| virtual void | calcContainingStretchedBoxExtentsInCube (float extents[6], bool rotated=false) |
| void | calcRotatedStretchedBoxExtentsInCube (float extents[6]) |
| virtual bool | isDomainConstrained () |
Public Member Functions inherited from VAPoR::ParamsBase | |
| ParamsBase (XmlNode *parent, const string &name) | |
| ParamsBase (const string &name) | |
| Default constructor. More... | |
| ParamsBase (const ParamsBase &pbase) | |
| Copy constructor. More... | |
| virtual | ~ParamsBase () |
| void | SetParent (XmlNode *parent) |
| virtual bool | elementStartHandler (ExpatParseMgr *pm, int depth, string &tag, const char **attribs) |
| virtual bool | elementEndHandler (ExpatParseMgr *pm, int depth, string &tag) |
| ParamNode * | GetRootNode () |
| virtual ParamNode * | buildNode () |
| void | SetFlagDirty (const string &flag) |
| const string & | GetName () const |
| ParamsBaseType | GetParamsBaseTypeId () |
| virtual void | SetRootParamNode (ParamNode *pn) |
Static Public Member Functions | |
| static int | GetCurrentParamsInstanceIndex (int pType, int winnum) |
| static int | GetCurrentParamsInstanceIndex (const std::string tag, int winnum) |
| static void | SetCurrentParamsInstanceIndex (int pType, int winnum, int instance) |
| static Params * | GetParamsInstance (int pType, int winnum=-1, int instance=-1) |
| static Params * | GetParamsInstance (const std::string tag, int winnum=-1, int instance=-1) |
| static Params * | GetCurrentParamsInstance (int pType, int winnum) |
| static Params * | GetDefaultParams (ParamsBase::ParamsBaseType pType) |
| static Params * | GetDefaultParams (const string &tag) |
| static void | SetDefaultParams (int pType, Params *p) |
| static void | SetDefaultParams (const string &tag, Params *p) |
| static Params * | CreateDefaultParams (int pType) |
| static int | GetNumParamsInstances (int pType, int winnum) |
| static int | GetNumParamsInstances (const std::string tag, int winnum) |
| static void | AppendParamsInstance (int pType, int winnum, Params *p) |
| static void | AppendParamsInstance (const std::string tag, int winnum, Params *p) |
| static void | RemoveParamsInstance (int pType, int winnum, int instance) |
| static void | InsertParamsInstance (int pType, int winnum, int posn, Params *dp) |
| static vector< Params * > & | GetAllParamsInstances (int pType, int winnum) |
| static vector< Params * > & | GetAllParamsInstances (const std::string tag, int winnum) |
| static map< int, vector< Params * > > * | cloneAllParamsInstances (int winnum) |
| static vector< Params * > * | cloneAllDefaultParams () |
| static bool | IsRenderingEnabled (int winnum) |
Static Public Member Functions inherited from VAPoR::ParamsBase | |
| static ParamsBaseType | GetTypeFromTag (const string &tag) |
| static const string & | GetTagFromType (ParamsBaseType t) |
| static ParamsBase * | CreateDefaultParamsBase (int pType) |
| static ParamsBase * | CreateDefaultParamsBase (const string &tag) |
| static int | RegisterParamsBaseClass (const string &tag, BaseCreateFcn fcn, bool isParams) |
| static int | ReregisterParamsBaseClass (const string &tag, const string &newtag, bool isParams) |
| static int | GetNumParamsClasses () |
| static bool | IsParamsTag (const string &tag) |
Additional Inherited Members | |
Public Types inherited from VAPoR::ParamsBase | |
| typedef int | ParamsBaseType |
Protected Member Functions inherited from VAPoR::ParamsBase | |
| virtual ParamNode * | getCurrentParamNode () |
| virtual void | setCurrentParamNode (ParamNode *pn) |
| ParamNode * | GetCurrentNode () |
| ParamNode * | Push (string &tag, ParamsBase *pBase=0) |
| ParamNode * | Pop () |
| void | Remove (const string &name) |
| const map< string, string > & | GetAttributes () |
| void | Clear () |
Protected Attributes inherited from VAPoR::ParamsBase | |
| string | _paramsBaseName |
| int | _parseDepth |
Static Protected Attributes inherited from VAPoR::ParamsBase | |
| static vector< ParamsBase * > | dummyParamsBaseInstances |
| static const string | _emptyString |
| static map< string, int > | classIdFromTagMap |
| static map< int, string > | tagFromClassIdMap |
| static map< int, BaseCreateFcn > | createDefaultFcnMap |
| static int | numParamsClasses |
| static int | numEmbedClasses |
A pure virtual class for managing parameters used in visualization.
| VAPoR::Params::Params | ( | XmlNode * | parent, |
| const string & | name, | ||
| int | winNum | ||
| ) |
|
inline |
| VAPoR::Params::Params | ( | const Params & | p | ) |
Default copy constructor.
|
virtual |
Destroy object
parent constructor parameter.
|
inlinestatic |
Static method that appends a new instance to the list of existing Params instances for a particular visualizer.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of specified visualizer window |
| [in] | p | pointer to Params instance being appended |
|
inlinestatic |
Static method that appends a new instance to the list of existing Params instances for a particular visualizer. Based on the XML tag of the Params class.
|
inlinevirtual |
Virtual method supports rotated boxes such as probe Specifies an axis-aligned box containing the rotated box. By default it just finds the box extents. Caller must supply extents array, which gets its values filled in.
| [out] | float[6] | Extents of rotated box |
| void VAPoR::Params::calcRotatedStretchedBoxExtentsInCube | ( | float | extents[6] | ) |
|
static |
Static method that produces clones of all the default Params instances for a particular visualizer.
| [in] | winnum | index of specified visualizer window |
| std::vector | of default Params pointers associated with the window, indexed by ParamsBase TypeIDs |
|
static |
|
inlinestatic |
Static method that constructs a default Params instance.
| [in] | pType | ParamsBase TypeId of the params class |
| Pointer | to new default Params instance |
|
virtual |
Pure virtual method that clones a Params instance. Derived from ParamsBase. With Params instances, the argument is ignored.
| [in] | nd | ParamNode* instance corresponding to the ParamsBase instance |
Reimplemented from VAPoR::ParamsBase.
Referenced by VAPoR::EventRouter::captureMouseDown().
|
inlinestatic |
Static method that produces a list of all the Params instances for a particular visualizer.
| [in] | pType | ParamsBase TypeId of the params class. |
| [in] | winnum | index of specified visualizer window. |
| vector | of the Params pointers associated with the window . |
|
inlinestatic |
Static method that produces a list of all the Params instances for a particular visualizer, based on the XML Tag of the Params class.
| [in] | tag | XML tag associated with Params class |
| [in] | winnum | index of specified visualizer window |
| vector | of the Params pointers associated with the window |
|
inlinevirtual |
|
inlinestatic |
Static method that returns the instance that is current in the identified window.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of identified window |
| Pointer | to specified Params instance |
Definition at line 157 of file params.h.
References isLocal().
Referenced by VAPoR::EventRouter::captureMouseDown(), and VAPoR::GLWindow::getModeName().
|
inlinestatic |
Static method that identifies the instance that is current in the identified window.
| [in] | pType | ParamsBase is the typeID of the params class |
| [in] | winnum | index of identified window |
| instance | index that is current |
|
inlinestatic |
|
inlinestatic |
Static method that returns the default Params instance. With non-render params this is the global Params instance.
| [in] | pType | ParamsBase TypeId of the params class |
| Pointer | to specified Params instance |
Definition at line 167 of file params.h.
Referenced by VAPoR::VizWinMgr::getApplicableParams().
|
inlinestatic |
|
inlinestatic |
Static method that tells how many instances of a Params class exist for a particular visualizer.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of specified visualizer window |
| number | of instances that exist |
Definition at line 210 of file params.h.
Referenced by VAPoR::VizWinMgr::getApplicableParams().
|
inlinestatic |
|
inlinevirtual |
|
static |
Static method that finds the Params instance. if instance is -1, the current instance is found. if winnum is -1, the default instance is found.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of window |
| [in] | instance | index |
Referenced by VAPoR::VizWinMgr::getActiveParams(), and VAPoR::VizWinMgr::getApplicableParams().
|
inlinestatic |
|
pure virtual |
Pure virtual method specifying name to display on the associated tab.
| string | name to identify associated tab |
|
virtual |
|
inlinevirtual |
Identify the visualizer associated with this instance. With global pr default Params this is -1
Definition at line 312 of file params.h.
Referenced by VAPoR::EventRouter::captureMouseDown().
|
inlinestatic |
Static method that inserts a new instance into the list of existing Params instances for a particular visualizer.
| [in] | pType | ParamsBase TypeId of the params class. |
| [in] | winnum | index of specified visualizer window. |
| [in] | posn | index where new instance will be inserted. |
| [in] | dp | pointer to Params instance being appended. |
|
inlinevirtual |
This virtual method specifies that the box associated with this Params is constrained to stay within data extents. Override this method to allow the manipulator to move the box outside of the data extents. Default returns true.
| bool | true if box not allowed to go completely outside of data. |
|
inline |
Indicate whether a Params is local or not.
| is | true if local |
Definition at line 324 of file params.h.
Referenced by VAPoR::VizWinMgr::getApplicableParams(), and GetCurrentParamsInstance().
|
static |
Static method that tells whether or not any renderer is enabled in a visualizer.
| [in] | winnum | index of specified visualizer window |
| True | if any renderer is enabled |
|
inlinevirtual |
Virtual method indicating whether a Params is a RenderParams instance. Default returns false.
| returns | true if it is a RenderParams |
|
inlinevirtual |
|
static |
Static method that removes an instance from the list of existing Params instances for a particular visualizer.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of specified visualizer window |
| [in] | instance | index of instance to remove |
|
pure virtual |
Pure virtual method, sets a Params instance to its default state.
|
inlinestatic |
Static method that specifies the instance that is current in the identified window.
| [in] | pType | ParamsBase TypeId of the params class |
| [in] | winnum | index of identified window |
| [in] | instance | index of instance to be made current |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Specify whether a params is local or global.
| [in] | lg | boolean is true if is local |
Definition at line 316 of file params.h.
Referenced by VAPoR::EventRouter::captureMouseDown().
|
virtual |
|
inlinevirtual |
1.8.13