GpuThesis::ModelObject Class Reference

#include <ModelObject.h>

Inheritance diagram for GpuThesis::ModelObject:

GpuThesis::SceneObject List of all members.

Public Member Functions

 ModelObject (Geometry::Model *model, const EngineParameters::ModelObjectParams &params)
void render (unsigned int meshNumber)
void transform ()
bool isLit ()
unsigned int getMeshCount ()
const MaterialgetMaterial (unsigned int meshNumber)
void setAnchor (const Math::Vector3d &anchor)

Detailed Description

ModelObject is a specialization of SceneObject for Model.


Constructor & Destructor Documentation

GpuThesis::ModelObject::ModelObject Geometry::Model *  model,
const EngineParameters::ModelObjectParams params
 

Initialize the model object with the given Model and parameters.

Parameters:
model the model to use when rendering.
params the model object parameters.


Member Function Documentation

const Material & GpuThesis::ModelObject::getMaterial unsigned int  meshNumber  )  [virtual]
 

Get the material for the given mesh.

Parameters:
meshNumber the given mesh.
Returns:
the material.

Implements GpuThesis::SceneObject.

unsigned int GpuThesis::ModelObject::getMeshCount  )  [virtual]
 

Get the number of meshes in the model object.

Returns:
the number of meshes.

Implements GpuThesis::SceneObject.

bool GpuThesis::ModelObject::isLit  )  [virtual]
 

Check if the model object should be lit.

Returns:
whethet the model object should be lit.

Implements GpuThesis::SceneObject.

void GpuThesis::ModelObject::render unsigned int  meshNumber  )  [virtual]
 

Render the given mesh.

Parameters:
meshNumber the mesh to render.

Implements GpuThesis::SceneObject.

void GpuThesis::ModelObject::setAnchor const Math::Vector3d &  anchor  ) 
 

Set the anchor to use for relative positions.

Parameters:
anchor the anchor position.

void GpuThesis::ModelObject::transform  )  [virtual]
 

Transform the model object.

Implements GpuThesis::SceneObject.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:51 2006 for GPU Thesis by  doxygen 1.4.6-NO