dtActors::StaticMeshActorProxy Class Reference

This proxy represents a static mesh. More...

#include <staticmeshactorproxy.h>

Inheritance diagram for dtActors::StaticMeshActorProxy:

dtActors::DeltaObjectActorProxy dtDAL::PhysicalActorProxy dtDAL::TransformableActorProxy dtDAL::ActorProxy

List of all members.

Public Member Functions

 StaticMeshActorProxy ()
virtual void BuildPropertyMap ()
 Adds the properties for static mesh actors.
virtual void LoadFile (const std::string &fileName)
 Loads a mesh file and dynamically generates texture slots so the textures in the mesh can be specified by the user.
virtual const
ActorProxy::RenderMode & 
GetRenderMode ()
 Gets the method by which this static mesh is rendered.
virtual dtDAL::ActorProxyIconGetBillBoardIcon ()
 Gets the billboard used to represent static meshes if this proxy's render mode is RenderMode::DRAW_BILLBOARD_ICON.

Protected Member Functions

virtual void CreateActor ()
 Creates a dtCore::Object and assigns a default name to it.
virtual ~StaticMeshActorProxy ()
 Destructor.


Detailed Description

This proxy represents a static mesh.

A static mesh contains geometry and textures representing an object in the scene such as a chair,a desk, a tree, a boulder, etc. Note that this class will instance geometry. So changes to one model at runtime will happen to all of them. Since this class is normally used for static objects (trees, buildings, etc) if you are using the same resource then you probably want to share geometry in memory for efficiency.


Constructor & Destructor Documentation

dtActors::StaticMeshActorProxy::StaticMeshActorProxy (  )  [inline]

dtActors::StaticMeshActorProxy::~StaticMeshActorProxy (  )  [protected, virtual]

Destructor.


Member Function Documentation

void dtActors::StaticMeshActorProxy::BuildPropertyMap (  )  [virtual]

Adds the properties for static mesh actors.

Reimplemented from dtActors::DeltaObjectActorProxy.

void dtActors::StaticMeshActorProxy::LoadFile ( const std::string &  fileName  )  [virtual]

Loads a mesh file and dynamically generates texture slots so the textures in the mesh can be specified by the user.

Parameters:
fileName The filename of the mesh to load.

Implements dtActors::DeltaObjectActorProxy.

const dtDAL::ActorProxy::RenderMode & dtActors::StaticMeshActorProxy::GetRenderMode (  )  [virtual]

Gets the method by which this static mesh is rendered.

Returns:
If there is no geometry currently assigned, this method will return RenderMode::DRAW_BILLBOARD_ICON. If there is geometry assigned to this static mesh, RenderMode::DRAW_ACTOR is returned.

Reimplemented from dtDAL::ActorProxy.

dtDAL::ActorProxyIcon * dtActors::StaticMeshActorProxy::GetBillBoardIcon (  )  [virtual]

Gets the billboard used to represent static meshes if this proxy's render mode is RenderMode::DRAW_BILLBOARD_ICON.

Returns:

Reimplemented from dtDAL::ActorProxy.

void dtActors::StaticMeshActorProxy::CreateActor (  )  [protected, virtual]

Creates a dtCore::Object and assigns a default name to it.

Reimplemented from dtActors::DeltaObjectActorProxy.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008