#include <mesh_instance.h>
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_ |
Definition at line 58 of file mesh_instance.h.
typedef std::map<MaterialPtr, S_OgreSubEntity> rve_render_server::MeshInstance::M_Material [private] |
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.
Definition at line 61 of file mesh_instance.h.
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.
Ogre::SceneNode* rve_render_server::MeshInstance::getSceneNode | ( | ) | [inline] |
Definition at line 72 of file mesh_instance.h.
void rve_render_server::MeshInstance::onOgreMaterialChanged | ( | const MaterialPtr & | mat | ) | [virtual] |
Implements rve_render_server::Renderable.
Definition at line 133 of file mesh_instance.cpp.
void rve_render_server::MeshInstance::setMaterial | ( | const MaterialPtr & | mat | ) |
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.
Picked rve_render_server::MeshInstance::translatePick | ( | PickRenderValues | id | ) | [virtual] |
Implements rve_render_server::Pickable.
Definition at line 149 of file mesh_instance.cpp.
Ogre::Entity* rve_render_server::MeshInstance::entity_ [private] |
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.
uint32_t rve_render_server::MeshInstance::pick_id_ [private] |
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.
Ogre::SceneNode* rve_render_server::MeshInstance::scene_node_ [private] |
Definition at line 83 of file mesh_instance.h.
Definition at line 91 of file mesh_instance.h.