ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A 3D Model. More...

#include <model.h>

Collaboration diagram for Stark::Model:

List of all members.

Public Member Functions

 Model ()
 ~Model ()
void readFromStream (ArchiveReadStream *stream)
 Try and initialise object from the specified stream.
const Common::Array< VertNode * > & getVertices () const
const Common::Array< Face * > & getFaces () const
const Common::Array< Material * > & getMaterials () const
const Common::Array< BoneNode * > & getBones () const
bool intersectRay (const Math::Ray &ray) const
 Perform a collision test with a ray.
void updateBoundingBox ()
 Update the model bounding box with the current animation state.
Math::AABB getBoundingBox () const
 Retrieve the model space bounding box for the current animation state.

Private Member Functions

void buildBonesBoundingBoxes ()
void buildBoneBoundingBox (BoneNode *bone) const
void readBones (ArchiveReadStream *stream)

Private Attributes

Common::String _name
uint32 _u1
float _u2
Common::Array< VertNode * > _vertices
Common::Array< Material * > _materials
Common::Array< Face * > _faces
Common::Array< BoneNode * > _bones
Math::AABB _boundingBox

Detailed Description

A 3D Model.

Definition at line 92 of file model.h.


Constructor & Destructor Documentation

Stark::Model::Model (  ) 

Definition at line 33 of file model.cpp.

Stark::Model::~Model (  ) 

Definition at line 39 of file model.cpp.


Member Function Documentation

void Stark::Model::buildBoneBoundingBox ( BoneNode bone  )  const [private]

Definition at line 166 of file model.cpp.

void Stark::Model::buildBonesBoundingBoxes (  )  [private]

Definition at line 160 of file model.cpp.

const Common::Array<BoneNode *>& Stark::Model::getBones (  )  const [inline]

Definition at line 105 of file model.h.

Math::AABB Stark::Model::getBoundingBox (  )  const

Retrieve the model space bounding box for the current animation state.

Definition at line 200 of file model.cpp.

const Common::Array<Face *>& Stark::Model::getFaces (  )  const [inline]

Definition at line 103 of file model.h.

const Common::Array<Material *>& Stark::Model::getMaterials (  )  const [inline]

Definition at line 104 of file model.h.

const Common::Array<VertNode *>& Stark::Model::getVertices (  )  const [inline]

Definition at line 102 of file model.h.

bool Stark::Model::intersectRay ( const Math::Ray ray  )  const

Perform a collision test with a ray.

Definition at line 183 of file model.cpp.

void Stark::Model::readBones ( ArchiveReadStream stream  )  [private]

Definition at line 137 of file model.cpp.

void Stark::Model::readFromStream ( ArchiveReadStream stream  ) 

Try and initialise object from the specified stream.

Definition at line 53 of file model.cpp.

void Stark::Model::updateBoundingBox (  ) 

Update the model bounding box with the current animation state.

Definition at line 193 of file model.cpp.


Member Data Documentation

Definition at line 128 of file model.h.

Definition at line 129 of file model.h.

Definition at line 127 of file model.h.

Definition at line 126 of file model.h.

Definition at line 121 of file model.h.

Definition at line 122 of file model.h.

float Stark::Model::_u2 [private]

Definition at line 123 of file model.h.

Definition at line 125 of file model.h.


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


Generated on Sat Sep 21 2019 05:04:24 for ResidualVM by doxygen 1.7.1
curved edge   curved edge