3Depict
|
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... | |
Animation of filter properties.
PropertyAnimator::PropertyAnimator | ( | ) |
PropertyAnimator::PropertyAnimator | ( | const PropertyAnimator & | p | ) |
|
inline |
Add a property to the list of available props.
Referenced by ExportAnimationDialog::OnFilterGridCellSelected().
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().
void PropertyAnimator::clear | ( | ) |
Remove all stored information.
void PropertyAnimator::getIdList | ( | std::vector< unsigned int > & | ids | ) | const |
Obtain the complete listing of IDs used internally.
Referenced by ExportAnimationDialog::getPathMapping().
std::string PropertyAnimator::getInterpolatedFilterData | ( | size_t | id, |
size_t | propKey, | ||
size_t | frame | ||
) | const |
References ASSERT, checkSelfConsistent(), and getMaxFrame().
Referenced by ExportAnimationDialog::getModifiedTree(), ExportAnimationDialog::OnFilterGridCellSelected(), and ExportAnimationDialog::prepare().
size_t PropertyAnimator::getMaxFrame | ( | ) | const |
Obtain the maximal frame for animation.
Referenced by getInterpolatedFilterData(), ExportAnimationDialog::getNumFrames(), getPropertiesAtFrame(), MainWindowFrame::OnFileExportFilterVideo(), ExportAnimationDialog::OnFilterGridCellSelected(), ExportAnimationDialog::prepare(), and AnalysisState::save().
void PropertyAnimator::getNthKeyFrame | ( | size_t | frameNum, |
FrameProperties & | f | ||
) | const |
References ASSERT.
Referenced by ExportAnimationDialog::prepare().
|
inline |
Get the number of properties stored.
Referenced by ExportAnimationDialog::OnButtonKeyFrameRemove(), and ExportAnimationDialog::prepare().
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().
bool PropertyAnimator::loadState | ( | xmlNodePtr & | nodePtr | ) |
References FrameProperties::addKeyFrame(), FrameProperties::setInterpMode(), XMLHelpFwdToElem(), and XMLHelpGetProp().
Referenced by AnalysisState::save().
void PropertyAnimator::removeKeyFrames | ( | std::vector< size_t > & | vec | ) |
References removeNthKeyFrame().
Referenced by ExportAnimationDialog::OnButtonKeyFrameRemove().
void PropertyAnimator::removeNthKeyFrame | ( | size_t | frameNum | ) |
void PropertyAnimator::removeProp | ( | size_t | id | ) |
Remove frame by its unique ID.
void PropertyAnimator::setProp | ( | size_t | id, |
const FrameProperties & | p | ||
) |
Set a particlar property.
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().
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().