newspeoplefor developersdocumentationdownloads

nAttachmentNode Class Reference
[Scene System]

#include <nattachmentnode.h>

Inheritance diagram for nAttachmentNode:

nTransformNode nSceneNode nRoot nObject nNode nReferenced nSignalEmitter List of all members.

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< nSkinAnimatorrefSkinAnimator

Constructor & Destructor Documentation

nAttachmentNode::nAttachmentNode  ) 
 

constructor

Definition at line 16 of file nattachmentnode_main.cc.

nAttachmentNode::~nAttachmentNode  )  [virtual]
 

destructor

Definition at line 25 of file nattachmentnode_main.cc.


Member Function Documentation

virtual bool nAttachmentNode::SaveCmds nPersistServer ps  )  [virtual]
 

object persistency

Reimplemented from nTransformNode.

bool nAttachmentNode::RenderTransform nSceneServer sceneServer,
nRenderContext renderContext,
const matrix44 parentMatrix
[virtual]
 

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.

void nAttachmentNode::UpdateJointTransform nRenderContext renderContext  )  [virtual]
 

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.

void nAttachmentNode::SetSkinAnimator const char *  path  ) 
 

set the skin animator

Set relative path to the skin animator object.

Definition at line 91 of file nattachmentnode_main.cc.

const char * nAttachmentNode::GetSkinAnimator  )  const
 

get the skin animator

Get relative path to the skin animator object

Definition at line 102 of file nattachmentnode_main.cc.

void nAttachmentNode::SetJointByName const char *  jointName  ) 
 

specifies the target joint by name

Specifies the target joint by name

Parameters:
jointName the name of the joint index to target

Definition at line 115 of file nattachmentnode_main.cc.

void nAttachmentNode::SetJointByIndex unsigned int  newIndex  ) 
 

specifies the target joint by index

Specifies the target joint by joint index

Parameters:
newIndex the joint index to target

Definition at line 143 of file nattachmentnode_main.cc.

int nAttachmentNode::GetJointByIndex  )  const
 

Definition at line 157 of file nattachmentnode_main.cc.


Member Data Documentation

int nAttachmentNode::jointIndex [protected]
 

Definition at line 60 of file nattachmentnode.h.

nDynAutoRef<nSkinAnimator> nAttachmentNode::refSkinAnimator [protected]
 

Definition at line 61 of file nattachmentnode.h.


The documentation for this class was generated from the following files:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.