Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Gui::Gizmo::UiSelectionControler Class Referencefinal

#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 RenderParametersgetParameters ()
 
virtual const RenderParametersgetParameters () const
 
virtual void updateFromParameters ()
 Update the attributes of the ShaderParameterProvider to their actual values stored in the renderParameters.
 
virtual std::list< std::stringgetPropertyList () const
 Get the list of properties the provider might use in a shader.
 

Detailed Description

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.

Definition at line 134 of file Gizmo.hpp.

Constructor & Destructor Documentation

◆ UiSelectionControler()

Ra::Gui::Gizmo::UiSelectionControler::UiSelectionControler ( std::shared_ptr< Ra::Engine::Data::PlainMaterial > & material,
const Core::Utils::Color & selectedColor = Core::Utils::Color::Yellow() )
explicit

Construct a controler given a material and the color to used when selected.

Definition at line 105 of file Gizmo.cpp.

Member Function Documentation

◆ clearState()

void Ra::Gui::Gizmo::UiSelectionControler::clearState ( )

Set the state of the controler to false.

Definition at line 125 of file Gizmo.cpp.

◆ setState()

void Ra::Gui::Gizmo::UiSelectionControler::setState ( )

Set the state of the controler to true.

Definition at line 121 of file Gizmo.cpp.

◆ toggleState()

void Ra::Gui::Gizmo::UiSelectionControler::toggleState ( )

Swap the state of the controler.

Definition at line 117 of file Gizmo.cpp.

◆ updateGL()

void Ra::Gui::Gizmo::UiSelectionControler::updateGL ( )
overridevirtual

Inherited.

Implements Ra::Engine::Data::ShaderParameterProvider.

Definition at line 110 of file Gizmo.cpp.


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