3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
PropertyAnimator Class Reference

Animation of filter properties. More...

#include <animator.h>

Public Member Functions

 PropertyAnimator ()
 
 PropertyAnimator (const PropertyAnimator &p)
 
bool checkSelfConsistent (std::set< size_t > &conflictingFrames) const
 Are the properties self-consistent - returns true if OK. More...
 
size_t getMaxFrame () const
 Obtain the maximal frame for animation. More...
 
void getPropertiesAtFrame (size_t keyframe, std::vector< size_t > &propIds, std::vector< FrameProperties > &props) const
 Get all the properties that intersect or precede. More...
 
std::string getInterpolatedFilterData (size_t id, size_t propKey, size_t frame) const
 
void addProp (const FrameProperties &p)
 Add a property to the list of available props. More...
 
void setProp (size_t id, const FrameProperties &p)
 Set a particlar property. More...
 
void removeProp (size_t id)
 Remove frame by its unique ID. More...
 
void clear ()
 Remove all stored information. More...
 
size_t getNumProps () const
 Get the number of properties stored. More...
 
void getNthKeyFrame (size_t frameNum, FrameProperties &f) const
 
void removeNthKeyFrame (size_t frameNum)
 
void removeKeyFrames (std::vector< size_t > &vec)
 
bool writeState (std::ostream &f, unsigned int format, unsigned int depth=0) const
 Dump state to output stream, using specified format. More...
 
bool loadState (xmlNodePtr &nodePtr)
 
void getIdList (std::vector< unsigned int > &ids) const
 Obtain the complete listing of IDs used internally. More...
 
void updateMappings (const std::map< size_t, size_t > &newMap)
 Force the internal IDs for filters to a new value. More...
 

Detailed Description

Animation of filter properties.

Constructor & Destructor Documentation

◆ PropertyAnimator() [1/2]

PropertyAnimator::PropertyAnimator ( )

◆ PropertyAnimator() [2/2]

PropertyAnimator::PropertyAnimator ( const PropertyAnimator p)

Member Function Documentation

◆ addProp()

void PropertyAnimator::addProp ( const FrameProperties p)
inline

Add a property to the list of available props.

Referenced by ExportAnimationDialog::OnFilterGridCellSelected().

Here is the caller graph for this function:

◆ checkSelfConsistent()

bool PropertyAnimator::checkSelfConsistent ( std::set< size_t > &  conflictingFrames) const

Are the properties self-consistent - returns true if OK.

References rangesOverlap().

Referenced by getInterpolatedFilterData(), getPropertiesAtFrame(), ExportAnimationDialog::OnButtonKeyFrameRemove(), and ExportAnimationDialog::prepare().

Here is the caller graph for this function:

◆ clear()

void PropertyAnimator::clear ( )

Remove all stored information.

◆ getIdList()

void PropertyAnimator::getIdList ( std::vector< unsigned int > &  ids) const

Obtain the complete listing of IDs used internally.

Referenced by ExportAnimationDialog::getPathMapping().

Here is the caller graph for this function:

◆ getInterpolatedFilterData()

std::string PropertyAnimator::getInterpolatedFilterData ( size_t  id,
size_t  propKey,
size_t  frame 
) const

◆ getMaxFrame()

size_t PropertyAnimator::getMaxFrame ( ) const

◆ getNthKeyFrame()

void PropertyAnimator::getNthKeyFrame ( size_t  frameNum,
FrameProperties f 
) const

References ASSERT.

Referenced by ExportAnimationDialog::prepare().

Here is the caller graph for this function:

◆ getNumProps()

size_t PropertyAnimator::getNumProps ( ) const
inline

Get the number of properties stored.

Referenced by ExportAnimationDialog::OnButtonKeyFrameRemove(), and ExportAnimationDialog::prepare().

Here is the caller graph for this function:

◆ getPropertiesAtFrame()

void PropertyAnimator::getPropertiesAtFrame ( size_t  keyframe,
std::vector< size_t > &  propIds,
std::vector< FrameProperties > &  props 
) const

Get all the properties that intersect or precede.

References ASSERT, checkSelfConsistent(), and getMaxFrame().

Referenced by ExportAnimationDialog::getModifiedTree(), and ExportAnimationDialog::prepare().

Here is the caller graph for this function:

◆ loadState()

bool PropertyAnimator::loadState ( xmlNodePtr &  nodePtr)

References FrameProperties::addKeyFrame(), FrameProperties::setInterpMode(), XMLHelpFwdToElem(), and XMLHelpGetProp().

Referenced by AnalysisState::save().

Here is the caller graph for this function:

◆ removeKeyFrames()

void PropertyAnimator::removeKeyFrames ( std::vector< size_t > &  vec)

References removeNthKeyFrame().

Referenced by ExportAnimationDialog::OnButtonKeyFrameRemove().

Here is the caller graph for this function:

◆ removeNthKeyFrame()

void PropertyAnimator::removeNthKeyFrame ( size_t  frameNum)

Referenced by removeKeyFrames().

Here is the caller graph for this function:

◆ removeProp()

void PropertyAnimator::removeProp ( size_t  id)

Remove frame by its unique ID.

◆ setProp()

void PropertyAnimator::setProp ( size_t  id,
const FrameProperties p 
)

Set a particlar property.

◆ updateMappings()

void PropertyAnimator::updateMappings ( const std::map< size_t, size_t > &  newMap)

Force the internal IDs for filters to a new value.

References vectorMultiErase().

Referenced by ExportAnimationDialog::setAnimationState().

Here is the caller graph for this function:

◆ writeState()

bool PropertyAnimator::writeState ( std::ostream &  f,
unsigned int  format,
unsigned int  depth = 0 
) const

Dump state to output stream, using specified format.

References tabs().

Referenced by AnalysisState::save().

Here is the caller graph for this function:

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