Inheritance Graph
graph BT
KeyFrameAnimationNode
KeyFrameAnimationNode --> GeometryNode
click KeyFrameAnimationNode "classMinSG_1_1KeyFrameAnimationNode"
click GeometryNode "classMinSG_1_1GeometryNode"
Description
Public Static Attributes
Public Functions
|
|
|
|
|
KeyFrameAnimationNode(const Rendering::MeshIndexData & indexData, const std::vector< Rendering::MeshVertexData > & framesData, std::map< std::string, std::vector< int > > animationData) |
|
|
|
KeyFrameAnimationNode(const KeyFrameAnimationNode & source, Rendering::VertexDescription _vertexDescription, std::pair< std::string, std::vector< int > > _activeAnimation, float _curAnimationPosition, float _curTime, float _speedFactor, float _lastTimeStamp, short _curState) |
|
|
|
~KeyFrameAnimationNode() |
|
|
Rendering::Mesh * |
createInitialMesh() const |
|
|
bool |
updateMesh(float timeStampSec) |
|
|
void |
setVertexData( Rendering::MeshVertexData & vertexData, int startFrameIndex, int endFrameIndex, float interpolatePercentage) const |
|
|
bool |
setActiveAnimation(const std::string & name) |
|
|
std::map< std::string, std::vector< int > > |
getAnimationData() |
|
|
std::string |
getActiveAnimationName() |
|
|
void |
setBehaviour( KeyFrameAnimationBehaviour * b) |
|
|
KeyFrameAnimationBehaviour * |
getBehaviour() |
|
|
bool |
setSpeedFactor(const float & sf) |
|
|
float |
getSpeedFactor() |
|
|
void |
setState(const short & value) |
|
|
short |
getState() |
|
|
bool |
setAnimationPosition(const float & value) |
|
|
float |
getAnimationPosition() |
Documentation
variable
MinSG::KeyFrameAnimationNode::STATE_LOOP_MODE
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:30
variable
MinSG::KeyFrameAnimationNode::STATE_SINGLE_MODE
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:31
variable
MinSG::KeyFrameAnimationNode::STATE_SINGLE_MODE_FINISHED
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:32
function
MinSG::KeyFrameAnimationNode::KeyFrameAnimationNode
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:35
function
MinSG::KeyFrameAnimationNode::KeyFrameAnimationNode
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:37
function
MinSG::KeyFrameAnimationNode::~KeyFrameAnimationNode
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:40
function
MinSG::KeyFrameAnimationNode::createInitialMesh
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:42
function
MinSG::KeyFrameAnimationNode::updateMesh
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:44
function
MinSG::KeyFrameAnimationNode::setVertexData
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:46
function
MinSG::KeyFrameAnimationNode::setActiveAnimation
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:47
function
MinSG::KeyFrameAnimationNode::getAnimationData
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:49
function
MinSG::KeyFrameAnimationNode::getActiveAnimationName
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:51
function
MinSG::KeyFrameAnimationNode::setBehaviour
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:55
function
MinSG::KeyFrameAnimationNode::getBehaviour
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:56
function
MinSG::KeyFrameAnimationNode::setSpeedFactor
Sets speed factor (>=0) for active animation. 1.0 is standard speed/fps.
Returns
false if given value is smaller zero.
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:60
function
MinSG::KeyFrameAnimationNode::getSpeedFactor
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:62
function
MinSG::KeyFrameAnimationNode::setState
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:66
function
MinSG::KeyFrameAnimationNode::getState
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:67
function
MinSG::KeyFrameAnimationNode::setAnimationPosition
Sets current position of active animation. Receives floats >= 0. Only decimal places are considered. So a value of 3.76 results in the same animation position than the value 0.76.
Returns
false if given value is smaller zero.
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:73
function
MinSG::KeyFrameAnimationNode::getAnimationPosition
Returns the current (last set) animation position. Here only decimal places are considered.
Returns
float >= 0.0 < 1.0
Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:78