Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtGameObjectViewWidget Class Reference
Inheritance diagram for plQtGameObjectViewWidget:

Public Member Functions

 plQtGameObjectViewWidget (QWidget *pParent, plQtGameObjectDocumentWindow *pOwnerWindow, plEngineViewConfig *pViewConfig)
 
virtual void SyncToEngine () override
 Sends the redraw message to the engine.
 
- Public Member Functions inherited from plQtEngineViewWidget
 plQtEngineViewWidget (QWidget *pParent, plQtEngineDocumentWindow *pDocumentWindow, plEngineViewConfig *pViewConfig)
 
plUInt32 GetViewID () const
 Returns the ID of this view.
 
plQtEngineDocumentWindowGetDocumentWindow () const
 
void GetCameraMatrices (plMat4 &out_mViewMatrix, plMat4 &out_mProjectionMatrix) const
 
void UpdateCameraInterpolation ()
 Called every frame to move the camera to its current target (focus on selection, etc.)
 
void InterpolateCameraTo (const plVec3 &vPosition, const plVec3 &vDirection, float fFovOrDim, const plVec3 *pNewUpDirection=nullptr, bool bImmediate=false)
 The view's camera will be interpolated to the given coordinates.
 
void SetEnablePicking (bool bEnable)
 If disabled, no picking takes place in this view.
 
void SetPickTransparent (bool bEnable)
 
virtual bool IsPickingAgainstSelectionAllowed () const
 Disabled during drag&drop operations, to prevent picking against the dragged object.
 
void OpenContextMenu (QPoint globalPos)
 Supposed to open a context menu at the given position. Derived classes must implement OnOpenContextMenu and do the actual work there.
 
const plObjectPickingResultPickObject (plUInt16 uiScreenPosX, plUInt16 uiScreenPosY) const
 Starts a picking operation for the given pixel position in this view. Returns the most recent picking information in the meantime.
 
plResult PickPlane (plUInt16 uiScreenPosX, plUInt16 uiScreenPosY, const plPlane &plane, plVec3 &out_vPosition) const
 Similar to PickObject, but computes the intersection with the given plane instead.
 
void HandleViewMessage (const plEditorEngineViewMsg *pMsg)
 Processes incoming messages from the engine that are meant for this particular view. Mostly picking results.
 
virtual plPlane GetFallbackPickingPlane (plVec3 vPointOnPlane=plVec3(0)) const
 Returns a plane that can be used for picking, when nothing else is available Orthographic views would typically return their projection planes, perspective views may return the ground plane.
 
void TakeScreenshot (const char *szOutputPath) const
 

Public Attributes

plOrthoGizmoContextm_pOrthoGizmoContext
 
plSelectionContextm_pSelectionContext
 
plCameraMoveContextm_pCameraMoveContext
 
- Public Attributes inherited from plQtEngineViewWidget
plHybridArray< plEditorInputContext *, 8 > m_InputContexts
 Add input contexts in the order in which they are supposed to be processed.
 
plEngineViewConfigm_pViewConfig
 

Protected Member Functions

virtual void HandleMarqueePickingResult (const plViewMarqueePickingResultMsgToEditor *pMsg) override
 
- Protected Member Functions inherited from plQtEngineViewWidget
virtual bool eventFilter (QObject *object, QEvent *event) override
 Used to deactivate shortcuts.
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual QPaintEngine * paintEngine () const override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *e) override
 
virtual void keyReleaseEvent (QKeyEvent *e) override
 
virtual void mousePressEvent (QMouseEvent *e) override
 
virtual void mouseReleaseEvent (QMouseEvent *e) override
 
virtual void mouseMoveEvent (QMouseEvent *e) override
 
virtual void wheelEvent (QWheelEvent *e) override
 
virtual void focusOutEvent (QFocusEvent *e) override
 
virtual void dragEnterEvent (QDragEnterEvent *e) override
 
virtual void dragLeaveEvent (QDragLeaveEvent *e) override
 
virtual void dropEvent (QDropEvent *e) override
 
void EngineViewProcessEventHandler (const plEditorEngineProcessConnection::Event &e)
 
void ShowRestartButton (bool bShow)
 
virtual void OnOpenContextMenu (QPoint globalPos)
 

Protected Attributes

plUInt32 m_uiLastMarqueeActionID = 0
 
plDeque< plUuidm_MarqueeBaseSelection
 
- Protected Attributes inherited from plQtEngineViewWidget
bool m_bUpdatePickingData
 
bool m_bPickTransparent = true
 
bool m_bInDragAndDropOperation
 
plUInt32 m_uiViewID
 
plQtEngineDocumentWindowm_pDocumentWindow
 
float m_fCameraLerp
 
float m_fCameraStartFovOrDim
 
float m_fCameraTargetFovOrDim
 
plVec3 m_vCameraStartPosition
 
plVec3 m_vCameraTargetPosition
 
plVec3 m_vCameraStartDirection
 
plVec3 m_vCameraTargetDirection
 
plVec3 m_vCameraUp
 
plTime m_LastCameraUpdate
 
QHBoxLayout * m_pRestartButtonLayout
 
QPushButton * m_pRestartButton
 
plObjectPickingResult m_LastPickingResult
 

Additional Inherited Members

- Static Public Member Functions inherited from plQtEngineViewWidget
static const InteractionContextGetInteractionContext ()
 Returns the latest information about what viewport the user interacted with.
 
static void SetInteractionContext (const InteractionContext &ctxt)
 Overrides the InteractionContext with custom values. Mostly useful for injecting procedural user interaction for unit tests.
 
- Static Public Attributes inherited from plQtEngineViewWidget
static plSizeU32 s_FixedResolution
 
- Static Protected Attributes inherited from plQtEngineViewWidget
static plUInt32 s_uiNextViewID = 0
 
static InteractionContext s_InteractionContext
 

Member Function Documentation

◆ HandleMarqueePickingResult()

void plQtGameObjectViewWidget::HandleMarqueePickingResult ( const plViewMarqueePickingResultMsgToEditor * pMsg)
overrideprotectedvirtual

Reimplemented from plQtEngineViewWidget.

◆ SyncToEngine()

void plQtGameObjectViewWidget::SyncToEngine ( )
overridevirtual

Sends the redraw message to the engine.

Reimplemented from plQtEngineViewWidget.


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