Public Member Functions | List of all members
gazebo::gui::EditorMaterialSwitcher Class Reference

Material switcher for the model editor used to toggle the material of the model. More...

#include <EditorMaterialSwitcher.hh>

Public Member Functions

 EditorMaterialSwitcher (const rendering::CameraPtr &_camera)
 Constructor. More...
 
 ~EditorMaterialSwitcher ()=default
 Destructor. More...
 
std::string MaterialScheme () const
 Get the material scheme applied to the models in the editor. More...
 
void SetMaterialScheme (const std::string &_scheme)
 Set the material scheme that will be applied to the models in the editor. More...
 

Detailed Description

Material switcher for the model editor used to toggle the material of the model.

Constructor & Destructor Documentation

gazebo::gui::EditorMaterialSwitcher::EditorMaterialSwitcher ( const rendering::CameraPtr _camera)

Constructor.

Parameters
[in]_cameraPointer to the camera whose viewport will be updated to see the effect of the material switch.
gazebo::gui::EditorMaterialSwitcher::~EditorMaterialSwitcher ( )
default

Destructor.

Member Function Documentation

std::string gazebo::gui::EditorMaterialSwitcher::MaterialScheme ( ) const

Get the material scheme applied to the models in the editor.

Returns
Name of material scheme
void gazebo::gui::EditorMaterialSwitcher::SetMaterialScheme ( const std::string &  _scheme)

Set the material scheme that will be applied to the models in the editor.

Parameters
[in]_schemeName of material scheme

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