VAPoR
0.1
|
A Params subclass for managing parameters used by Renderers. More...
#include <params.h>
Public Member Functions | |
RenderParams (XmlNode *parent, const string &name, int winnum) | |
bool | isEnabled () |
virtual void | setEnabled (bool value) |
virtual bool | usingVariable (const std::string &varname)=0 |
virtual void | SetRefinementLevel (int level) |
virtual int | GetRefinementLevel () |
virtual int | GetCompressionLevel () |
virtual int | GetFidelityLevel () |
virtual void | SetFidelityLevel (int level) |
virtual bool | GetIgnoreFidelity () |
virtual void | SetIgnoreFidelity (bool val) |
virtual void | SetCompressionLevel (int val) |
virtual const float * | getSelectedPointLocal () |
virtual bool | IsOpaque ()=0 |
void | setBypass (int timestep) |
void | setPartialBypass (int timestep) |
void | setAllBypass (bool val) |
bool | doBypass (int ts) |
bool | doAlwaysBypass (int ts) |
virtual bool | UsesMapperFunction () |
virtual bool | VariablesAre3D () |
![]() | |
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 () |
![]() | |
MyBase () | |
const string & | getClassName () const |
![]() | |
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) |
![]() | |
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 float | getCameraDistance (ViewpointParams *vpp, const double exts[6]) |
Static method specifies the distance from camera to an axis-aligned box. More... | |
![]() | |
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 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 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 | |
![]() | |
typedef void(* | ErrMsgCB_T) (const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T) (const char *msg) |
![]() | |
typedef int | ParamsBaseType |
![]() | |
ParsedXml * | previousClass |
![]() | |
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 |
![]() | |
void | SetClassName (const string &name) |
![]() | |
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 () |
![]() | |
string | _paramsBaseName |
int | _parseDepth |
![]() | |
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 const string | _stringType |
static const string | _longType |
static const string | _doubleType |
static const string | _typeAttr |
VAPoR::RenderParams::RenderParams | ( | XmlNode * | parent, |
const string & | name, | ||
int | winnum | ||
) |
Standard RenderParams constructor.
|
inline |
|
inline |
|
static |
Static method specifies the distance from camera to an axis-aligned box.
|
virtual |
virtual method indicates current Compression level.
integer | compression level, 0 is most compressed |
|
virtual |
virtual method indicates current fidelity level
float | between 0 and 1 |
|
virtual |
virtual method indicates fidelity is ignored
bool |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
pure virtual |
void VAPoR::RenderParams::setAllBypass | ( | bool | val | ) |
SetAllBypass is set to indicate all timesteps should be bypassed. Should be set true when a render failure is independent of timestep. Should be set false when state changes and rendering can be reattempted.
[in] | val | indicates whether it is being turned on or off. |
|
inline |
|
virtual |
virtual method sets current Compression level.
[in] | val | compression level, 0 is most compressed |
|
inlinevirtual |
|
virtual |
virtual method sets current fidelity level
[in] | float | level |
|
virtual |
virtual method sets whether fidelity is ignored
[in] | bool |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Indicate that this class supports use of the VAPOR MapperFunction Default is false. Currently needed to use colorbars.
bool | true if this RenderParams can have a MapperFunction |
|
pure virtual |
Pure virtual method indicates if a particular variable name is currently used by the renderer.
[in] | varname | name of the variable |
|
inlinevirtual |
Indicate whether the variables are 3D or not. Primarily for RenderParams that have a 2D vs 3D switch Must override if the renderer is for 2D variables.
bool | true if variables are 3D. |