ezEngine Release 26.9
Loading...
Searching...
No Matches
ezManipulatorScaleGizmo Class Reference

Scale gizmo version that only uses boxes that can be composited with rotate and translate gizmos without major overlap. Used by the ezTransformManipulatorAdapter. More...

#include <ScaleGizmo.h>

Inheritance diagram for ezManipulatorScaleGizmo:

Protected Member Functions

virtual void OnTransformationChanged (const ezTransform &transform) override
 
- Protected Member Functions inherited from ezScaleGizmo
virtual void DoFocusLost (bool bCancel) override
 
virtual ezEditorInput DoMousePressEvent (QMouseEvent *e) override
 
virtual ezEditorInput DoMouseReleaseEvent (QMouseEvent *e) override
 
virtual ezEditorInput DoMouseMoveEvent (QMouseEvent *e) override
 
virtual void OnSetOwner (ezQtEngineDocumentWindow *pOwnerWindow, ezQtEngineViewWidget *pOwnerView) override
 
virtual void OnVisibleChanged (bool bVisible) override
 
- Protected Member Functions inherited from ezGizmo
void GetInverseViewProjectionMatrix (ezMat4 &out_mInvViewProj) const
 
ezResult GetPointOnPlane (const ezPlane &plane, const ezVec2I32 &vScreenPos, const ezMat4 &mInvViewProj, ezVec3 &out_Result) const
 
ezResult GetPointOnAxis (const ezVec3 &vStartPos, const ezVec3 &vAxis, const ezVec2I32 &vScreenPos, const ezMat4 &mInvViewProj, ezVec3 &out_Result, float *out_pProjectedLength=nullptr) const
 
- Protected Member Functions inherited from ezEditorInputContext
virtual void OnActivated ()
 
virtual void OnDeactivated ()
 
virtual ezEditorInput DoKeyPressEvent (QKeyEvent *e)
 
virtual ezEditorInput DoKeyReleaseEvent (QKeyEvent *e)
 
virtual ezEditorInput DoWheelEvent (QWheelEvent *e)
 

Additional Inherited Members

- Public Types inherited from ezEditorInputContext
enum class  MouseMode { Normal , WrapAtScreenBorders , HideAndWrapAtScreenBorders }
 How the mouse position is updated when the mouse cursor reaches the screen borders. More...
 
- Public Member Functions inherited from ezScaleGizmo
const ezVec3GetScalingResult () const
 
virtual void UpdateStatusBarText (ezQtEngineDocumentWindow *pWindow) override
 
void EnableAxis (bool x, bool y, bool z, bool bXyz)
 
- Public Member Functions inherited from ezGizmo
void SetVisible (bool bVisible)
 
bool IsVisible () const
 
void SetTransformation (const ezTransform &transform)
 
const ezTransformGetTransformation () const
 
void ConfigureInteraction (ezGizmoHandle *pHandle, const ezCamera *pCamera, const ezVec3 &vInteractionPivot, const ezVec2I32 &vViewport)
 
- Public Member Functions inherited from ezEditorInputContext
void FocusLost (bool bCancel)
 
ezEditorInput KeyPressEvent (QKeyEvent *e)
 
ezEditorInput KeyReleaseEvent (QKeyEvent *e)
 
ezEditorInput MousePressEvent (QMouseEvent *e)
 
ezEditorInput MouseReleaseEvent (QMouseEvent *e)
 
ezEditorInput MouseMoveEvent (QMouseEvent *e)
 
ezEditorInput WheelEvent (QWheelEvent *e)
 
void MakeActiveInputContext (bool bActive=true)
 
bool IsActiveInputContext () const
 
void SetOwner (ezQtEngineDocumentWindow *pOwnerWindow, ezQtEngineViewWidget *pOwnerView)
 
ezQtEngineDocumentWindowGetOwnerWindow () const
 
ezQtEngineViewWidgetGetOwnerView () 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
 
ezVec2I32 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.
 
ezVec2I32 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.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_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 ezEditorInputContext
static void SetActiveInputContext (ezEditorInputContext *pContext)
 
static bool IsAnyInputContextActive ()
 
static ezEditorInputContextGetActiveInputContext ()
 
static void UpdateActiveInputContext ()
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Public Attributes inherited from ezGizmo
ezEvent< const ezGizmoEvent & > m_GizmoEvents
 
- Protected Attributes inherited from ezScaleGizmo
bool m_bEnableAxisX = true
 
bool m_bEnableAxisY = true
 
bool m_bEnableAxisZ = true
 
bool m_bEnableAxisXYZ = true
 
ezEngineGizmoHandle m_hAxisX
 
ezEngineGizmoHandle m_hAxisY
 
ezEngineGizmoHandle m_hAxisZ
 
ezEngineGizmoHandle m_hAxisXYZ
 
- Protected Attributes inherited from ezGizmo
const ezCameram_pCamera = nullptr
 
ezGizmoHandlem_pInteractionGizmoHandle = nullptr
 
ezVec3 m_vInteractionPivot
 
ezVec2I32 m_vViewport
 

Detailed Description

Scale gizmo version that only uses boxes that can be composited with rotate and translate gizmos without major overlap. Used by the ezTransformManipulatorAdapter.

Member Function Documentation

◆ OnTransformationChanged()

void ezManipulatorScaleGizmo::OnTransformationChanged ( const ezTransform transform)
overrideprotectedvirtual

Reimplemented from ezScaleGizmo.


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