XII Release 0.1.0
Loading...
Searching...
No Matches
xiiDragDropInfo Class Reference

#include <DragDropInfo.h>

Inheritance diagram for xiiDragDropInfo:
[legend]

Public Attributes

const QMimeData * m_pMimeData = nullptr
xiiString m_sTargetContext
 A string identifying into what context the object is dropped, e.g. "viewport" or "scenetree" etc.
xiiUuid m_TargetDocument
 The xiiDocument GUID.
xiiUuid m_TargetObject
xiiUuid m_ActiveParentObject
 GUID of the xiiDocumentObject that may be used as the parent, if no other target is more important.
xiiUuid m_TargetComponent
 GUID of the xiiDocumentObject that is the more specific component (of m_TargetObject) that was dragged on. May be invalid.
xiiVec3 m_vDropPosition
 World space position where the object is dropped. May be NaN.
xiiVec3 m_vDropNormal
 World space normal at the point where the object is dropped. May be NaN.
xiiInt32 m_iTargetObjectSubID
 Some kind of index / ID for the object that is at the drop location. For meshes this is the material index.
xiiInt32 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 xiiQtDocumentTreeModelAdapter * 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

Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTI * GetDynamicRTTI () const
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
Static Public Member Functions inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()

Detailed Description

This type is used to provide xiiDragDropHandler 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.

Member Data Documentation

◆ m_TargetObject

xiiUuid xiiDragDropInfo::m_TargetObject

GUID of the xiiDocumentObject 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.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/DragDrop/DragDropInfo.h
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/DragDrop/Implementation/DragDropInfo.cpp