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

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <DragToPositionGizmo.h>

Inheritance diagram for xiiDragToPositionGizmo:
[legend]

Public Member Functions

const xiiVec3 GetTranslationResult () const
const xiiQuat GetRotationResult () const
virtual bool IsPickingSelectedAllowed () const override
bool ModifiesRotation () const
 Returns true if any of the 'align with' handles is selected, and thus the rotation of the dragged object should be modified as well.
virtual void UpdateStatusBarText (xiiQtEngineDocumentWindow *pWindow) override
Public Member Functions inherited from xiiGizmo
void SetVisible (bool bVisible)
bool IsVisible () const
void SetTransformation (const xiiTransform &transform)
const xiiTransform & GetTransformation () const
void ConfigureInteraction (xiiGizmoHandle *pHandle, const xiiCamera *pCamera, const xiiVec3 &vInteractionPivot, const xiiVec2I32 &vViewport)
Public Member Functions inherited from xiiEditorInputContext
void FocusLost (bool bCancel)
xiiEditorInput KeyPressEvent (QKeyEvent *e)
xiiEditorInput KeyReleaseEvent (QKeyEvent *e)
xiiEditorInput MousePressEvent (QMouseEvent *e)
xiiEditorInput MouseReleaseEvent (QMouseEvent *e)
xiiEditorInput MouseMoveEvent (QMouseEvent *e)
xiiEditorInput WheelEvent (QWheelEvent *e)
void MakeActiveInputContext (bool bActive=true)
bool IsActiveInputContext () const
void SetOwner (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView)
xiiQtEngineDocumentWindow * GetOwnerWindow () const
xiiQtEngineViewWidget * GetOwnerView () const
bool GetShortcutsDisabled () const
void SetShortcutsDisabled (bool bDisabled)
 If set to true, the surrounding window will ensure to block all shortcuts and instead send keypress events to the input context.
xiiVec2I32 SetMouseMode (MouseMode mode)
xiiVec2I32 UpdateMouseMode (QMouseEvent *e)
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.

Protected Member Functions

virtual void DoFocusLost (bool bCancel) override
virtual xiiEditorInput DoMousePressEvent (QMouseEvent *e) override
virtual xiiEditorInput DoMouseReleaseEvent (QMouseEvent *e) override
virtual xiiEditorInput DoMouseMoveEvent (QMouseEvent *e) override
virtual void OnSetOwner (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView) override
virtual void OnVisibleChanged (bool bVisible) override
virtual void OnTransformationChanged (const xiiTransform &transform) override
Protected Member Functions inherited from xiiEditorInputContext
virtual void OnActivated ()
virtual void OnDeactivated ()
virtual xiiEditorInput DoKeyPressEvent (QKeyEvent *e)
virtual xiiEditorInput DoKeyReleaseEvent (QKeyEvent *e)
virtual xiiEditorInput DoWheelEvent (QWheelEvent *e)

Protected Attributes

xiiEngineGizmoHandle m_hBobble
xiiEngineGizmoHandle m_hAlignPX
xiiEngineGizmoHandle m_hAlignNX
xiiEngineGizmoHandle m_hAlignPY
xiiEngineGizmoHandle m_hAlignNY
xiiEngineGizmoHandle m_hAlignPZ
xiiEngineGizmoHandle m_hAlignNZ
bool m_bModifiesRotation
xiiTime m_LastInteraction
xiiVec3 m_vStartPosition
xiiQuat m_qStartOrientation
Protected Attributes inherited from xiiGizmo
const xiiCamera * m_pCamera
xiiGizmoHandle * m_pInteractionGizmoHandle
xiiVec3 m_vInteractionPivot
xiiVec2I32 m_vViewport

Additional Inherited Members

Public Types inherited from xiiEditorInputContext
enum class  MouseMode { Normal , WrapAtScreenBorders , HideAndWrapAtScreenBorders }
 How the mouse position is updated when the mouse cursor reaches the screen borders. More...
Static Public Member Functions inherited from xiiEditorInputContext
static void SetActiveInputContext (xiiEditorInputContext *pContext)
static bool IsAnyInputContextActive ()
static xiiEditorInputContext * GetActiveInputContext ()
static void UpdateActiveInputContext ()
Static Public Member Functions inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()
Public Attributes inherited from xiiGizmo
xiiEvent< const xiiGizmoEvent & > m_GizmoEvents

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

Member Function Documentation

◆ DoFocusLost()

void xiiDragToPositionGizmo::DoFocusLost ( bool bCancel)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ DoMouseMoveEvent()

xiiEditorInput xiiDragToPositionGizmo::DoMouseMoveEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ DoMousePressEvent()

xiiEditorInput xiiDragToPositionGizmo::DoMousePressEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ DoMouseReleaseEvent()

xiiEditorInput xiiDragToPositionGizmo::DoMouseReleaseEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ IsPickingSelectedAllowed()

virtual bool xiiDragToPositionGizmo::IsPickingSelectedAllowed ( ) const
inlineoverridevirtual

Reimplemented from xiiEditorInputContext.

◆ OnSetOwner()

void xiiDragToPositionGizmo::OnSetOwner ( xiiQtEngineDocumentWindow * pOwnerWindow,
xiiQtEngineViewWidget * pOwnerView )
overrideprotectedvirtual

Implements xiiEditorInputContext.

◆ OnTransformationChanged()

void xiiDragToPositionGizmo::OnTransformationChanged ( const xiiTransform & transform)
overrideprotectedvirtual

Implements xiiGizmo.

◆ OnVisibleChanged()

void xiiDragToPositionGizmo::OnVisibleChanged ( bool bVisible)
overrideprotectedvirtual

Implements xiiGizmo.

◆ UpdateStatusBarText()

void xiiDragToPositionGizmo::UpdateStatusBarText ( xiiQtEngineDocumentWindow * pWindow)
overridevirtual

Reimplemented from xiiEditorInputContext.


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