Go to the documentation of this file.
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>;
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);
133 uint16_t _schemeIndex,
const Ogre::String &_schemeName,
134 Ogre::Material *_originalMaterial, uint16_t _lodIndex,
135 const Ogre::Renderable *_rend);
~EditorMaterialListener()=default
Destructor.
std::shared_ptr< EditorMaterialListener > EditorMaterialListenerPtr
Definition: EditorMaterialSwitcher.hh:37
Forward declarations for the common classes.
Definition: Animation.hh:26
~EditorRenderTargetListener()=default
Destructor.
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.
Ogre render target listener.
Definition: EditorMaterialSwitcher.hh:82
Ogre material listener.
Definition: EditorMaterialSwitcher.hh:111
std::string MaterialScheme() const
Get the material scheme applied to the models in the editor.
EditorRenderTargetListener(const EditorMaterialListenerPtr &_switcher)
Constructor.
EditorMaterialListener(const rendering::CameraPtr &_camera)
Constructor.
void SetMaterialScheme(const std::string &_scheme)
Set the material scheme that will be applied to the models in the editor.
Material switcher for the model editor used to toggle the material of the model.
Definition: EditorMaterialSwitcher.hh:42
gui
Definition: KeyEventHandler.hh:29
EditorMaterialSwitcher(const rendering::CameraPtr &_camera)
Constructor.
~EditorMaterialSwitcher()=default
Destructor.
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:90
std::shared_ptr< EditorRenderTargetListener > EditorRenderTargetListenerPtr
Definition: EditorMaterialSwitcher.hh:35
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.