![]() |
Plasma Engine
2.0
|
This type is used to provide plDragDropHandler instances with all the important information for a drag & drop target. More...
#include <DragDropInfo.h>
Public Attributes | |
const QMimeData * | m_pMimeData |
plString | m_sTargetContext |
A string identifying into what context the object is dropped, e.g. "viewport" or "scenetree" etc. | |
plUuid | m_TargetDocument |
The plDocument GUID. | |
plUuid | m_TargetObject |
plUuid | m_TargetComponent |
GUID of the plDocumentObject that is the more specific component (of m_TargetObject) that was dragged on. May be invalid. | |
plVec3 | m_vDropPosition |
World space position where the object is dropped. May be NaN. | |
plVec3 | m_vDropNormal |
World space normal at the point where the object is dropped. May be NaN. | |
plInt32 | m_iTargetObjectSubID |
Some kind of index / ID for the object that is at the drop location. For meshes this is the material index. | |
plInt32 | m_iTargetObjectInsertChildIndex |
If dropped on a scene tree, this may say as which child the object is supposed to be inserted. -1 if invalid (ie. append) | |
const plQtDocumentTreeModelAdapter * | m_pAdapter = nullptr |
If dropped on a scene tree, this is the adapter for the target object. | |
bool | m_bShiftKeyDown |
bool | m_bCtrlKeyDown |
Additional Inherited Members | |
![]() | |
virtual const plRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const plRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
This type is used to provide plDragDropHandler instances with all the important information for a drag & drop target.
It is a reflected class such that one can derive and extend it, if necessary. DragDrop handlers can then inspect whether it is a known extended type and cast to the type to get access to additional information.
plUuid plDragDropInfo::m_TargetObject |
GUID of the plDocumentObject that is at the dropped position. May be invalid. Can be used to attach as a child, to modify the object itself or can be ignored.