|
| xiiQtEngineViewWidget (QWidget *pParent, xiiQtEngineDocumentWindow *pDocumentWindow, xiiEngineViewConfig *pViewConfig) |
|
xiiUInt32 | GetViewID () const |
| Returns the ID of this view.
|
|
xiiQtEngineDocumentWindow * | GetDocumentWindow () const |
|
virtual void | SyncToEngine () |
| Sends the redraw message to the engine.
|
|
void | GetCameraMatrices (xiiMat4 &out_mViewMatrix, xiiMat4 &out_mProjectionMatrix) const |
|
void | UpdateCameraInterpolation () |
| Called every frame to move the camera to its current target (focus on selection, etc.)
|
|
void | InterpolateCameraTo (const xiiVec3 &vPosition, const xiiVec3 &vDirection, float fFovOrDim, const xiiVec3 *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 xiiObjectPickingResult & | PickObject (xiiUInt16 uiScreenPosX, xiiUInt16 uiScreenPosY) const |
| Starts a picking operation for the given pixel position in this view. Returns the most recent picking information in the meantime.
|
|
xiiResult | PickPlane (xiiUInt16 uiScreenPosX, xiiUInt16 uiScreenPosY, const xiiPlane &plane, xiiVec3 &out_vPosition) const |
| Similar to PickObject, but computes the intersection with the given plane instead.
|
|
void | HandleViewMessage (const xiiEditorEngineViewMsg *pMsg) |
| Processes incoming messages from the engine that are meant for this particular view. Mostly picking results.
|
|
virtual xiiPlane | GetFallbackPickingPlane (xiiVec3 vPointOnPlane=xiiVec3(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 (xiiStringView sOutputPath) const |
|
|
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 xiiEditorEngineProcessConnection::Event &e) |
|
void | ShowRestartButton (bool bShow) |
|
void | RecreateEngineViewport () |
|
virtual void | OnOpenContextMenu (QPoint globalPos) |
|
virtual void | HandleMarqueePickingResult (const xiiViewMarqueePickingResultMsgToEditor *pMsg) |
|
Base class for views that show engine output.