model::RenderablePicoModel Class Reference

#include <RenderablePicoModel.h>

Inheritance diagram for model::RenderablePicoModel:
Inheritance graph
[legend]
Collaboration diagram for model::RenderablePicoModel:
Collaboration graph
[legend]

Public Member Functions

 RenderablePicoModel (picoModel_t *mod)
void render (RenderStateFlags flags) const
const AABB & localAABB () const
const std::stringgetSurfaceCount () const
const std::stringgetVertexCount () const
const std::stringgetPolyCount () const
const ModelSkinListgetSkinsForModel () const
 Return the skins associated with the given model.
void applySkin (const std::string &skin)

Private Types

typedef std::vector
< RenderablePicoSurface
SurfaceList

Private Member Functions

int getSurfaceCountInt () const
int getVertexCountInt () const
int getPolyCountInt () const

Private Attributes

SurfaceList _surfVec
AABB _localAABB
ModelSkinList modelSkinList
std::string polyCountStr
std::string surfaceCountStr
std::string vertexCountStr

Detailed Description

Definition at line 14 of file RenderablePicoModel.h.


Member Typedef Documentation

Definition at line 9 of file RenderablePicoModel.h.


Constructor & Destructor Documentation

model::RenderablePicoModel::RenderablePicoModel ( picoModel_t mod  ) 

Constructor. Accepts a picoModel_t struct containing the raw model data loaded from picomodel


Member Function Documentation

void model::RenderablePicoModel::applySkin ( const std::string skin  )  [virtual]

Apply the given skin to this model.

Implements model::IModel.

const std::string& model::RenderablePicoModel::getPolyCount (  )  const [inline, virtual]

Return the polycount (tricount) of this model by summing the surface polycounts.

Implements model::IModel.

Definition at line 89 of file RenderablePicoModel.h.

int model::RenderablePicoModel::getPolyCountInt (  )  const [inline, private]

Return the polycount (tricount) of this model by summing the surface polycounts.

Definition at line 44 of file RenderablePicoModel.h.

const ModelSkinList& model::RenderablePicoModel::getSkinsForModel (  )  const [virtual]

Return the skins associated with the given model.

Returns:
A vector of strings, each identifying the name of a skin which is associated with the given model. The vector may be empty as a model does not require any associated skins.

Implements model::IModel.

const std::string& model::RenderablePicoModel::getSurfaceCount (  )  const [inline, virtual]

Return the number of surfaces in this model.

Implements model::IModel.

Definition at line 73 of file RenderablePicoModel.h.

int model::RenderablePicoModel::getSurfaceCountInt (  )  const [inline, private]

Return the number of surfaces in this model.

Definition at line 24 of file RenderablePicoModel.h.

const std::string& model::RenderablePicoModel::getVertexCount (  )  const [inline, virtual]

Return the number of vertices in this model, by summing the vertex counts for each surface

Implements model::IModel.

Definition at line 81 of file RenderablePicoModel.h.

References _localAABB.

int model::RenderablePicoModel::getVertexCountInt (  )  const [inline, private]

Return the number of vertices in this model, by summing the vertex counts for each surface

Definition at line 32 of file RenderablePicoModel.h.

References _surfVec.

const AABB& model::RenderablePicoModel::localAABB (  )  const [inline, virtual]

Return the enclosing AABB for this model.

Implements Bounded.

Definition at line 66 of file RenderablePicoModel.h.

void model::RenderablePicoModel::render ( RenderStateFlags  flags  )  const

Virtual render function from OpenGLRenderable.


Field Documentation

Definition at line 13 of file RenderablePicoModel.h.

Referenced by getVertexCount().

Definition at line 10 of file RenderablePicoModel.h.

Referenced by getVertexCountInt().

Definition at line 16 of file RenderablePicoModel.h.

Definition at line 18 of file RenderablePicoModel.h.

Definition at line 19 of file RenderablePicoModel.h.

Definition at line 20 of file RenderablePicoModel.h.


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

Generated by  doxygen 1.6.2