# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CSkeletonShape Class Reference

a definition of a skeleton. More...

#include <skeleton_shape.h>

Inheritance diagram for NL3D::CSkeletonShape

Inheritance graph
[legend]
Collaboration diagram for NL3D::CSkeletonShape:

Collaboration graph
[legend]
List of all members.

Public Methods

 CSkeletonShape ()
 Constructor. More...

void build (const std::vector<CBoneBase> &bones)
 Build a skeletonShape, replacing old. More...

sint32 getBoneIdByName (const std::string &name) const
 Return the id of a bone, from it's name. -1 if not present. More...

virtual CTransformShapecreateInstance (CScene &scene)
 Create a CSkeletonModel, which contains bones. More...

virtual bool clip (const std::vector<CPlane> &pyramid)
 clip this skeleton (no-op). More...

virtual void render (IDriver *drv, CTransformShape *trans)
 render() this skeletonshape in a driver (no-op). More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serial this skeletonshape. More...

 NLMISC_DECLARE_CLASS (CSkeletonShape)

Private Attributes

std::vector<CBoneBase_Bones
std::map<std::string, uint32_BoneMap

Detailed Description

a definition of a skeleton.

can be instanciated into a CSkeletonModel.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 47 of file skeleton_shape.h.


Constructor & Destructor Documentation

NL3D::CSkeletonShape::CSkeletonShape ( ) [inline]
 

Constructor.

Definition at line 52 of file skeleton_shape.h.


Member Function Documentation

NL3D::CSkeletonShape::NLMISC_DECLARE_CLASS ( CSkeletonShape )
 

void NL3D::CSkeletonShape::build ( const std::vector< CBoneBase >& bones )
 

Build a skeletonShape, replacing old.

WARNING: bones must be organized in Depth-first order (this is not checked).

Definition at line 48 of file skeleton_shape.cpp.

bool NL3D::CSkeletonShape::clip ( const std::vector< CPlane >& pyramid ) [inline, virtual]
 

clip this skeleton (no-op).

Reimplemented from NL3D::IShape.

Definition at line 72 of file skeleton_shape.h.

CTransformShape * NL3D::CSkeletonShape::createInstance ( CScene & scene ) [virtual]
 

Create a CSkeletonModel, which contains bones.

Reimplemented from NL3D::IShape.

Definition at line 62 of file skeleton_shape.cpp.

sint32 NL3D::CSkeletonShape::getBoneIdByName ( const std::string & name ) const
 

Return the id of a bone, from it's name. -1 if not present.

Definition at line 37 of file skeleton_shape.cpp.

void NL3D::CSkeletonShape::render ( IDriver * drv,
CTransformShape * trans ) [inline, virtual]
 

render() this skeletonshape in a driver (no-op).

Reimplemented from NL3D::IShape.

Definition at line 78 of file skeleton_shape.h.

void NL3D::CSkeletonShape::serial ( NLMISC::IStream & f ) throw (NLMISC::EStream) [virtual]
 

serial this skeletonshape.

Reimplemented from NLMISC::IStreamable.

Definition at line 85 of file skeleton_shape.cpp.


Member Data Documentation

std::map< std::string,uint32 > NL3D::CSkeletonShape::_BoneMap [private]
 

Definition at line 90 of file skeleton_shape.h.

std::vector< CBoneBase > NL3D::CSkeletonShape::_Bones [private]
 

Definition at line 89 of file skeleton_shape.h.


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