Ignition Rendering

API Reference

5.0.0

Ogre2.x implementation of a submesh store factory class. More...

#include <Ogre2MeshFactory.hh>

Public Member Functions

 Ogre2SubMeshStoreFactory (Ogre2ScenePtr _scene, Ogre::Item *_item)
 Constructor. More...
 
virtual ~Ogre2SubMeshStoreFactory ()
 Destructor. More...
 
virtual Ogre2SubMeshStorePtr Create ()
 Create the submeshes. More...
 

Protected Member Functions

virtual void CreateNameList ()
 Create a list of names and the corresponding submesh object. More...
 
virtual Ogre2SubMeshPtr CreateSubMesh (unsigned int _index)
 Helper function to create submesh at the given index. More...
 
virtual void PopulateDefaultNames ()
 Populate the name list with default generated names. More...
 
virtual void PopulateGivenNames ()
 Populate the name list with names associated with each ogre subitem. More...
 

Protected Attributes

std::vector< std::stringnames
 A list of names associated with each ogre subitem / submesh. More...
 
Ogre::Item * ogreItem = nullptr
 Pointer to the parent ogre item. More...
 
Ogre2ScenePtr scene
 Pointer to the scene object. More...
 

Detailed Description

Ogre2.x implementation of a submesh store factory class.

Constructor & Destructor Documentation

◆ Ogre2SubMeshStoreFactory()

Ogre2SubMeshStoreFactory ( Ogre2ScenePtr  _scene,
Ogre::Item *  _item 
)

Constructor.

Parameters
[in]_scenePointer to the scene object
[in]_itemParent ogre item

◆ ~Ogre2SubMeshStoreFactory()

virtual ~Ogre2SubMeshStoreFactory ( )
virtual

Destructor.

Member Function Documentation

◆ Create()

virtual Ogre2SubMeshStorePtr Create ( )
virtual

Create the submeshes.

Returns
A store containing all the submeshes

◆ CreateNameList()

virtual void CreateNameList ( )
protectedvirtual

Create a list of names and the corresponding submesh object.

◆ CreateSubMesh()

virtual Ogre2SubMeshPtr CreateSubMesh ( unsigned int  _index)
protectedvirtual

Helper function to create submesh at the given index.

Parameters
[in]_indexIndex of the ogre subitem. The subitem is then used to create the submesh.

◆ PopulateDefaultNames()

virtual void PopulateDefaultNames ( )
protectedvirtual

Populate the name list with default generated names.

◆ PopulateGivenNames()

virtual void PopulateGivenNames ( )
protectedvirtual

Populate the name list with names associated with each ogre subitem.

Member Data Documentation

◆ names

std::vector<std::string> names
protected

A list of names associated with each ogre subitem / submesh.

◆ ogreItem

Ogre::Item* ogreItem = nullptr
protected

Pointer to the parent ogre item.

◆ scene

Ogre2ScenePtr scene
protected

Pointer to the scene object.


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