##

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()

EditorMaterialSwitcher | ( | const rendering::CameraPtr & | _camera | ) |

explicit

Constructor.

Parameters

  [in] | _camera | Pointer to the camera whose viewport will be updated to see the effect of the material switch.

## ~EditorMaterialSwitcher()

~EditorMaterialSwitcher | ( |  | ) |

default

Destructor.

## Member Function Documentation

## MaterialScheme()

std::string MaterialScheme | ( |  | ) | const

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

Returns
  Name of material scheme

## SetMaterialScheme()

void SetMaterialScheme | ( | const std::string & | _scheme | ) |

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

Parameters

  [in] | _scheme | Name of material scheme

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

- EditorMaterialSwitcher.hh