Ignition Rendering

API Reference

6.0.1
Ogre2MaterialSwitcher Class Reference

Helper class to assign unique colors to renderables. More...

#include <Ogre2MaterialSwitcher.hh>

Public Member Functions

 Ogre2MaterialSwitcher (Ogre2ScenePtr _scene)
 Constructor. More...
 
 ~Ogre2MaterialSwitcher ()
 Destructor. More...
 
virtual void cameraPostRenderScene (Ogre::Camera *_cam) override
 Ogre's post render update callback. More...
 
virtual void cameraPreRenderScene (Ogre::Camera *_cam) override
 Ogre's pre render update callback. More...
 
std::string EntityName (const ignition::math::Color &_color) const
 Get the entity with a specific color. More...
 
void Reset ()
 Reset the color value incrementor. More...
 

Detailed Description

Helper class to assign unique colors to renderables.

Constructor & Destructor Documentation

◆ Ogre2MaterialSwitcher()

Ogre2MaterialSwitcher ( Ogre2ScenePtr  _scene)
explicit

Constructor.

◆ ~Ogre2MaterialSwitcher()

Destructor.

Member Function Documentation

◆ cameraPostRenderScene()

virtual void cameraPostRenderScene ( Ogre::Camera *  _cam)
overridevirtual

Ogre's post render update callback.

Parameters
[in]_camOgre render target event containing information about the source render target.

◆ cameraPreRenderScene()

virtual void cameraPreRenderScene ( Ogre::Camera *  _cam)
overridevirtual

Ogre's pre render update callback.

Parameters
[in]_camOgre render target event containing information about the source render target.

◆ EntityName()

std::string EntityName ( const ignition::math::Color _color) const

Get the entity with a specific color.

Parameters
[in]_colorThe entity's color.

◆ Reset()

void Reset ( )

Reset the color value incrementor.


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