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 VetsUtil::MyBase | |
MyBase () | |
const string & | getClassName () const |
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 () |
ParamsBaseType | GetParamsBaseTypeId () |
virtual void | SetRootParamNode (ParamNode *pn) |
Public Member Functions inherited from VAPoR::ParsedXml | |
virtual | ~ParsedXml () |
virtual bool | elementStartHandler (ExpatParseMgr *, int, std::string &, const char **)=0 |
virtual bool | elementEndHandler (ExpatParseMgr *, int, std::string &)=0 |
virtual bool | charHandler (ExpatParseMgr *, const XML_Char *, int) |
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 VetsUtil::MyBase | |
static void | SetErrMsg (const char *format,...) |
Record a formatted error message. More... | |
static void | SetErrMsg (int errcode, const char *format,...) |
Record a formatted error message and an error code. More... | |
static const char * | GetErrMsg () |
static void | SetErrCode (int err_code) |
Record an error code. More... | |
static int | GetErrCode () |
Retrieve the current error code. More... | |
static void | SetErrMsgCB (ErrMsgCB_T cb) |
static ErrMsgCB_T | GetErrMsgCB () |
static void | SetErrMsgFilePtr (FILE *fp) |
static const FILE * | SetErrMsgFilePtr () |
static void | SetDiagMsg (const char *format,...) |
Record a formatted diagnostic message. More... | |
static const char * | GetDiagMsg () |
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
static DiagMsgCB_T | GetDiagMsgCB () |
static void | SetDiagMsgFilePtr (FILE *fp) |
static bool | EnableErrMsg (bool enable) |
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 VetsUtil::MyBase | |
typedef void(* | ErrMsgCB_T )(const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T )(const char *msg) |
Public Types inherited from VAPoR::ParamsBase | |
typedef int | ParamsBaseType |
Public Attributes inherited from VAPoR::ParsedXml | |
ParsedXml * | previousClass |
Static Public Attributes inherited from VetsUtil::MyBase | |
static char * | ErrMsg |
static int | ErrCode |
static int | ErrMsgSize |
static FILE * | ErrMsgFilePtr |
static ErrMsgCB_T | ErrMsgCB |
static char * | DiagMsg |
static int | DiagMsgSize |
static FILE * | DiagMsgFilePtr |
static DiagMsgCB_T | DiagMsgCB |
static bool | Enabled |
Protected Member Functions inherited from VetsUtil::MyBase | |
void | SetClassName (const string &name) |
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 |
Static Protected Attributes inherited from VAPoR::ParsedXml | |
static const string | _stringType |
static const string | _longType |
static const string | _doubleType |
static const string | _typeAttr |
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 |
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.
|
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 152 of file params.h.
References isLocal().
|
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 |
|
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 |
|
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().
|
inlinestatic |
|
pure virtual |
Pure virtual method specifying name to display on the associated tab.
string | name to identify associated tab |
|
virtual |
|
inlinevirtual |
|
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 319 of file params.h.
Referenced by 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 |
|
virtual |
|
inlinevirtual |