18 #ifndef _GAZEBO_EDITOR_MATERIAL_SWITCHER_HH_
19 #define _GAZEBO_EDITOR_MATERIAL_SWITCHER_HH_
31 class EditorMaterialListener;
32 class EditorRenderTargetListener;
36 std::shared_ptr<EditorRenderTargetListener>;
38 std::shared_ptr<EditorMaterialListener>;
56 public:
void SetMaterialScheme(
const std::string &_scheme);
60 public: std::string MaterialScheme()
const;
74 private: std::string originalMaterialScheme;
77 private: std::string materialScheme;
97 const Ogre::RenderTargetEvent &_evt);
103 const Ogre::RenderTargetEvent &_evt);
132 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
133 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
134 const Ogre::Renderable *_rend);
Ogre render target listener.
Definition: EditorMaterialSwitcher.hh:82
#define GZ_GUI_VISIBLE
Definition: system.hh:284
EditorRenderTargetListener(const EditorMaterialListenerPtr &_switcher)
Constructor.
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...
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:88
~EditorRenderTargetListener()=default
Destructor.
Ogre material listener.
Definition: EditorMaterialSwitcher.hh:111
std::shared_ptr< EditorRenderTargetListener > EditorRenderTargetListenerPtr
Definition: EditorMaterialSwitcher.hh:36
Material switcher for the model editor used to toggle the material of the model.
Definition: EditorMaterialSwitcher.hh:43
~EditorMaterialListener()=default
Destructor.
virtual void preRenderTargetUpdate(const Ogre::RenderTargetEvent &_evt)
Ogre's pre-render update callback.
virtual void postRenderTargetUpdate(const Ogre::RenderTargetEvent &_evt)
Ogre's post-render update callback.
std::shared_ptr< EditorMaterialListener > EditorMaterialListenerPtr
Definition: EditorMaterialSwitcher.hh:38
EditorMaterialListener(const rendering::CameraPtr &_camera)
Constructor.