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

Custom selection context for the scene to allow switching the active layer if an object is clicked that is in a different layer then the active one. More...

#include <SceneSelectionContext.h>

Inheritance diagram for xiiSceneSelectionContext:
[legend]

Public Member Functions

 xiiSceneSelectionContext (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView, const xiiCamera *pCamera)
 
- Public Member Functions inherited from xiiSelectionContext
 xiiSelectionContext (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView, const xiiCamera *pCamera)
 
void SetWindowConfig (const xiiVec2I32 &vViewport)
 
void SetPickObjectOverride (xiiDelegate< void(const xiiDocumentObject *)> pickOverride)
 Adds a delegate that gets called whenever an object is picked, as long as the override is active.
 
void ResetPickObjectOverride ()
 
- 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)
 
xiiQtEngineDocumentWindowGetOwnerWindow () const
 
xiiQtEngineViewWidgetGetOwnerView () 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)
 Sets how the mouse will act when it reaches the screen border. UpdateMouseMode() must be called on every mouseMoveEvent to update the state.
 
xiiVec2I32 UpdateMouseMode (QMouseEvent *e)
 Updates the mouse position. Can always be called but will only have an effect if SetMouseMode() was called with one of the wrap modes.
 
virtual void UpdateStatusBarText (xiiQtEngineDocumentWindow *pWindow)
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () 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 OpenDocumentForPickedObject (const xiiObjectPickingResult &res) const override
 
virtual void SelectPickedObject (const xiiObjectPickingResult &res, bool bToggle, bool bDirect) const override
 
xiiUuid FindLayerByObject (xiiUuid objectGuid, const xiiDocumentObject *&out_pObject) const
 
- Protected Member Functions inherited from xiiSelectionContext
virtual xiiEditorInput DoMousePressEvent (QMouseEvent *e) override
 
virtual xiiEditorInput DoMouseReleaseEvent (QMouseEvent *e) override
 
virtual xiiEditorInput DoMouseMoveEvent (QMouseEvent *e) override
 
virtual xiiEditorInput DoKeyPressEvent (QKeyEvent *e) override
 
virtual xiiEditorInput DoKeyReleaseEvent (QKeyEvent *e) override
 
virtual void OnSetOwner (xiiQtEngineDocumentWindow *pOwnerWindow, xiiQtEngineViewWidget *pOwnerView) override
 
const xiiDocumentObjectdetermineObjectToSelect (const xiiDocumentObject *pickedObject, bool bToggle, bool bDirect) const
 
virtual void DoFocusLost (bool bCancel) override
 
void SendMarqueeMsg (QMouseEvent *e, xiiUInt8 uiWhatToDo)
 
- Protected Member Functions inherited from xiiEditorInputContext
virtual void OnActivated ()
 
virtual void OnDeactivated ()
 
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 xiiEditorInputContextGetActiveInputContext ()
 
static void UpdateActiveInputContext ()
 
- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 
- Protected Types inherited from xiiSelectionContext
enum class  Mode { None , Single , MarqueeAdd , MarqueeRemove }
 
- Protected Attributes inherited from xiiSelectionContext
xiiDelegate< void(const xiiDocumentObject *)> m_PickObjectOverride
 
const xiiCameram_pCamera
 
xiiVec2I32 m_vViewport
 
xiiEngineGizmoHandle m_hMarqueeGizmo
 
xiiVec3 m_vMarqueeStartPos
 
xiiUInt32 m_uiMarqueeID
 
bool m_bPressedSpace = false
 
Mode m_Mode = Mode::None
 

Detailed Description

Custom selection context for the scene to allow switching the active layer if an object is clicked that is in a different layer then the active one.

Member Function Documentation

◆ OpenDocumentForPickedObject()

void xiiSceneSelectionContext::OpenDocumentForPickedObject ( const xiiObjectPickingResult & res) const
overrideprotectedvirtual

Reimplemented from xiiSelectionContext.

◆ SelectPickedObject()

void xiiSceneSelectionContext::SelectPickedObject ( const xiiObjectPickingResult & res,
bool bToggle,
bool bDirect ) const
overrideprotectedvirtual

Reimplemented from xiiSelectionContext.


The documentation for this class was generated from the following files: