Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

jb::Model Class Reference

#include <animadead.h>

Inheritance diagram for jb::Model:

[legend]
Collaboration diagram for jb::Model:
[legend]
List of all members.

Public Methods

 Model (ModelType type, UserFunction *texture_loader=0)
virtual ~Model ()
unsigned int AddMesh (std::string filename)
void SwapMesh (unsigned int index, std::string filename)
unsigned int AddAnim (std::string filename, unsigned int startFrame=0)
void SwapAnim (unsigned int index, std::string filename, unsigned int startFrame=0)
void GetTransform (unsigned int bone, Matrix &matrix)
void Bind (unsigned int bone, unsigned int anim)
void MovingOrigin (bool)
void OriginAnim (unsigned int index)
void GetKeyframeVelocity (Vertex *velocity)
void GetVelocity (Vertex *velocity)
void Update (float timestep)
void UpdateMeshes ()
void Reset ()
bool getAnimFinished ()

Protected Attributes

bool originSubtraction
float timeweight
AnimPlayer * velocityControl
AnimPlayer * _currentAnim
std::vector< Mesh * > bindMesh
std::vector< Mesh * > * previousMesh
std::vector< Mesh * > * nextMesh
std::vector< AnimPlayer * > anims
std::vector< unsigned int > animFromBone
UserFunction * fp
ModelType type

Constructor & Destructor Documentation

Model::Model (  ModelType    type,
UserFunction *    texture_loader = 0
) 
 

Model::~Model (    )  [virtual]
 


Member Function Documentation

unsigned int Model::AddAnim (  std::string    filename,
unsigned int    startFrame = 0
) 
 

unsigned int Model::AddMesh (  std::string    filename ) 
 

void Model::Bind (  unsigned int    bone,
unsigned int    anim
) 
 

bool jb::Model::getAnimFinished (    )  [inline]
 

void Model::GetKeyframeVelocity (  Vertex *    velocity ) 
 

void Model::GetTransform (  unsigned int    bone,
Matrix &    matrix
) 
 

void Model::GetVelocity (  Vertex *    velocity ) 
 

void Model::MovingOrigin (  bool    ) 
 

void Model::OriginAnim (  unsigned int    index ) 
 

void jb::Model::Reset (    )  [inline]
 

void Model::SwapAnim (  unsigned int    index,
std::string    filename,
unsigned int    startFrame = 0
) 
 

void Model::SwapMesh (  unsigned int    index,
std::string    filename
) 
 

void Model::Update (  float    timestep ) 
 

void Model::UpdateMeshes (    ) 
 


Member Data Documentation

AnimPlayer* jb::Model::_currentAnim [protected]
 

std::vector<unsigned int> jb::Model::animFromBone [protected]
 

std::vector<AnimPlayer *> jb::Model::anims [protected]
 

std::vector<Mesh *> jb::Model::bindMesh [protected]
 

UserFunction* jb::Model::fp [protected]
 

std::vector<Mesh *>* jb::Model::nextMesh [protected]
 

bool jb::Model::originSubtraction [protected]
 

std::vector<Mesh *>* jb::Model::previousMesh [protected]
 

float jb::Model::timeweight [protected]
 

ModelType jb::Model::type [protected]
 

AnimPlayer* jb::Model::velocityControl [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:14 2004 for naturecalls by doxygen1.2.18