17 #ifndef GAZEBO_GUI_MODEL_EDITORMATERIALSWITCHER_HH_
18 #define GAZEBO_GUI_MODEL_EDITORMATERIALSWITCHER_HH_
30 class EditorMaterialListener;
31 class EditorRenderTargetListener;
35 std::shared_ptr<EditorRenderTargetListener>;
37 std::shared_ptr<EditorMaterialListener>;
55 public:
void SetMaterialScheme(
const std::string &_scheme);
59 public: std::string MaterialScheme()
const;
73 private: std::string originalMaterialScheme;
76 private: std::string materialScheme;
96 const Ogre::RenderTargetEvent &_evt);
102 const Ogre::RenderTargetEvent &_evt);
131 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
132 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
133 const Ogre::Renderable *_rend);
std::shared_ptr< EditorMaterialListener > EditorMaterialListenerPtr
Definition: EditorMaterialSwitcher.hh:37
Ogre render target listener.
Definition: EditorMaterialSwitcher.hh:81
virtual void postRenderTargetUpdate(const Ogre::RenderTargetEvent &_evt)
Ogre's post-render update callback.
Ogre material listener.
Definition: EditorMaterialSwitcher.hh:110
EditorMaterialListener(const rendering::CameraPtr &_camera)
Constructor.
EditorRenderTargetListener(const EditorMaterialListenerPtr &_switcher)
Constructor.
Material switcher for the model editor used to toggle the material of the model.
Definition: EditorMaterialSwitcher.hh:42
virtual void preRenderTargetUpdate(const Ogre::RenderTargetEvent &_evt)
Ogre's pre-render update callback.
virtual Ogre::Technique * handleSchemeNotFound(uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *_rend)
Ogre callback that is used to specify the material to use when the requested scheme is not found...
std::shared_ptr< EditorRenderTargetListener > EditorRenderTargetListenerPtr
Definition: EditorMaterialSwitcher.hh:35
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:89
~EditorMaterialListener()=default
Destructor.
~EditorRenderTargetListener()=default
Destructor.