Radium Engine  1.5.20
Loading...
Searching...
No Matches
TransformEditor.hpp
1#pragma once
2
3#include <Core/Types.hpp>
4#include <Engine/Scene/ItemEntry.hpp>
5#include <Gui/RaGui.hpp>
6namespace Ra {
7namespace Gui {
8class RA_GUI_API TransformEditor
9{
10 public:
11 TransformEditor() : m_transform( Core::Transform::Identity() ) {}
12 virtual ~TransformEditor();
13
15 virtual void setEditable( const Engine::Scene::ItemEntry& entry );
16
18 virtual void updateValues() = 0;
19
20 protected:
21 // Helper to get the transform property from the editable.
22 void getTransform();
23
25 void setTransform( const Ra::Core::Transform& tr );
26
27 bool canEdit() const;
28
29 Core::Transform getWorldTransform() const;
30
31 protected:
32 Core::Transform m_transform;
33 Engine::Scene::ItemEntry m_currentEdit;
34};
35} // namespace Gui
36} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3