Plasma Engine  2.0
Loading...
Searching...
No Matches
DragDropInfo.h
1#pragma once
2
3#include <EditorFramework/EditorFrameworkDLL.h>
4#include <Foundation/Reflection/Reflection.h>
5
6class QMimeData;
7class QDataStream;
10
15class PL_EDITORFRAMEWORK_DLL plDragDropInfo : public plReflectedClass
16{
17 PL_ADD_DYNAMIC_REFLECTION(plDragDropInfo, plReflectedClass);
18
19public:
21
22 const QMimeData* m_pMimeData;
23
26
29
33
36
39
42
45
48
50 const plQtDocumentTreeModelAdapter* m_pAdapter = nullptr;
51
52 bool m_bShiftKeyDown;
53 bool m_bCtrlKeyDown;
54};
55
56
59class PL_EDITORFRAMEWORK_DLL plDragDropConfig : public plReflectedClass
60{
61 PL_ADD_DYNAMIC_REFLECTION(plDragDropConfig, plReflectedClass);
62
63public:
65
68};
Definition DocumentObjectBase.h:11
After an plDragDropHandler has been chosen to handle an operation, it is queried once to fill out an ...
Definition DragDropInfo.h:60
bool m_bPickSelectedObjects
Whether the currently selected objects (ie the dragged objects) should be considered for picking or n...
Definition DragDropInfo.h:67
This type is used to provide plDragDropHandler instances with all the important information for a dra...
Definition DragDropInfo.h:16
plVec3 m_vDropPosition
World space position where the object is dropped. May be NaN.
Definition DragDropInfo.h:38
plInt32 m_iTargetObjectSubID
Some kind of index / ID for the object that is at the drop location. For meshes this is the material ...
Definition DragDropInfo.h:44
plUuid m_TargetObject
Definition DragDropInfo.h:32
plUuid m_TargetDocument
The plDocument GUID.
Definition DragDropInfo.h:28
plInt32 m_iTargetObjectInsertChildIndex
If dropped on a scene tree, this may say as which child the object is supposed to be inserted....
Definition DragDropInfo.h:47
plString m_sTargetContext
A string identifying into what context the object is dropped, e.g. "viewport" or "scenetree" etc.
Definition DragDropInfo.h:25
plVec3 m_vDropNormal
World space normal at the point where the object is dropped. May be NaN.
Definition DragDropInfo.h:41
plUuid m_TargetComponent
GUID of the plDocumentObject that is the more specific component (of m_TargetObject) that was dragged...
Definition DragDropInfo.h:35
Adapter that defines data for specific type in the plQtDocumentTreeModel.
Definition RawDocumentTreeModel.moc.h:16
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11