newspeoplefor developersdocumentationdownloads

nCharacter3Node Class Reference
[Scene System]

#include <ncharacter3node.h>

Inheritance diagram for nCharacter3Node:

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

Detailed Description

(C) 2005 RadonLabs GmbH

Definition at line 15 of file ncharacter3node.h.


Public Member Functions

 nCharacter3Node ()
 constructor
virtual ~nCharacter3Node ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 save object to persistent stream
virtual bool RenderTransform (nSceneServer *sceneServer, nRenderContext *renderContext, const matrix44 &parentMatrix)
 update transform and render into scene server
virtual bool LoadResources ()
 load resources for this object
virtual void UnloadResources ()
 unload resources
nArray< nStringGetNamesOfLoadedSkins () const
 retrieve names of loaded skins
nArray< nStringGetFullNamesOfLoadedSkins () const
 retrieve full names of loaded skins
const nArray< nString > & GetNamesOfLoadedAnimations ()
 retrieve names of loaded animations
const nArray< nString > & GetNamesOfLoadedVariations ()
 retrieve names of loaded variations

Static Public Member Functions

static bool ReadCharacterStuffFromXML (nString fileName, nString &resultSkinList, nString &resultVariation)
 read skin list from a XML file
static bool WriteCharacterStuffFromXML (nString fileName, nString skins, nString variation)
 save skin list to a XML file

Protected Member Functions

void LoadSkinsFromSubfolder (nString path)
 loads the skins that belong to this character
nCharacter3SkinAnimatorFindMySkinAnimator ()
 looks up the skin animator which belongs to this character3 node
nRootFindFirstInstance (nRoot *node, nClass *classType)
 lookup first appearance of a specific class under node
void UpdateBoundingBox ()
 update bounding box from loaded skins

Protected Attributes

nClasstransformNodeClass
nArray< nRoot * > loadedSkins
nArray< nStringloadedSkinName

Constructor & Destructor Documentation

nCharacter3Node::nCharacter3Node  ) 
 

constructor

Definition at line 19 of file ncharacter3node_main.cc.

nCharacter3Node::~nCharacter3Node  )  [virtual]
 

destructor

Definition at line 27 of file ncharacter3node_main.cc.


Member Function Documentation

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

save object to persistent stream

Reimplemented from nTransformNode.

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

update transform and render into scene server

Reimplemented from nTransformNode.

Definition at line 69 of file ncharacter3node_main.cc.

bool nCharacter3Node::LoadResources  )  [virtual]
 

load resources for this object

Reimplemented from nSceneNode.

Definition at line 110 of file ncharacter3node_main.cc.

void nCharacter3Node::UnloadResources  )  [virtual]
 

unload resources

Reimplemented from nSceneNode.

Definition at line 165 of file ncharacter3node_main.cc.

nArray< nString > nCharacter3Node::GetNamesOfLoadedSkins  )  const
 

retrieve names of loaded skins

Definition at line 177 of file ncharacter3node_main.cc.

nArray< nString > nCharacter3Node::GetFullNamesOfLoadedSkins  )  const
 

retrieve full names of loaded skins

Definition at line 192 of file ncharacter3node_main.cc.

const nArray< nString > & nCharacter3Node::GetNamesOfLoadedAnimations  ) 
 

retrieve names of loaded animations

Definition at line 214 of file ncharacter3node_main.cc.

const nArray< nString > & nCharacter3Node::GetNamesOfLoadedVariations  ) 
 

retrieve names of loaded variations

Definition at line 225 of file ncharacter3node_main.cc.

bool nCharacter3Node::ReadCharacterStuffFromXML nString  fileName,
nString resultSkinList,
nString resultVariation
[static]
 

read skin list from a XML file

read skin list from a XML file

Definition at line 326 of file ncharacter3node_main.cc.

bool nCharacter3Node::WriteCharacterStuffFromXML nString  fileName,
nString  skins,
nString  variation
[static]
 

save skin list to a XML file

save skin list to a XML file

Definition at line 402 of file ncharacter3node_main.cc.

void nCharacter3Node::LoadSkinsFromSubfolder nString  path  )  [protected]
 

loads the skins that belong to this character

Definition at line 236 of file ncharacter3node_main.cc.

nCharacter3SkinAnimator * nCharacter3Node::FindMySkinAnimator  )  [protected]
 

looks up the skin animator which belongs to this character3 node

Definition at line 201 of file ncharacter3node_main.cc.

nRoot * nCharacter3Node::FindFirstInstance nRoot node,
nClass classType
[protected]
 

lookup first appearance of a specific class under node

Recursively Find instance of nClass, used to search for lights, skin animators, etc...

Definition at line 296 of file ncharacter3node_main.cc.

void nCharacter3Node::UpdateBoundingBox  )  [protected]
 

update bounding box from loaded skins

Definition at line 36 of file ncharacter3node_main.cc.


Member Data Documentation

nClass* nCharacter3Node::transformNodeClass [protected]
 

Definition at line 61 of file ncharacter3node.h.

nArray<nRoot*> nCharacter3Node::loadedSkins [protected]
 

Definition at line 62 of file ncharacter3node.h.

nArray<nString> nCharacter3Node::loadedSkinName [protected]
 

Definition at line 63 of file ncharacter3node.h.


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

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