RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Member Functions | Protected Attributes
MeshObject Class Reference

#include <MeshObject.h>

Public Member Functions

 MeshObject (Ogre::String meshName, Ogre::String entityRG, Ogre::String entityName, Ogre::SceneNode *sceneNode)
 
void setMaterialName (Ogre::String m)
 
void setCastShadows (bool b)
 
void setVisible (bool b)
 
Ogre::Entity * getEntity ()
 
Ogre::SceneNode * GetSceneNode ()
 
Ogre::MeshPtr getLoadedMesh ()
 

Protected Member Functions

void createEntity (Ogre::String meshName, Ogre::String entityRG, Ogre::String entityName)
 

Protected Attributes

Ogre::SceneNode * m_scene_node = nullptr
 
Ogre::Entity * m_entity = nullptr
 
Ogre::MeshPtr m_mesh
 
bool m_cast_shadows = false
 

Detailed Description

Definition at line 35 of file MeshObject.h.

Constructor & Destructor Documentation

◆ MeshObject()

MeshObject::MeshObject ( Ogre::String  meshName,
Ogre::String  entityRG,
Ogre::String  entityName,
Ogre::SceneNode *  sceneNode 
)

Definition at line 35 of file MeshObject.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ createEntity()

void MeshObject::createEntity ( Ogre::String  meshName,
Ogre::String  entityRG,
Ogre::String  entityName 
)
protected

Definition at line 69 of file MeshObject.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEntity()

Ogre::Entity* MeshObject::getEntity ( )
inline

Definition at line 43 of file MeshObject.h.

+ Here is the caller graph for this function:

◆ getLoadedMesh()

Ogre::MeshPtr MeshObject::getLoadedMesh ( )
inline

Definition at line 45 of file MeshObject.h.

+ Here is the caller graph for this function:

◆ GetSceneNode()

Ogre::SceneNode* MeshObject::GetSceneNode ( )
inline

Definition at line 44 of file MeshObject.h.

+ Here is the caller graph for this function:

◆ setCastShadows()

void MeshObject::setCastShadows ( bool  b)

Definition at line 51 of file MeshObject.cpp.

+ Here is the caller graph for this function:

◆ setMaterialName()

void MeshObject::setMaterialName ( Ogre::String  m)

Definition at line 43 of file MeshObject.cpp.

+ Here is the caller graph for this function:

◆ setVisible()

void MeshObject::setVisible ( bool  b)

Definition at line 60 of file MeshObject.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ m_cast_shadows

bool MeshObject::m_cast_shadows = false
protected

Definition at line 51 of file MeshObject.h.

◆ m_entity

Ogre::Entity* MeshObject::m_entity = nullptr
protected

Definition at line 49 of file MeshObject.h.

◆ m_mesh

Ogre::MeshPtr MeshObject::m_mesh
protected

Definition at line 50 of file MeshObject.h.

◆ m_scene_node

Ogre::SceneNode* MeshObject::m_scene_node = nullptr
protected

Definition at line 48 of file MeshObject.h.


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