VAPOR3 3.9.4
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VAPoR::ParticleParams Class Reference

#include <ParticleParams.h>

Inheritance diagram for VAPoR::ParticleParams:
VAPoR::RenderParams VAPoR::ParamsBase Wasp::MyBase

Public Member Functions

 ParticleParams (DataMgr *dataMgr, ParamsBase::StateSave *ssave)
 
 ParticleParams (DataMgr *dataMgr, ParamsBase::StateSave *ssave, std::string classType)
 
 ParticleParams (DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
 
virtual ~ParticleParams ()
 
virtual size_t GetRenderDim () const override
 
virtual string GetActualColorMapVariableName () const override
 
- Public Member Functions inherited from VAPoR::RenderParams
 RenderParams (DataMgr *dataMgr, ParamsBase::StateSave *ssave, const string &classname, int maxdim=3)
 
 RenderParams (DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node, int maxdim=3)
 
 RenderParams (const RenderParams &rhs)
 
RenderParamsoperator= (const RenderParams &rhs)
 
virtual ~RenderParams ()
 
virtual int Initialize ()
 
int ResetUserExtentsToDataExents (string var="")
 
virtual bool IsEnabled () const
 
virtual void SetEnabled (bool val)
 
virtual void SetVariableName (string varName)
 
string GetVariableName () const
 
virtual void SetAuxVariableNames (vector< string > varName)
 
vector< string > GetAuxVariableNames () const
 
bool UseAuxVariable () const
 
string GetFirstVariableName () const
 
virtual void SetFieldVariableNames (vector< string > varNames)
 
void SetXFieldVariableName (std::string varName)
 
void SetYFieldVariableName (std::string varName)
 
void SetZFieldVariableName (std::string varName)
 
vector< string > GetFieldVariableNames () const
 
std::string GetXFieldVariableName () const
 
std::string GetYFieldVariableName () const
 
std::string GetZFieldVariableName () const
 
vector< string > GetDistribVariableNames () const
 
virtual void SetRefinementLevel (int numrefinements)
 
virtual int GetRefinementLevel () const
 
virtual int GetCompressionLevel () const
 
virtual void SetCompressionLevel (int val)
 
void SetHistoStretch (float factor)
 
float GetHistoStretch () const
 
virtual ColorbarPbaseGetColorbarPbase () const
 Obtain ColorbarPBase (used to specify Color Bar properties) from RenderParams.
 
virtual void SetColorbarPbase (ColorbarPbase *pb)
 
virtual MapperFunctionGetMapperFunc (string varname)
 
virtual void RemoveMapperFunc (string varname)
 Remove the mapper function for the named variable.
 
virtual void SetMapperFunc (string varname, MapperFunction *tf)
 
virtual BoxGetBox () const
 
void SetCursorCoords (const float coords[2])
 
void GetCursorCoords (float coords[2]) const
 
virtual void SetHeightVariableName (string varname)
 
virtual string GetHeightVariableName () const
 
bool UseSingleColor () const
 
virtual void SetColorMapVariableName (string varname)
 
virtual string GetColorMapVariableName () const
 
virtual string GetActualColorMapVariableName () const =0
 
void SetUseSingleColor (bool val)
 
void SetConstantColor (const float rgb[3])
 
void SetConstantColor (vector< float > rgb)
 
void GetConstantColor (float rgb[3]) const
 
vector< float > GetConstantColor () const
 
void SetConstantOpacity (float o)
 
float GetConstantOpacity () const
 
size_t GetCurrentTimestep () const
 
void SetCurrentTimestep (size_t ts)
 
virtual TransformGetTransform () const
 Access the transform used by the renderer.
 
void initializeBypassFlags ()
 
virtual void SetDefaultVariables (int dim, bool secondaryColormapVariable)
 
virtual size_t GetRenderDim () const =0
 
virtual bool HasIsoValues () const
 This should be overriden by params for renderes that support iso values to return true.
 
virtual vector< double > GetIsoValues (const string &variable)
 
virtual void SetIsoValues (const string &variable, const vector< double > &values)
 
vector< double > GetIsoValues ()
 
void SetIsoValues (const vector< double > &values)
 
virtual bool GetOrientable () const
 Return whether a renderer can be oriented - IE, can this renderer be rotated about an origin point?
 
vector< double > GetSlicePlaneRotation () const
 
vector< double > GetSlicePlaneOrigin () const
 
vector< double > GetSlicePlaneNormal () const
 
double GetXSlicePlaneOrigin () const
 
double GetYSlicePlaneOrigin () const
 
double GetZSlicePlaneOrigin () const
 
void SetXSlicePlaneOrigin (double xOrigin)
 
void SetYSlicePlaneOrigin (double yOrigin)
 
void SetZSlicePlaneOrigin (double zOrigin)
 
void SetSlicePlaneQuad (const std::vector< CoordType > &quad)
 
std::vector< CoordTypeGetSlicePlaneQuad () const
 
- Public Member Functions inherited from VAPoR::ParamsBase
 ParamsBase (StateSave *ssave, const string &classname)
 
 ParamsBase (StateSave *ssave, XmlNode *node)
 
 ParamsBase (const ParamsBase &rhs)
 Copy constructor.
 
ParamsBaseoperator= (const ParamsBase &rhs)
 
 ParamsBase (ParamsBase &&)=delete
 
ParamsBaseoperator= (ParamsBase &)=delete
 
bool operator== (const ParamsBase &rhs) const
 Equivalence operator.
 
bool operator!= (const ParamsBase &rhs) const
 
virtual ~ParamsBase ()
 
void SetParent (ParamsBase *parent)
 
XmlNodeGetNode () const
 
void BeginGroup (const string &description)
 
void EndGroup ()
 
void IntermediateChange ()
 
virtual vector< long > GetValueLongVec (const string tag) const
 
virtual vector< long > GetValueLongVec (const string tag, const vector< long > &defaultVal) const
 
virtual long GetValueLong (const string tag, long defaultVal) const
 
virtual vector< double > GetValueDoubleVec (const string tag) const
 
virtual vector< double > GetValueDoubleVec (const string tag, const vector< double > &defaultVal) const
 
virtual double GetValueDouble (const string tag, double defaultVal) const
 
virtual vector< string > GetValueStringVec (const string tag) const
 
virtual vector< string > GetValueStringVec (const string tag, const vector< string > &defaultVal) const
 
virtual string GetValueString (const string tag, string defaultVal) const
 
virtual void SetValueLongVec (const string &tag, string description, const vector< long > &values)
 
virtual void SetValueLong (const string &tag, string description, long value)
 
virtual void SetValueDoubleVec (const string &tag, string description, const vector< double > &values)
 
virtual void SetValueDouble (const string &tag, string description, double value)
 
virtual void SetValueStringVec (const string &tag, string description, const vector< string > &values)
 
virtual void SetValueString (const string &tag, string description, const string &value)
 
string GetName () const
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Static Public Member Functions

static string GetClassType ()
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
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.
 
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 bool GetEnableErrMsg ()
 

Static Public Attributes

static const std::string ShowDirectionTag
 
static const std::string DirectionScaleTag
 Scale the length of particles velocity vector.
 
static const std::string StrideTag
 Load every nth particle. Useful for improving performance.
 
static const std::string RenderRadiusScalarTag
 Scale the rendered particle size.
 
static const std::string RenderRadiusVariableTag
 
static const std::string RenderRadiusVariableStrengthTag
 
static const std::string RenderRadiusBaseTag
 
static const std::string RecalculateRadiusBaseRequestTag
 
static const std::string RenderLegacyTag
 
static const std::string LightingEnabledTag
 
static const std::string PhongAmbientTag
 
static const std::string PhongDiffuseTag
 
static const std::string PhongSpecularTag
 
static const std::string PhongShininessTag
 
- Static Public Attributes inherited from VAPoR::RenderParams
static const string _variableNameTag
 
static const string _colorMapVariableNameTag
 
static const string _heightVariableNameTag
 
static const string _useSingleColorTag
 
static const string _constantColorTag
 
static const string _CompressionLevelTag
 
static const string _RefinementLevelTag
 
static const string _xFieldVariableNameTag
 
static const string _yFieldVariableNameTag
 
static const string _zFieldVariableNameTag
 
static const string _constantOpacityTag
 
static const string CustomHistogramDataTag
 
static const string CustomHistogramRangeTag
 
static const string LightingEnabledTag
 
static const string UserNameTag
 
static const string XSlicePlaneOriginTag
 
static const string YSlicePlaneOriginTag
 
static const string ZSlicePlaneOriginTag
 
static const string XSlicePlaneRotationTag
 
static const string YSlicePlaneRotationTag
 
static const string ZSlicePlaneRotationTag
 
static const string SampleRateTag
 
static const string SliceOffsetTag
 
static const string SlicePlaneNormalXTag
 
static const string SlicePlaneNormalYTag
 
static const string SlicePlaneNormalZTag
 
static const string SlicePlaneOrientationModeTag
 
- Static Public Attributes inherited from Wasp::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
 

Additional Inherited Members

- Public Types inherited from VAPoR::RenderParams
enum class  SlicePlaneOrientationMode { Rotation = 0 , Normal = 1 }
 
- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Protected Member Functions inherited from VAPoR::RenderParams
bool InitBoxFromVariable (size_t ts, string varName)
 
virtual bool GetUseSingleColorDefault () const
 
- Protected Member Functions inherited from VAPoR::ParamsBase
 ParamsBase (StateSave *ssave)
 
void Remove (const string &name)
 
const map< string, string > & GetAttributes ()
 
void Clear ()
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 
- Protected Attributes inherited from VAPoR::RenderParams
DataMgr_dataMgr
 
int _maxDim
 
- Protected Attributes inherited from VAPoR::ParamsBase
StateSave_ssave
 
XmlNode_node
 

Detailed Description

Definition at line 8 of file ParticleParams.h.

Constructor & Destructor Documentation

◆ ParticleParams() [1/3]

VAPoR::ParticleParams::ParticleParams ( DataMgr dataMgr,
ParamsBase::StateSave ssave 
)

◆ ParticleParams() [2/3]

VAPoR::ParticleParams::ParticleParams ( DataMgr dataMgr,
ParamsBase::StateSave ssave,
std::string  classType 
)

◆ ParticleParams() [3/3]

VAPoR::ParticleParams::ParticleParams ( DataMgr dataMgr,
ParamsBase::StateSave ssave,
XmlNode node 
)

◆ ~ParticleParams()

virtual VAPoR::ParticleParams::~ParticleParams ( )
virtual

Member Function Documentation

◆ GetActualColorMapVariableName()

virtual string VAPoR::ParticleParams::GetActualColorMapVariableName ( ) const
inlineoverridevirtual

Due to legacy code, the "ColorMapVariableName" is not the name of the variable by which the renderer is colormapping, but rather the variable it should use if it is not already using its primary variable or a constant color. This function should return the name of the variable that is currently being used for colormapping.

Implements VAPoR::RenderParams.

Definition at line 20 of file ParticleParams.h.

◆ GetClassType()

static string VAPoR::ParticleParams::GetClassType ( )
inlinestatic

Definition at line 15 of file ParticleParams.h.

◆ GetRenderDim()

virtual size_t VAPoR::ParticleParams::GetRenderDim ( ) const
inlineoverridevirtual

Return the renderer's current dimension

For renderers that are only capable of operating on variables of a fixed dimensionality (e.g. 2D or 3D) this function will return a constant value: the number of dimensions. For renderers that can operate on a variable of varying dimension this method returns the current dimensionality. The returned value will be between 0 and 3. A value of zero will be returned if the current dimensionality cannot be determined.

Implements VAPoR::RenderParams.

Definition at line 19 of file ParticleParams.h.

Member Data Documentation

◆ DirectionScaleTag

const std::string VAPoR::ParticleParams::DirectionScaleTag
static

Scale the length of particles velocity vector.

Definition at line 32 of file ParticleParams.h.

◆ LightingEnabledTag

const std::string VAPoR::ParticleParams::LightingEnabledTag
static

Definition at line 46 of file ParticleParams.h.

◆ PhongAmbientTag

const std::string VAPoR::ParticleParams::PhongAmbientTag
static

Specifies the Phong Ambient lighting coefficient (https://en.wikipedia.org/wiki/Phong_reflection_model). Typical values: 0.0 to 1.0.

Definition at line 50 of file ParticleParams.h.

◆ PhongDiffuseTag

const std::string VAPoR::ParticleParams::PhongDiffuseTag
static

Specifies the Phong Diffuse lighting coefficient (https://en.wikipedia.org/wiki/Phong_reflection_model). Typical values: 0.0 to 1.0.

Definition at line 54 of file ParticleParams.h.

◆ PhongShininessTag

const std::string VAPoR::ParticleParams::PhongShininessTag
static

Specifies the Phong Shininess lighting coefficient (https://en.wikipedia.org/wiki/Phong_reflection_model). Typical values: 0.0 to 100.0.

Definition at line 62 of file ParticleParams.h.

◆ PhongSpecularTag

const std::string VAPoR::ParticleParams::PhongSpecularTag
static

Specifies the Phong Specular lighting coefficient (https://en.wikipedia.org/wiki/Phong_reflection_model). Typical values: 0.0 to 1.0.

Definition at line 58 of file ParticleParams.h.

◆ RecalculateRadiusBaseRequestTag

const std::string VAPoR::ParticleParams::RecalculateRadiusBaseRequestTag
static

Definition at line 43 of file ParticleParams.h.

◆ RenderLegacyTag

const std::string VAPoR::ParticleParams::RenderLegacyTag
static

Definition at line 44 of file ParticleParams.h.

◆ RenderRadiusBaseTag

const std::string VAPoR::ParticleParams::RenderRadiusBaseTag
static

Definition at line 42 of file ParticleParams.h.

◆ RenderRadiusScalarTag

const std::string VAPoR::ParticleParams::RenderRadiusScalarTag
static

Scale the rendered particle size.

Definition at line 38 of file ParticleParams.h.

◆ RenderRadiusVariableStrengthTag

const std::string VAPoR::ParticleParams::RenderRadiusVariableStrengthTag
static

Definition at line 40 of file ParticleParams.h.

◆ RenderRadiusVariableTag

const std::string VAPoR::ParticleParams::RenderRadiusVariableTag
static

Definition at line 39 of file ParticleParams.h.

◆ ShowDirectionTag

const std::string VAPoR::ParticleParams::ShowDirectionTag
static

Show direction/velocity of particles. The field variables must be set to the particles velocity vector components (this is likely done automatically if using DCP).

Definition at line 29 of file ParticleParams.h.

◆ StrideTag

const std::string VAPoR::ParticleParams::StrideTag
static

Load every nth particle. Useful for improving performance.

Definition at line 35 of file ParticleParams.h.


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