VAPoR  3.0.0
Public Member Functions | Static Public Member Functions | List of all members
VAPoR::HelloParams Class Reference

Class that supports drawing a line connecting two points. More...

#include <helloparams.h>

Inheritance diagram for VAPoR::HelloParams:
VAPoR::RenderParams VAPoR::Params VetsUtil::MyBase VAPoR::ParamsBase

Public Member Functions

 HelloParams (XmlNode *parent, int winnum)
 
const std::string getShortName ()
 
virtual ~HelloParams ()
 
virtual void restart ()
 set initial values More...
 
virtual void Validate (int type)
 
virtual bool IsOpaque ()
 Indicates that line geometry is always opaque. More...
 
virtual bool usingVariable (const std::string &varname)
 
double GetLineThickness ()
 
const vector< double > GetPoint1 ()
 Obtain the first endpoint in user coordinates. More...
 
const vector< double > GetPoint2 ()
 Obtain the second endpoint in user coordinates. More...
 
void SetPoint1 (vector< double > pt)
 Set the first endpoint. More...
 
void SetPoint2 (vector< double > pt)
 Set the second endpoint. More...
 
int SetLineThickness (double val)
 
int SetConstantColor (const double rgb[3])
 
const vector< double > GetConstantColor ()
 
- Public Member Functions inherited from VAPoR::RenderParams
virtual bool IsEnabled ()
 
virtual void SetEnabled (bool val)
 
virtual void SetVariableName (string varName)
 
const string GetVariableName ()
 
const string GetFirstVariableName ()
 
virtual void SetFieldVariableNames (vector< string > varNames)
 
const vector< string > GetFieldVariableNames ()
 
bool IsTerrainMapped ()
 
int SetTerrainMapped (bool val)
 
virtual void SetRendererName (const string &renName)
 
virtual const string GetRendererName ()
 
virtual int SetRefinementLevel (int numrefinements)
 
virtual int GetRefinementLevel ()
 
virtual int GetCompressionLevel ()
 
virtual int SetCompressionLevel (int val)
 
void setBypass (int timestep)
 
void setPartialBypass (int timestep)
 
void setAllBypass (bool val)
 
bool doBypass (int ts)
 
bool doAlwaysBypass (int ts)
 
virtual int GetFidelityLevel ()
 
virtual void SetFidelityLevel (int level)
 
virtual bool GetIgnoreFidelity ()
 
virtual void SetIgnoreFidelity (bool val)
 
void SetFidelityToDefaults ()
 
void SetHistoStretch (float factor)
 
float GetHistoStretch ()
 
double getMinEditBound ()
 
double getMaxEditBound ()
 
void setMinEditBound (double val)
 
void setMaxEditBound (double val)
 
void SetEditBounds (vector< double >bounds)
 
virtual MapperFunction * GetMapperFunc ()
 
void SetCursorCoords (const vector< double > &coords)
 
const vector< double > GetCursorCoords ()
 
virtual int SetVariables3D (bool val)
 
virtual bool VariablesAre3D ()
 
const vector< long > GetGrid ()
 
int SetGrid (const int grid[3])
 
int AlignGridToData (bool val)
 
bool IsAlignedToData ()
 
const vector< long > GetGridAlignStrides ()
 
int SetGridAlignStrides (const vector< long > &strides)
 
void getDataAlignment (double rakeExts[6], int rakeGrid[3], size_t timestep)
 
virtual int SetHeightVariableName (const string &varName)
 
virtual const string GetHeightVariableName ()
 
 RenderParams (XmlNode *parent, const string &name, int winnum)
 
- Public Member Functions inherited from VAPoR::Params
 Params (const Params &p)
 Default copy constructor. More...
 
virtual ~Params ()
 
bool isRenderParams () const
 
bool isBasicParams () const
 
virtual int GetVizNum ()
 
virtual int SetLocal (bool lg)
 
virtual bool IsLocal ()
 
virtual BoxGetBox ()
 
 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...
 
virtual int GetInstanceIndex ()
 
virtual void SetVizNum (int vnum)
 
- 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 ()
 destructor..destroys the xml tree based at the root node. More...
 
ParamNodeGetRootNode () const
 
const string GetName () const
 
virtual long GetValueLong (const string &tag, const vector< long > &defaultVal=_emptyLongVec)
 
virtual double GetValueDouble (const string &tag, const vector< double > &defaultVal=_emptyDoubleVec)
 
virtual const string GetValueString (const string &tag, const string &defaultVal=_emptyString)
 
virtual const vector< long > GetValueLongVec (const string &tag, const vector< long > &defaultVal=_emptyLongVec)
 
virtual const vector< double > GetValueDoubleVec (const string &tag, const vector< double > &defaultVal=_emptyDoubleVec)
 
virtual void GetValueStringVec (const string &tag, vector< string > &vec, const vector< string > &defaultVal=_emptyStringVec)
 
virtual int SetValueLong (string tag, const char *description, long value, Params *p)
 
virtual int SetValueLong (string tag, const char *description, const vector< long > &value, Params *p)
 
virtual int SetValueDouble (string tag, const char *description, double value, Params *p)
 
virtual int SetValueDouble (string tag, const char *description, const vector< double > &value, Params *p)
 
virtual int SetValueString (string tag, const char *description, const string &value, Params *p)
 
virtual int SetValueStringVec (string tag, const char *description, const vector< string > &value, Params *p)
 
ParamsBaseType GetParamsBaseTypeId ()
 
virtual void SetRootParamNode (ParamNode *pn)
 
ParamsBaseGetParamsBase (const vector< string > &path) const
 
int SetParamsBase (const vector< string > &path, ParamsBase *pbase)
 
int RemoveParamsBase (const vector< string > &path, ParamsBase *pbase)
 
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)
 
virtual ParamNodebuildNode ()
 
ParamNodeGetCurrentNode ()
 
ParamNodePush (string &tag, ParamsBase *pBase=0)
 
ParamNodePop ()
 
void Remove (const string &name)
 
const map< string, string > & GetAttributes ()
 
void Clear ()
 

Static Public Member Functions

static ParamsBaseCreateDefaultInstance ()
 
- Static Public Member Functions inherited from VAPoR::RenderParams
static void InsertParamsInstance (int pType, int winnum, int posn, RenderParams *dp)
 
- Static Public Member Functions inherited from VAPoR::Params
static bool IsRenderingEnabled (int winnum)
 
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 ParamsGetParamsInstance (int pType, int winnum=-1, int instance=-1)
 
static ParamsGetParamsInstance (const std::string tag, int winnum=-1, int instance=-1)
 
static ParamsGetCurrentParamsInstance (int pType, int winnum)
 
static ParamsGetDefaultParams (ParamsBase::ParamsBaseType pType)
 
static ParamsGetDefaultParams (const string &tag)
 
static void SetDefaultParams (int pType, Params *p)
 
static void SetDefaultParams (const string &tag, Params *p)
 
static ParamsCreateDefaultParams (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 vector< Params * > & GetAllParamsInstances (int pType, int winnum)
 
static int GetAllParamsInstances (string tag, vector< Params * > &)
 
static int DeleteVisualizer (int viznum)
 
static vector< Params * > & GetAllParamsInstances (const std::string tag, int winnum)
 
static map< int, vector< Params * > > * cloneAllParamsInstances (int winnum)
 
static vector< Params * > * cloneAllDefaultParams ()
 
- 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 ParamsBaseCreateDefaultParamsBase (int pType)
 
static ParamsBaseCreateDefaultParamsBase (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 int GetNumBasicParamsClasses ()
 
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
 
- 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 VAPoR::Params
virtual int SetValueLong (string tag, const char *description, long value)
 
virtual int SetValueLong (string tag, const char *description, const vector< long > &value)
 
virtual int SetValueDouble (string tag, const char *description, double value)
 
virtual int SetValueDouble (string tag, const char *description, const vector< double > &value)
 
virtual int SetValueString (string tag, const char *description, const string &value)
 
virtual int SetValueStringVec (string tag, const char *description, const vector< string > &value)
 
- Protected Member Functions inherited from VetsUtil::MyBase
void SetClassName (const string &name)
 

Detailed Description

Class that supports drawing a line connecting two points.

Author
Alan Norton
Version
3.0
Date
June 2015

Definition at line 17 of file helloparams.h.

Constructor & Destructor Documentation

VAPoR::HelloParams::HelloParams ( XmlNode *  parent,
int  winnum 
)
virtual VAPoR::HelloParams::~HelloParams ( )
virtual

Member Function Documentation

static ParamsBase* VAPoR::HelloParams::CreateDefaultInstance ( )
inlinestatic

Required static method for extensibility:

Return values
ParamsBase*pointer to a default Params instance

Definition at line 22 of file helloparams.h.

const vector<double> VAPoR::HelloParams::GetConstantColor ( )

Determine the current color (in r,g,b)

Return values
constdouble rgb[3];
double VAPoR::HelloParams::GetLineThickness ( )
inline

Determine line thickness in voxels

Return values
doubleline thickness

Definition at line 51 of file helloparams.h.

const vector<double> VAPoR::HelloParams::GetPoint1 ( )
inline

Obtain the first endpoint in user coordinates.

Definition at line 55 of file helloparams.h.

const vector<double> VAPoR::HelloParams::GetPoint2 ( )
inline

Obtain the second endpoint in user coordinates.

Definition at line 59 of file helloparams.h.

const std::string VAPoR::HelloParams::getShortName ( )
inlinevirtual

Pure virtual method on Params. Provide a short name suitable for use in the GUI

Return values
stringname

Implements VAPoR::Params.

Definition at line 27 of file helloparams.h.

virtual bool VAPoR::HelloParams::IsOpaque ( )
inlinevirtual

Indicates that line geometry is always opaque.

Implements VAPoR::RenderParams.

Definition at line 38 of file helloparams.h.

virtual void VAPoR::HelloParams::restart ( )
virtual

set initial values

Implements VAPoR::Params.

int VAPoR::HelloParams::SetConstantColor ( const double  rgb[3])

Specify the color of line. Color rgb values between 0 and 1

Parameters
[in]constdouble rgb[3]
Return values
0if successful
int VAPoR::HelloParams::SetLineThickness ( double  val)
inline

Set the line thickness

Parameters
[in]doublethickness
Return values
int0 if success

Definition at line 73 of file helloparams.h.

void VAPoR::HelloParams::SetPoint1 ( vector< double >  pt)
inline

Set the first endpoint.

Definition at line 63 of file helloparams.h.

void VAPoR::HelloParams::SetPoint2 ( vector< double >  pt)
inline

Set the second endpoint.

Definition at line 67 of file helloparams.h.

virtual bool VAPoR::HelloParams::usingVariable ( const std::string &  varname)
inlinevirtual

Determine if the specified variable is being used

Implements VAPoR::RenderParams.

Definition at line 42 of file helloparams.h.

virtual void VAPoR::HelloParams::Validate ( int  type)
virtual

Validate current settings

Parameters
[in]booluseDefault determines whether or not to set values to default.

Implements VAPoR::Params.


The documentation for this class was generated from the following file: