5 #include <Gui/TransformEditor/TransformEditor.hpp>
6 #include <Gui/Utils/KeyMappingManager.hpp>
7 #include <Gui/Viewer/Gizmo/Gizmo.hpp>
24 public Gui::TransformEditor,
31 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
33 enum GizmoType { NONE, TRANSLATION, ROTATION, SCALE };
40 virtual bool handleMousePressEvent( QMouseEvent* event,
41 const Qt::MouseButtons& buttons,
42 const Qt::KeyboardModifiers& modifiers,
45 virtual bool handleMouseReleaseEvent( QMouseEvent* event );
46 virtual bool handleMouseMoveEvent( QMouseEvent* event,
47 const Qt::MouseButtons& buttons,
48 const Qt::KeyboardModifiers& modifiers,
60 void handlePickingResult(
int drawableId );
63 void setLocal(
bool useLocal );
66 void changeGizmoType( GizmoType type );
69 void updateValues()
override;
78 Gizmo* currentGizmo();
81 std::array<std::unique_ptr<Gizmo>, 3> m_gizmos;
82 GizmoType m_currentGizmoType;
85 static void configureKeyMapping_impl();
87 #define KeyMappingGizmo \
88 KMA_VALUE( GIZMOMANAGER_MANIPULATION ) \
89 KMA_VALUE( GIZMOMANAGER_STEP ) \
90 KMA_VALUE( GIZMOMANAGER_WHOLE ) \
91 KMA_VALUE( GIZMOMANAGER_STEP_WHOLE )
93 #define KMA_VALUE( XX ) static KeyMappingManager::KeyMappingAction XX;
Camera class storing the Camera frame and the projection properties The view direction is -z in camer...
KeyMappingManageable decorator to use as CRTP.
Ra::Core::Utils::Index KeyMappingAction
handle to an action