Public Types | Public Member Functions | Private Types | Private Attributes
rve_render_server::MeshInstance Class Reference

#include <mesh_instance.h>

Inheritance diagram for rve_render_server::MeshInstance:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Type { Cone, Cube, Cylinder, Sphere }

Public Member Functions

Ogre::SceneNode * getSceneNode ()
 MeshInstance (const rve_common::UUID &id, Ogre::SceneManager *scene_manager, const MeshPtr &mesh)
virtual void onOgreMaterialChanged (const MaterialPtr &mat)
void setMaterial (const MaterialPtr &mat)
void setMaterial (size_t submesh_index, const MaterialPtr &mat)
virtual Picked translatePick (PickRenderValues id)
 ~MeshInstance ()

Private Types

typedef std::map< MaterialPtr,
S_OgreSubEntity
M_Material
typedef std::map
< Ogre::SubEntity
*, MaterialPtr
M_SubEntityToMaterial
typedef std::set
< Ogre::SubEntity * > 
S_OgreSubEntity

Private Attributes

Ogre::Entity * entity_
M_Material mat_to_subs_
MeshPtr mesh_
uint32_t pick_id_
Ogre::SceneManager * scene_manager_
Ogre::SceneNode * scene_node_
M_SubEntityToMaterial sub_to_mat_

Detailed Description

Definition at line 58 of file mesh_instance.h.


Member Typedef Documentation

Definition at line 88 of file mesh_instance.h.

typedef std::map<Ogre::SubEntity*, MaterialPtr> rve_render_server::MeshInstance::M_SubEntityToMaterial [private]

Definition at line 90 of file mesh_instance.h.

typedef std::set<Ogre::SubEntity*> rve_render_server::MeshInstance::S_OgreSubEntity [private]

Definition at line 87 of file mesh_instance.h.


Member Enumeration Documentation

Enumerator:
Cone 
Cube 
Cylinder 
Sphere 

Definition at line 61 of file mesh_instance.h.


Constructor & Destructor Documentation

rve_render_server::MeshInstance::MeshInstance ( const rve_common::UUID id,
Ogre::SceneManager *  scene_manager,
const MeshPtr mesh 
)

Definition at line 49 of file mesh_instance.cpp.

Definition at line 78 of file mesh_instance.cpp.


Member Function Documentation

Ogre::SceneNode* rve_render_server::MeshInstance::getSceneNode ( ) [inline]

Definition at line 72 of file mesh_instance.h.

Implements rve_render_server::Renderable.

Definition at line 133 of file mesh_instance.cpp.

Definition at line 93 of file mesh_instance.cpp.

void rve_render_server::MeshInstance::setMaterial ( size_t  submesh_index,
const MaterialPtr mat 
)

Definition at line 117 of file mesh_instance.cpp.

Implements rve_render_server::Pickable.

Definition at line 149 of file mesh_instance.cpp.


Member Data Documentation

Definition at line 82 of file mesh_instance.h.

Definition at line 89 of file mesh_instance.h.

Definition at line 85 of file mesh_instance.h.

Definition at line 93 of file mesh_instance.h.

Ogre::SceneManager* rve_render_server::MeshInstance::scene_manager_ [private]

Definition at line 81 of file mesh_instance.h.

Definition at line 83 of file mesh_instance.h.

Definition at line 91 of file mesh_instance.h.


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


rve_render_server
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:31:15