There is only one of these widgets in the application. This widget is created and owned by DzMainWindow, and can be accessed by requesting a pointer to it from DzMainWindow via DzMainWindow::getViewportMgr().
The possible layout styles.
void DzViewportMgr::activateNextTool | ( | ) |
Sets the next tool in the list after the currently active tool to be the currently active tool.
void DzViewportMgr::activatePrevTool | ( | ) |
Sets the tool in the list before the currently active tool to be the currently active tool.
void DzViewportMgr::activeToolSwitched | ( | ) | [signal] |
Signature: "activeToolSwitched()"
Emitted when the active tool changes
void DzViewportMgr::activeViewSwitched | ( | ) | [signal] |
Signature: "activeViewSwitched()"
Emitted when the active view changes
DzViewportMgr::contextMenuAboutToShow | ( | DzMenu | menu, | |
Dz3DViewport | view, | |||
Point | pos | |||
) | [signal] |
Signature: "contextMenuAboutToShow(DzMenu*,Dz3DViewport*,QPoint)"
Emitted when the active viewport is about to display a context menu. Other objects can connect to this signal to add custom items to the menu that is displayed to the user.
DzViewTool DzViewportMgr::findTool | ( | String | className | ) |
DzViewTool DzViewportMgr::getActiveTool | ( | ) |
DzViewport DzViewportMgr::getActiveViewport | ( | ) |
Layout DzViewportMgr::getLayout | ( | ) |
int DzViewportMgr::getNumUserDrawStyles | ( | ) |
Number DzViewportMgr::getNumViewports | ( | ) |
int DzViewportMgr::getNumViews | ( | ) |
Number DzViewportMgr::getNumVisibleViewports | ( | ) |
DzViewTool DzViewportMgr::getTool | ( | Number | i | ) |
DzUserDrawStyle DzViewportMgr::getUserDrawStyle | ( | Number | which | ) |
DzCamera DzViewportMgr::getViewCamera | ( | DzCamera::CameraType | type | ) |
DzViewport DzViewportMgr::getViewport | ( | Number | which | ) |
void DzViewportMgr::manipFinished | ( | ) | [signal] |
Signature: "quickDrawFinished()"
Emitted when a quick draw operation is finished
void DzViewportMgr::manipStarted | ( | ) | [signal] |
Signature: "quickDrawStarted()"
Emitted when a quick draw operation is started
void DzViewportMgr::quickDrawModeChanged | ( | DzViewportMgr::QDMode | _t1 | ) | [signal] |
Signature: "quickDrawModeChanged(QDMode)"
Emitted when the quick draw mode changes
DzViewportMgr::redrawsLocked | ( | Boolean | onOff | ) | [signal] |
Signature: "redrawsLocked(bool)"
Emitted when the redraw lock state changes
void DzViewportMgr::repaintActive3DViewport | ( | ) |
A convenience method that forces a repaint of the currently active 3D viewport.
void DzViewportMgr::resetViewCameras | ( | ) |
Resets all the view cameras to their defaults.
void DzViewportMgr::setActiveTool | ( | Number | which | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void DzViewportMgr::setActiveTool | ( | DzViewTool | tool | ) |
Sets the currently active 3D tool.
void DzViewportMgr::setActiveViewport | ( | DzViewport | activeView | ) |
Set the active DzViewport. The given DzViewport must already be attached as an interface to this Scene.
void DzViewportMgr::setLayout | ( | Layout | val | ) |
Set the current layout. If we are in single pane mode, the new layout will take effect after single pane mode is switched off.
void DzViewportMgr::setViewRatios | ( | Number | hSingle, | |
Number | h1, | |||
Number | h2, | |||
Number | vSingle, | |||
Number | v1, | |||
Number | v2 | |||
) |
Sets the ratios that are used to layout the view ports inside the view area. Each value is a percentage of the available area that will be allocated to the given view port(s). The values passed in are clamped to valid ranges before applying them. The values should be specified in decimal notation - i.e. 0.0 is 0%, 0.5 is 50%, and 1.0 is 100%. The minimum percentage of the area allocated to any viewport on any axis is 20% (0.2). Therefore, any values that are below this value will be increased to this value, and any values that would result in a remainder less than this value will be decreased.
For example, when the view ports are laid out one right, and on left, there is one vertical division, so the vSingle
value will be used. If the value of vSingle
is 0.6 and the width of the view area is 1000 pixels, then the left view will be (0.6 * 1000) = 600 pixels wide, and the right view will be the remainder (1000 - 600) = 400 pixels wide.
In a more complex example, the viewports are laid out three on top, and one on bottom. There is one horizontal division, so the hSingle
value is used, and two vertical divisions, so the v1
and v2
values are used. The value of hSingle
is 0.35, the value of v1
is 0.3, the value of v2
is 0.5, and the view area is 1000 x 1000 pixels. Then, the top views will be (0.35 * 1000) = 350 pixels high, and the bottom view will be (1000 - 350) = 650 pixels high. The top-left view will be (0.3 * 1000) = 300 pixels wide, the top-center view will be (0.5 * 1000) = 500 pixels wide, and the top-right view will be (1000 - 300 - 500) = 200 pixels wide.
hSingle | The percentage of the height taken by the top view port(s) when the area has a single horizontal division | |
h1 | The percentage of the height taken by the top view port when the area has two horizontal divisions | |
h2 | The percentage of the height taken by the center view port when the area has two horizontal divisions | |
vSingle | The percentage of the width taken by the left view port(s) when the area has a single vertical division | |
v1 | The percentage of the width taken by the left view port when the area has two vertical divisions | |
v2 | The percentage of the width taken by the center view port when the area has two vertical divisions |
void DzViewportMgr::toolListChanged | ( | ) | [signal] |
Signature: "toolListChanged()"
Emitted when the tool list changes
void DzViewportMgr::viewLayoutChanged | ( | ) | [signal] |
Signature: "viewLayoutChanged()"
Emitted when the layout of the view ports changes
void DzViewportMgr::viewportCameraListChanged | ( | ) | [signal] |
Signature: "viewportCameraListChanged()"
Emitted when the global list of available cameras changes