public

Inheritance Graph

graph BT
	KeyFrameAnimationNode
	KeyFrameAnimationNode --> GeometryNode
	click KeyFrameAnimationNode "classMinSG_1_1KeyFrameAnimationNode"
	click GeometryNode "classMinSG_1_1GeometryNode"

Description

Public Static Attributes

   
   
const short STATE_LOOP_MODE
   
const short STATE_SINGLE_MODE
   
const short STATE_SINGLE_MODE_FINISHED

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

public static
 
 
const short STATE_LOOP_MODE

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:30


variable
MinSG::KeyFrameAnimationNode::STATE_SINGLE_MODE

public static
 
 
const short STATE_SINGLE_MODE

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:31


variable
MinSG::KeyFrameAnimationNode::STATE_SINGLE_MODE_FINISHED

public static
 
 
const short STATE_SINGLE_MODE_FINISHED

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:32


function
MinSG::KeyFrameAnimationNode::KeyFrameAnimationNode

public
     
     
KeyFrameAnimationNode( const Rendering::MeshIndexData & indexData,
  const std::vector< Rendering::MeshVertexData > & framesData,
  std::map< std::string, std::vector< int > > animationData
)    

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:35


function
MinSG::KeyFrameAnimationNode::KeyFrameAnimationNode

public
     
     
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
)    

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:37


function
MinSG::KeyFrameAnimationNode::~KeyFrameAnimationNode

public
   
   
~KeyFrameAnimationNode( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:40


function
MinSG::KeyFrameAnimationNode::createInitialMesh

public const
   
   
Rendering::Mesh * createInitialMesh( ) const

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:42


function
MinSG::KeyFrameAnimationNode::updateMesh

public
     
     
bool updateMesh( float timeStampSec )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:44


function
MinSG::KeyFrameAnimationNode::setVertexData

public const
     
     
void setVertexData( Rendering::MeshVertexData & vertexData,
  int startFrameIndex,
  int endFrameIndex,
  float interpolatePercentage
) const    

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:46


function
MinSG::KeyFrameAnimationNode::setActiveAnimation

public
     
     
bool setActiveAnimation( const std::string & name )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:47


function
MinSG::KeyFrameAnimationNode::getAnimationData

public
   
   
std::map< std::string, std::vector< int > > getAnimationData( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:49


function
MinSG::KeyFrameAnimationNode::getActiveAnimationName

public inline
   
   
std::string getActiveAnimationName( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:51


function
MinSG::KeyFrameAnimationNode::setBehaviour

public
     
     
void setBehaviour( KeyFrameAnimationBehaviour * b )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:55


function
MinSG::KeyFrameAnimationNode::getBehaviour

public
   
   
KeyFrameAnimationBehaviour * getBehaviour( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:56


function
MinSG::KeyFrameAnimationNode::setSpeedFactor

public
     
     
bool setSpeedFactor( const float & sf )

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

public inline
   
   
float getSpeedFactor( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:62


function
MinSG::KeyFrameAnimationNode::setState

public
     
     
void setState( const short & value )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:66


function
MinSG::KeyFrameAnimationNode::getState

public
   
   
short getState( )

Defined in MinSG/Ext/KeyFrameAnimation/KeyFrameAnimationNode.h:67


function
MinSG::KeyFrameAnimationNode::setAnimationPosition

public
     
     
bool setAnimationPosition( const float & value )

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

public
   
   
float 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