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

EditorMaterialSwitcher ( const rendering::CameraPtr _camera)
explicit

Constructor.

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

Destructor.

Member Function Documentation

std::string MaterialScheme ( ) const

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

Returns
Name of material scheme
void 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: