XII Release 0.1.0
Loading...
Searching...
No Matches
xiiOrthoGizmoContext Class Reference
Inheritance diagram for xiiOrthoGizmoContext:
[legend]

Public Member Functions

 xiiOrthoGizmoContext (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView, const xiiCamera *pCamera)
void SetWindowConfig (const xiiVec2I32 &vViewport)
virtual void FocusLost (bool bCancel)
const xiiVec3 & GetTranslationResult () const
const xiiVec3 & GetTranslationDiff () const
const xiiQuat & GetRotationResult () const
float GetScalingResult () const
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.
virtual bool IsPickingSelectedAllowed () const
xiiVec2I32 SetMouseMode (MouseMode mode)
xiiVec2I32 UpdateMouseMode (QMouseEvent *e)
virtual void UpdateStatusBarText (xiiQtEngineDocumentWindow *pWindow)
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.

Public Attributes

xiiEvent< const xiiGizmoEvent & > m_GizmoEvents

Protected Member Functions

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
Protected Member Functions inherited from xiiEditorInputContext
virtual void DoFocusLost (bool bCancel)
virtual void OnActivated ()
virtual void OnDeactivated ()
virtual xiiEditorInput DoKeyPressEvent (QKeyEvent *e)
virtual xiiEditorInput DoKeyReleaseEvent (QKeyEvent *e)
virtual xiiEditorInput DoWheelEvent (QWheelEvent *e)

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 ()

Member Function Documentation

◆ DoMouseMoveEvent()

xiiEditorInput xiiOrthoGizmoContext::DoMouseMoveEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ DoMousePressEvent()

xiiEditorInput xiiOrthoGizmoContext::DoMousePressEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ DoMouseReleaseEvent()

xiiEditorInput xiiOrthoGizmoContext::DoMouseReleaseEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented from xiiEditorInputContext.

◆ OnSetOwner()

virtual void xiiOrthoGizmoContext::OnSetOwner ( xiiQtEngineDocumentWindow * pOwnerWindow,
xiiQtEngineViewWidget * pOwnerView )
inlineoverrideprotectedvirtual

Implements xiiEditorInputContext.


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