User Tools

Site Tools


DzViewport

A container widget for a three dimensional viewport and any associated decoration.

More...

Inherits :

Methods

Signals

Detailed Description

A DzViewport is a widget that consists of a Dz3DViewport, an optional alternate DzView, and an indicator of the viewport's active state (for cases where multiple instances are displayed to the user at the same time).

Methods


Dz3DViewport : get3DViewport()

Return Value:

  • The embedded 3D viewport that this viewport encapsulates.

DzViewportMgr : getManager()

Return Value:

  • The manager of this viewport.

DzView : getView()

Return Value:

  • The alternate view currently being displayed in the viewport; NULL if an alternate view is not displayed (i.e., the 3D viewport is active).

Boolean : isCustom()

Return Value:

  • true if this viewport is custom; otherwise false.

Since:

  • 4.7.1.104

void : setView( DzView view )

Sets the alternate view for the viewport; this replaces the 3D viewport while active. Pass in NULL to clear the alternate view and restore the 3D viewport.

Parameter(s):

  • view - The view to display in the viewport.

void : setViewVisible( Boolean onOff )

Sets the visible state of the alternate view for this viewport, if an alternate view has been set.

Parameter(s):

  • onOff - If true, the alternate view (if any) is displayed.

See Also:

Signals


void : dimensionsChanged()

Signature:“dimensionsChanged()”

Emitted when the dimensions of the viewport has changed.


void : view3dCurrentDimensionsChanged()

Signature:“view3dCurrentDimensionsChanged()”

Emitted when the dimensions of the encapsulated 3D viewport has changed.


void : viewChanged( DzView view )

Signature:“viewChanged(DzView*)”

Emitted when the view has changed (e.g., when switched between the 3D viewport and an alternate view).

Parameter(s):

  • view - The view that was changed to.