TDME2 1.9.121
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Skinning Class Referencefinal

Skinning definition for nodes. More...

#include <tdme/engine/model/Skinning.h>

Collaboration diagram for Skinning:
Collaboration graph

Public Member Functions

 Skinning ()
 Public constructor. More...
 
const vector< float > & getWeights ()
 
void setWeights (const vector< float > &weights)
 Set up weights. More...
 
const vector< Joint > & getJoints ()
 
void setJoints (const vector< Joint > &joints)
 Set up joints. More...
 
const vector< vector< JointWeight > > & getVerticesJointsWeights ()
 
void setVerticesJointsWeights (const vector< vector< JointWeight > > &verticesJointsWeights)
 Sets up vertices joints weights. More...
 
JointgetJointByName (const string &name)
 Get joint by name. More...
 

Private Member Functions

void setupJointsByName ()
 Set up joints by name. More...
 

Private Attributes

vector< float > weights
 
vector< Jointjoints
 
vector< vector< JointWeight > > verticesJointsWeights
 
map< string, Joint * > jointsByName
 

Detailed Description

Skinning definition for nodes.

Author
andreas.drewke
Version
$Id$

Definition at line 26 of file Skinning.h.

Constructor & Destructor Documentation

◆ Skinning()

Skinning ( )

Public constructor.

Definition at line 19 of file Skinning.cpp.

Member Function Documentation

◆ getJointByName()

Joint * getJointByName ( const string &  name)

Get joint by name.

Parameters
namename
Returns
joint

Definition at line 61 of file Skinning.cpp.

◆ getJoints()

const vector< Joint > & getJoints ( )
inline
Returns
all joints

Definition at line 55 of file Skinning.h.

◆ getVerticesJointsWeights()

const vector< vector< JointWeight > > & getVerticesJointsWeights ( )
inline
Returns
all vertex joints

Definition at line 68 of file Skinning.h.

◆ getWeights()

const vector< float > & getWeights ( )
inline
Returns
weights

Definition at line 42 of file Skinning.h.

◆ setJoints()

void setJoints ( const vector< Joint > &  joints)

Set up joints.

Parameters
jointsjoints

Definition at line 32 of file Skinning.cpp.

◆ setupJointsByName()

void setupJointsByName ( )
private

Set up joints by name.

Definition at line 53 of file Skinning.cpp.

◆ setVerticesJointsWeights()

void setVerticesJointsWeights ( const vector< vector< JointWeight > > &  verticesJointsWeights)

Sets up vertices joints weights.

Parameters
verticesJointsWeightsverticesJointsWeights

Definition at line 42 of file Skinning.cpp.

◆ setWeights()

void setWeights ( const vector< float > &  weights)

Set up weights.

Parameters
weightsweights

Definition at line 23 of file Skinning.cpp.

Member Data Documentation

◆ joints

vector<Joint> joints
private

Definition at line 30 of file Skinning.h.

◆ jointsByName

map<string, Joint*> jointsByName
private

Definition at line 32 of file Skinning.h.

◆ verticesJointsWeights

vector<vector<JointWeight> > verticesJointsWeights
private

Definition at line 31 of file Skinning.h.

◆ weights

vector<float> weights
private

Definition at line 29 of file Skinning.h.


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