Radium Engine
1.5.20
|
A TranslateGizmo manipulates the translational part of a transformation. More...
#include <Gui/Viewer/Gizmo/TranslateGizmo.hpp>
Public Member Functions | |
TranslateGizmo (Engine::Scene::Component *c, const Core::Transform &worldTo, const Core::Transform &t, Mode mode) | |
void | updateTransform (Gizmo::Mode mode, const Core::Transform &worldTo, const Core::Transform &t) override |
Called every time the underlying transform may have changed. | |
void | selectConstraint (int drawableIndex) override |
Called when one of the drawables of the gizmo has been selected. | |
bool | isSelected () override |
return the selection state of the gizmo: true if the gizmo is selected, false if not. | |
void | setInitialState (const Core::Asset::Camera &cam, const Core::Vector2 &initialXY) override |
Core::Transform | mouseMove (const Core::Asset::Camera &cam, const Core::Vector2 &nextXY, bool stepped, bool whole) override |
Public Member Functions inherited from Ra::Gui::Gizmo | |
Gizmo (Engine::Scene::Component *c, const Core::Transform &worldTo, const Core::Transform &t, Mode mode) | |
void | show (bool on) |
Additional Inherited Members | |
Public Types inherited from Ra::Gui::Gizmo | |
enum | Mode { LOCAL , GLOBAL } |
Protected Member Functions inherited from Ra::Gui::Gizmo | |
const std::vector< Engine::Rendering::RenderObject * > & | ros () const |
read access to the gizmo render objects id | |
void | addRenderObject (Engine::Rendering::RenderObject *ro) |
add a render object to display the Gizmo | |
Gizmo::UiSelectionControler * | getControler (int ro) |
Returns the controler (ShaderParametersProvider) associated to the given gizmo component. | |
Static Protected Member Functions inherited from Ra::Gui::Gizmo | |
static bool | findPointOnAxis (const Core::Asset::Camera &cam, const Core::Vector3 &origin, const Core::Vector3 &axis, const Core::Vector2 &pix, Core::Vector3 &pointOut, std::vector< Scalar > &hits) |
Find a mouse-designed point on a 3D axis. | |
static bool | findPointOnPlane (const Core::Asset::Camera &cam, const Core::Vector3 &origin, const Core::Vector3 &axis, const Core::Vector2 &pix, Core::Vector3 &pointOut, std::vector< Scalar > &hits) |
Find a mouse-designed point on a 3D plane. | |
static std::shared_ptr< Engine::Rendering::RenderTechnique > | makeRenderTechnique (int color) |
Protected Attributes inherited from Ra::Gui::Gizmo | |
Core::Transform | m_worldTo |
World to local space where the transform lives. | |
Core::Transform | m_transform |
Transform to be edited. | |
Engine::Scene::Component * | m_comp |
Engine Ui component. | |
Mode | m_mode |
local or global. | |
Static Protected Attributes inherited from Ra::Gui::Gizmo | |
static std::array< std::shared_ptr< Ra::Engine::Data::PlainMaterial >, 3 > | s_material |
A TranslateGizmo manipulates the translational part of a transformation.
Definition at line 11 of file TranslateGizmo.hpp.
Ra::Gui::TranslateGizmo::TranslateGizmo | ( | Engine::Scene::Component * | c, |
const Core::Transform & | worldTo, | ||
const Core::Transform & | t, | ||
Mode | mode ) |
Definition at line 16 of file TranslateGizmo.cpp.
|
inlineoverridevirtual |
return the selection state of the gizmo: true if the gizmo is selected, false if not.
Implements Ra::Gui::Gizmo.
Definition at line 24 of file TranslateGizmo.hpp.
|
overridevirtual |
Called when the mouse movement is recorder with the camera parameters and the current pixel coordinates.
Implements Ra::Gui::Gizmo.
Definition at line 137 of file TranslateGizmo.cpp.
|
overridevirtual |
Called when one of the drawables of the gizmo has been selected.
Implements Ra::Gui::Gizmo.
Definition at line 104 of file TranslateGizmo.cpp.
|
overridevirtual |
Called when the gizmo is first clicked, with the camera parameters and the initial pixel coordinates.
Implements Ra::Gui::Gizmo.
Definition at line 183 of file TranslateGizmo.cpp.
|
overridevirtual |
Called every time the underlying transform may have changed.
Implements Ra::Gui::Gizmo.
Definition at line 83 of file TranslateGizmo.cpp.