gz/rendering/ogre2/Ogre2MeshFactory.hh
Go to the documentation of this file.
Ogre2.x implementation of the mesh factory class.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:47
std::vector< std::string > ogreMeshes
A list of ogre meshes created by this factory.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:92
virtual void Clear()
Cleanup and clear all internal ogre v2 meshes created by this factory.
virtual bool Validate(const MeshDescriptor &_desc)
Validate the mesh descriptor to make sure it contains all the needed information to create a mesh.
virtual bool Load(const MeshDescriptor &_desc)
Load a mesh using a mesh descriptor.
virtual std::string MeshName(const MeshDescriptor &_desc)
Get the mesh name from the mesh descriptor.
Ogre2MeshFactory(Ogre2ScenePtr _scene)
Constructor.
void ClearMaterialsCache(const std::string &_name)
Remove internal material cache for a specific material.
virtual Ogre2MeshPtr Create(const MeshDescriptor &_desc)
Create a mesh from a descriptor.
virtual bool IsLoaded(const MeshDescriptor &_desc)
Check if the mesh is loaded using a mesh descriptor.
virtual bool LoadImpl(const MeshDescriptor &_desc)
Helper function to load the mesh from the input mesh descriptor.
virtual Ogre::Item * OgreItem(const MeshDescriptor &_desc)
Get the ogre item based on the mesh descriptor.
Ogre2ScenePtr scene
Pointer to the scene object.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:95
Ogre2.x implementation of a submesh store factory class.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:106
virtual void PopulateGivenNames()
Populate the name list with names associated with each ogre subitem.
virtual void CreateNameList()
Create a list of names and the corresponding submesh object.
Ogre2SubMeshStoreFactory(Ogre2ScenePtr _scene, Ogre::Item *_item)
Constructor.
virtual void PopulateDefaultNames()
Populate the name list with default generated names.
std::vector< std::string > names
A list of names associated with each ogre subitem / submesh.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:142
virtual ~Ogre2SubMeshStoreFactory()
Destructor.
virtual Ogre2SubMeshStorePtr Create()
Create the submeshes.
Ogre2ScenePtr scene
Pointer to the scene object.
Definition: gz/rendering/ogre2/Ogre2MeshFactory.hh:136
virtual Ogre2SubMeshPtr CreateSubMesh(unsigned int _index)
Helper function to create submesh at the given index.
Definition: gz/rendering/ogre/OgreCamera.hh:28
Describes how a Mesh should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:45