3#include <Core/World/GameObject.h>
4#include <EditorEngineProcessFramework/IPC/SyncObject.h>
5#include <Foundation/Math/Mat4.h>
6#include <ToolsFoundation/ToolsFoundationDLL.h>
19 plGizmo* GetOwnerGizmo()
const {
return m_pParentGizmo; }
21 void SetVisible(
bool bVisible);
24 void SetTransformation(
const plMat4& m);
26 const plTransform& GetTransformation()
const {
return m_Transformation; }
29 bool m_bVisible =
false;
32 void SetParentGizmo(
plGizmo* pParentGizmo) { m_pParentGizmo = pParentGizmo; }
35 plGizmo* m_pParentGizmo =
nullptr;
39enum plEngineGizmoHandleType
62 using StorageType = plUInt8;
68 ConstantSize = PL_BIT(0),
70 Visualizer = PL_BIT(2),
71 ShowInOrtho = PL_BIT(3),
73 FaceCamera = PL_BIT(5),
78 StorageType ConstantSize : 1;
79 StorageType OnTop : 1;
80 StorageType Visualizer : 1;
81 StorageType ShowInOrtho : 1;
82 StorageType Pickable : 1;
83 StorageType FaceCamera : 1;
99 virtual bool SetupForEngine(
plWorld* pWorld, plUInt32 uiNextComponentPickingID)
override;
100 virtual void UpdateForEngine(
plWorld* pWorld)
override;
102 void SetColor(
const plColor& col);
105 bool m_bConstantSize =
true;
106 bool m_bAlwaysOnTop =
false;
107 bool m_bVisualizer =
false;
108 bool m_bShowInOrtho =
false;
109 bool m_bIsPickable =
true;
110 bool m_bFaceCamera =
false;
111 plInt32 m_iHandleType = -1;
plColor represents an RGBA color in linear color space. Values are stored as float,...
Definition Color.h:44
static const plColor CornflowerBlue
#6495ED The original!
Definition Color.h:67
Definition SyncObject.h:11
Definition GizmoHandle.h:90
Used by the editor to render gizmo meshes.
Definition GizmoComponent.h:29
Definition GizmoHandle.h:13
Definition GizmoBase.h:25
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
A handle to a game object.
Definition Declarations.h:76
Definition GizmoHandle.h:77
Definition GizmoHandle.h:61