nAttachmentNode Class Reference
[Scene System]
#include <nattachmentnode.h>
Inheritance diagram for nAttachmentNode:

Detailed Description
The purpose of nAttachmentNode is to provide an external point of access to a skeleton's joint transformation information. The user specifies either a joint name or joint index, and the nAttachmentNode grabs the specified joint data, its transformation mirroring the joint's.The transformations performed on the nAttachmentNode itself are relative to the target bone's origin. Calling GetTransform on nAttachmentNode will get you the world space matrix of the bone origin offset by the specified transformations.
Please note that nAttachmentNode assumes its parent is the target nSkinShapeNode.
-28-Mar-07 kims Changed to be enable to export a max object which is under a bone. Thank Cho Jun Heung for the patch.
Definition at line 33 of file nattachmentnode.h.
Public Member Functions | |
| nAttachmentNode () | |
| constructor | |
| virtual | ~nAttachmentNode () |
| destructor | |
| virtual bool | SaveCmds (nPersistServer *ps) |
| object persistency | |
| virtual bool | RenderTransform (nSceneServer *sceneServer, nRenderContext *renderContext, const matrix44 &parentMatrix) |
| update transform and render into scene server | |
| virtual void | UpdateJointTransform (nRenderContext *renderContext) |
| updates the final transformation, combing local matrix with joint matrix data if necessary | |
| void | SetSkinAnimator (const char *path) |
| set the skin animator | |
| const char * | GetSkinAnimator () const |
| get the skin animator | |
| void | SetJointByName (const char *jointName) |
| specifies the target joint by name | |
| void | SetJointByIndex (unsigned int newIndex) |
| specifies the target joint by index | |
| int | GetJointByIndex () const |
Protected Attributes | |
| int | jointIndex |
| nDynAutoRef< nSkinAnimator > | refSkinAnimator |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 16 of file nattachmentnode_main.cc. |
|
|
destructor
Definition at line 25 of file nattachmentnode_main.cc. |
Member Function Documentation
|
|
object persistency
Reimplemented from nTransformNode. |
|
||||||||||||||||
|
update transform and render into scene server Compute the resulting modelview matrix and set it in the scene server as current modelview matrix. Reimplemented from nTransformNode. Definition at line 36 of file nattachmentnode_main.cc. |
|
|
updates the final transformation, combing local matrix with joint matrix data if necessary Compute the final transformation matrix for the nAttachmentNode Definition at line 70 of file nattachmentnode_main.cc. |
|
|
set the skin animator Set relative path to the skin animator object. Definition at line 91 of file nattachmentnode_main.cc. |
|
|
get the skin animator Get relative path to the skin animator object Definition at line 102 of file nattachmentnode_main.cc. |
|
|
specifies the target joint by name Specifies the target joint by name
Definition at line 115 of file nattachmentnode_main.cc. |
|
|
specifies the target joint by index Specifies the target joint by joint index
Definition at line 143 of file nattachmentnode_main.cc. |
|
|
Definition at line 157 of file nattachmentnode_main.cc. |
Member Data Documentation
|
|
Definition at line 60 of file nattachmentnode.h. |
|
|
Definition at line 61 of file nattachmentnode.h. |
The documentation for this class was generated from the following files: