VAPoR  0.1
Public Member Functions | List of all members
VAPoR::AnimationParams Class Reference

A class that specifies parameters used in animation. More...

#include <animationparams.h>

Inheritance diagram for VAPoR::AnimationParams:
VAPoR::Params VAPoR::ParamsBase

Public Member Functions

 AnimationParams (int winnum)
 
 ~AnimationParams ()
 Destructor. More...
 
int getCurrentFrameNumber ()
 
int getCurrentTimestep ()
 
int getStartFrameNumber ()
 
int getEndFrameNumber ()
 
int getMinTimestep ()
 
int getMaxTimestep ()
 
int getMinFrame ()
 
int getMaxFrame ()
 
void setMinTimestep (int minF)
 
void setMaxTimestep (int maxF)
 
KeyframegetAnyKeyframe (int index)
 
void setAnyKeyframe (int index, Keyframe *k)
 
KeyframegetEditableKeyframe (int editableIndex)
 
vector< Keyframe * > & getAllKeyframes ()
 
void deleteAnyKeyframe (int index)
 
void deleteEditableKeyframe (int editableIndex)
 
void rescaleKeyframes (const float ratio[3])
 
void insertEditableKeyframe (int editableIndex, Keyframe *keyframe)
 
void insertHiddenKeyframe (int index, Keyframe *keyframe)
 
int getTotalKeyframeIndex (int editableIndex)
 
int getEditableIndex (int index)
 
int getTotalNumKeyframes ()
 
bool keyframingEnabled ()
 
void enableKeyframing (bool onoff)
 
int getNumEditableKeyframes ()
 
- Public Member Functions inherited from VAPoR::Params
 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 ParamsdeepCopy (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 BoxGetBox ()
 
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)
 

Additional Inherited Members

- Public Types inherited from VAPoR::ParamsBase
typedef int ParamsBaseType
 
- Static Public Member Functions inherited from VAPoR::Params
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 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 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 bool IsParamsTag (const string &tag)
 
- 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
 

Detailed Description

A class that specifies parameters used in animation.

Author
Alan Norton
Version
$Revision$
Date
$Date$ When this class is local, it controls the time-steps in one visualizer. The global (shared) AnimationParams controls the animation in any number of visualizers.

Definition at line 44 of file animationparams.h.

Constructor & Destructor Documentation

◆ AnimationParams()

VAPoR::AnimationParams::AnimationParams ( int  winnum)

Constructor

Parameters
[in]intwinnum The number of the visualizer, or -1 for a global AnimationParams

◆ ~AnimationParams()

VAPoR::AnimationParams::~AnimationParams ( )

Destructor.

Member Function Documentation

◆ deleteAnyKeyframe()

void VAPoR::AnimationParams::deleteAnyKeyframe ( int  index)

◆ deleteEditableKeyframe()

void VAPoR::AnimationParams::deleteEditableKeyframe ( int  editableIndex)

◆ enableKeyframing()

void VAPoR::AnimationParams::enableKeyframing ( bool  onoff)

◆ getAllKeyframes()

vector<Keyframe*>& VAPoR::AnimationParams::getAllKeyframes ( )
inline

Definition at line 119 of file animationparams.h.

◆ getAnyKeyframe()

Keyframe* VAPoR::AnimationParams::getAnyKeyframe ( int  index)
inline

Definition at line 116 of file animationparams.h.

◆ getCurrentFrameNumber()

int VAPoR::AnimationParams::getCurrentFrameNumber ( )
inline

Identify the current frame being rendered

Return values
intcurrent frame number

Definition at line 55 of file animationparams.h.

◆ getCurrentTimestep()

int VAPoR::AnimationParams::getCurrentTimestep ( )
inline

Identify the current data timestep being used

Return values
size_tcurrent time step

Definition at line 64 of file animationparams.h.

◆ getEditableIndex()

int VAPoR::AnimationParams::getEditableIndex ( int  index)

◆ getEditableKeyframe()

Keyframe* VAPoR::AnimationParams::getEditableKeyframe ( int  editableIndex)
inline

Definition at line 118 of file animationparams.h.

◆ getEndFrameNumber()

int VAPoR::AnimationParams::getEndFrameNumber ( )
inline

Identify the ending frame number as currently set in the UI.

Return values
intending frame number.

Definition at line 80 of file animationparams.h.

◆ getMaxFrame()

int VAPoR::AnimationParams::getMaxFrame ( )
inline

Identify the maximum frame number

Return values
intmaximum frame number.

Definition at line 102 of file animationparams.h.

◆ getMaxTimestep()

int VAPoR::AnimationParams::getMaxTimestep ( )
inline

Identify the maximum frame number

Return values
intmaximum frame number.

Definition at line 91 of file animationparams.h.

◆ getMinFrame()

int VAPoR::AnimationParams::getMinFrame ( )
inline

Identify the minimum frame number

Return values
intminimum frame number.

Definition at line 95 of file animationparams.h.

◆ getMinTimestep()

int VAPoR::AnimationParams::getMinTimestep ( )
inline

Identify the minimum frame number

Return values
intminimum frame number.

Definition at line 87 of file animationparams.h.

◆ getNumEditableKeyframes()

int VAPoR::AnimationParams::getNumEditableKeyframes ( )
inline

Definition at line 139 of file animationparams.h.

◆ getStartFrameNumber()

int VAPoR::AnimationParams::getStartFrameNumber ( )
inline

Identify the starting frame number currently set in the UI.

Return values
intstarting frame number.

Definition at line 73 of file animationparams.h.

◆ getTotalKeyframeIndex()

int VAPoR::AnimationParams::getTotalKeyframeIndex ( int  editableIndex)
inline

Definition at line 129 of file animationparams.h.

◆ getTotalNumKeyframes()

int VAPoR::AnimationParams::getTotalNumKeyframes ( )
inline

Definition at line 136 of file animationparams.h.

◆ insertEditableKeyframe()

void VAPoR::AnimationParams::insertEditableKeyframe ( int  editableIndex,
Keyframe keyframe 
)

◆ insertHiddenKeyframe()

void VAPoR::AnimationParams::insertHiddenKeyframe ( int  index,
Keyframe keyframe 
)

◆ keyframingEnabled()

bool VAPoR::AnimationParams::keyframingEnabled ( )
inline

Definition at line 137 of file animationparams.h.

◆ rescaleKeyframes()

void VAPoR::AnimationParams::rescaleKeyframes ( const float  ratio[3])

◆ setAnyKeyframe()

void VAPoR::AnimationParams::setAnyKeyframe ( int  index,
Keyframe k 
)
inline

Definition at line 117 of file animationparams.h.

◆ setMaxTimestep()

void VAPoR::AnimationParams::setMaxTimestep ( int  maxF)
inline

Identify the maximum frame number

Parameters
[in]intmaximum frame number.

Definition at line 114 of file animationparams.h.

◆ setMinTimestep()

void VAPoR::AnimationParams::setMinTimestep ( int  minF)
inline

Set the minimum frame number

Parameters
[in]intminimum frame number.

Definition at line 110 of file animationparams.h.


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