NodeEventNamespace Namespace Reference

NodeEventNamespace Namespace Reference

Typedefs

typedef AnimHandle NodeKey
 
typedef Tab< NodeKeyNodeKeyTab
 
typedef SceneEventNamespace::CallbackKey CallbackKey
 

Functions

NodeKey GetKeyByNode (INode *node)
 Returns the NodeKey for a node object. More...
 
INodeGetNodeByKey (NodeKey nodeKey)
 Returns a node object from a NodeKey. More...
 

Typedef Documentation

Function Documentation

NodeKey NodeEventNamespace::GetKeyByNode ( INode node)
inline

Returns the NodeKey for a node object.

Returns a node's key value, which is the AnimHandle for the node object.

Parameters
[in]nodeThe node object.
Returns
The node's key value.
69  {
70  if( node!=NULL )
72  else return 0;
73  }
#define NULL
Definition: autoptr.h:20
Definition: Animatable.h:123
static CoreExport AnimHandle GetHandleByAnim(Animatable *anim)
Get the unique handle for an Animatable object.
INode* NodeEventNamespace::GetNodeByKey ( NodeKey  nodeKey)
inline

Returns a node object from a NodeKey.

Returns a node object from its key value, which is the AnimHandle for the node object.

Parameters
[in]nodeKeyThe node's key value, which is the AnimHandle for the node object.
Returns
The node object.
78  {
79  Animatable* anim = Animatable::GetAnimByHandle(nodeKey);
80  if( (anim!=NULL) && (anim->SuperClassID()==BASENODE_CLASS_ID) )
81  return (INode*)anim;
82  else return NULL;
83  }
#define BASENODE_CLASS_ID
Definition: plugapi.h:308
static CoreExport Animatable * GetAnimByHandle(AnimHandle handle)
Get an Animatable object from its unique handle.
#define NULL
Definition: autoptr.h:20
Definition: Animatable.h:123
Definition: inode.h:59
virtual CoreExport SClass_ID SuperClassID()=0
Retrieves a constant representing the type of the plugin.