model::IModel Class Reference

#include <imodel.h>

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

Public Member Functions

virtual void applySkin (const std::string &skin)=0
virtual const std::stringgetSurfaceCount () const =0
virtual const std::stringgetVertexCount () const =0
virtual const std::stringgetPolyCount () const =0
virtual const ModelSkinListgetSkinsForModel () const =0
 Return the skins associated with the given model.

Detailed Description

Interface for static models. This interface provides functions for obtaining information about a LWO or ASE model, such as its bounding box or poly count. The interface also inherits from OpenGLRenderable to allow model instances to be used for rendering.

Definition at line 51 of file imodel.h.


Member Function Documentation

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

Apply the given skin to this model.

Parameters:
skin The ModelSkin instance to apply to this model.

Implemented in model::RenderablePicoModel.

virtual const std::string& model::IModel::getPolyCount (  )  const [pure virtual]

Return the number of triangles in this model, equal to the sum of the triangle count from each surface.

Implemented in model::RenderablePicoModel.

virtual const ModelSkinList& model::IModel::getSkinsForModel (  )  const [pure 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.

Implemented in model::RenderablePicoModel.

virtual const std::string& model::IModel::getSurfaceCount (  )  const [pure virtual]

Return the number of material surfaces on this model. Each material surface consists of a set of polygons sharing the same material.

Implemented in model::RenderablePicoModel.

virtual const std::string& model::IModel::getVertexCount (  )  const [pure virtual]

Return the number of vertices in this model, equal to the sum of the vertex count from each surface.

Implemented in model::RenderablePicoModel.


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

Generated by  doxygen 1.6.2