KeyframeAnimation.KeyframeAnimation Class Reference


Detailed Description

Defines a behavior for keyfram animation based on FBX animations.

#include <class_keyframe_animation_1_1_keyframe_animation.h>

Inheritance diagram for KeyframeAnimation.KeyframeAnimation:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  getTypeLabel ()
  getDefaultImage ()
  validateNodesSelection ()
  Only accept single selections for now.
  createOrInitializeFbxNode ()
  initParameters ()
  This is called after a behavior has been read from file.
  onNodeDeleted ()
  Removes the deleted node from this behavior.
  addNodes ()
  Add nodes to this behaviour.
  getRemoveNodesUndoMessages ()
  Implement to allow behaviors to have custom data that needs to be readded at undo of remove.
  removeNodes ()
  Remove the nodes from this behaviour.
  setParameterValue ()
  Sets the value of a given parameter.
  update ()
  Implement this method in subclasses to perform the actual behavior.
  preWrite ()
  Lets behavior do custom I/O in a plugin fashion before the companion dir is setup.
  postRead ()
  Converts all HPR data which should have been quaternion data...
  updateDuration ()
  getAnimatedItemCount ()
  getAnimatedItemId ()
  updatePivot ()
  updatePivotAxis ()
  addPivot ()
  addKeyframe ()
  removeKeyframe ()
  changeKeyframe ()
  setKeyframe ()
  moveKeyframe ()
  setNodeFreeze ()
  getKeyframes ()
  basename ()
  Return a basename that will be used to build names and labels.

Public Attributes

  kIsAxisUpAndUnitEnabled = False

Member Function Documentation

KeyframeAnimation.KeyframeAnimation.__init__ ( )
KeyframeAnimation.KeyframeAnimation.getTypeLabel ( )
KeyframeAnimation.KeyframeAnimation.getDefaultImage ( )
KeyframeAnimation.KeyframeAnimation.validateNodesSelection ( )

Only accept single selections for now.

Reimplemented from Behavior.Behavior.

KeyframeAnimation.KeyframeAnimation.createOrInitializeFbxNode ( )
KeyframeAnimation.KeyframeAnimation.initParameters ( )

This is called after a behavior has been read from file.

At this point, we should initialize the internal fbx items from the two essential parameters: nodes list, fbx nodes list.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.onNodeDeleted ( )

Removes the deleted node from this behavior.

Reimplemented from Behavior.Behavior.

KeyframeAnimation.KeyframeAnimation.addNodes ( )

Add nodes to this behaviour.

Returns true if any new nodes have been added to the behavior. In this version we only support singel nodes to be added, we need to figure out how multi transforms should interact with the nodes field.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.getRemoveNodesUndoMessages ( )

Implement to allow behaviors to have custom data that needs to be readded at undo of remove.

Reimplemented from Behavior.Behavior.

KeyframeAnimation.KeyframeAnimation.removeNodes ( )

Remove the nodes from this behaviour.

Returns true if any nodes have been removed from the behavior.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.setParameterValue ( )

Sets the value of a given parameter.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.update ( )

Implement this method in subclasses to perform the actual behavior.

timestep is in seconds.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.preWrite ( )

Lets behavior do custom I/O in a plugin fashion before the companion dir is setup.

Reimplemented from FbxBehavior.FbxBehavior.

KeyframeAnimation.KeyframeAnimation.postRead ( )

Converts all HPR data which should have been quaternion data...

Note: preWrite does the reverse in __exportKeyframeAnim()

Reimplemented from Behavior.Behavior.

KeyframeAnimation.KeyframeAnimation.updateDuration ( )
KeyframeAnimation.KeyframeAnimation.getAnimatedItemCount ( )
KeyframeAnimation.KeyframeAnimation.getAnimatedItemId ( )
KeyframeAnimation.KeyframeAnimation.updatePivot ( )
KeyframeAnimation.KeyframeAnimation.updatePivotAxis ( )
KeyframeAnimation.KeyframeAnimation.addPivot ( )
KeyframeAnimation.KeyframeAnimation.addKeyframe ( )
KeyframeAnimation.KeyframeAnimation.removeKeyframe ( )
KeyframeAnimation.KeyframeAnimation.changeKeyframe ( )
KeyframeAnimation.KeyframeAnimation.setKeyframe ( )
KeyframeAnimation.KeyframeAnimation.moveKeyframe ( )
KeyframeAnimation.KeyframeAnimation.setNodeFreeze ( )
KeyframeAnimation.KeyframeAnimation.getKeyframes ( )
KeyframeAnimation.KeyframeAnimation.basename ( )

Return a basename that will be used to build names and labels.

Derived classes will typically override this method.

Reimplemented from FbxBehavior.FbxBehavior.


Member Data Documentation


KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation
KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation KeyframeAnimation.KeyframeAnimation