![]() |
Radium Engine
1.7.0
|
#include <Gui/Viewer/Gizmo/Gizmo.hpp>
Inheritance diagram for Ra::Gui::Gizmo::UiSelectionControler:
Collaboration diagram for Ra::Gui::Gizmo::UiSelectionControler:Public Member Functions | |
| UiSelectionControler (std::shared_ptr< Ra::Engine::Data::PlainMaterial > &material, const Core::Utils::Color &selectedColor=Core::Utils::Color::Yellow()) | |
| Construct a controler given a material and the color to used when selected. | |
| UiSelectionControler (const UiSelectionControler &)=delete | |
| void | updateGL () override |
| Inherited. | |
| void | toggleState () |
| Swap the state of the controler. | |
| void | setState () |
| Set the state of the controler to true. | |
| void | clearState () |
| Set the state of the controler to false. | |
Public Member Functions inherited from Ra::Engine::Data::ShaderParameterProvider | |
| virtual RenderParameters & | getParameters () |
| virtual const RenderParameters & | getParameters () const |
| virtual void | updateFromParameters () |
| Update the attributes of the ShaderParameterProvider to their actual values stored in the renderParameters. | |
| virtual std::list< std::string > | getPropertyList () const |
| Get the list of properties the provider might use in a shader. | |
The parameterProvider for Selectable UI Object This class will manage the appearance change when a gizmo element is selected. when building a gizmo component (renderObject), 1 - Create a renderTechnique with the required color parameter 2 - Associate the renderTechnique to the renderObject
When the selection state of a gizmo component changes, notify its rendertechnique through a call to toggleState.
|
explicit |
| void Ra::Gui::Gizmo::UiSelectionControler::clearState | ( | ) |
| void Ra::Gui::Gizmo::UiSelectionControler::setState | ( | ) |
| void Ra::Gui::Gizmo::UiSelectionControler::toggleState | ( | ) |
|
overridevirtual |
Inherited.
Implements Ra::Engine::Data::ShaderParameterProvider.