User Tools

Site Tools


DzViewportMgr

Manager responsible for viewports and tools that operate within them.

More...

Inherits :

Enumerations

Static Methods

Methods

DAZ Script
voidactivateNextTool ()
voidactivatePrevTool ()
voidapplyStyleColors ()
voidclearOverrideTool ()
DzViewToolfindTool ( String className )
DzUserDrawStylefindUserDrawStyle ( String description )
DzViewToolgetActiveTool ()
DzViewportgetActiveViewport ()
DzViewportgetCustomViewport ( Number i )
DzViewportgetDefaultViewport ( Number i )
ArraygetDrawSettingsElementList ()
BooleangetInvertMouseWheel ()
LayoutgetLayout ()
ViewMouseBtnAcceleratorgetMouseBtnAccelerator ( ViewOperation operation )
ViewMouseBtnAcceleratorgetMouseBtnAccelerator ( Qt::MouseButton button, Qt::KeyboardModifiers modifiers )
ViewMouseBtnAcceleratorgetMouseBtnAccelerator ( Number mouseBtn, Boolean ctrl, Boolean alt, Boolean shift )
ViewMouseBtnAcceleratorgetMouseBtnAccelerator ( String str )
StringgetMouseBtnAcceleratorString ( ViewMouseBtnAccelerator accel )
StringgetMouseBtnAcceleratorString ( ViewOperation operation )
NumbergetMouseDragScalar ()
ViewMouseModifiergetMouseModifier ( String str )
ViewMouseModifiergetMouseModifier ( Qt::KeyboardModifiers modifiers )
ViewMouseModifiergetMouseModifier ( Boolean ctrl, Boolean alt, Boolean shift )
StringgetMouseModifierString ( ViewMouseModifier accel )
NumbergetMouseWheelScalar ()
NumbergetNodeClickMode ()
NumbergetNumCustomViewports ()
NumbergetNumDefaultViewports ()
NumbergetNumTools ()
NumbergetNumViewCameras ()
NumbergetNumViewports ()
NumbergetNumVisibleCustomViewports ()
NumbergetNumVisibleDefaultViewports ()
NumbergetNumVisibleViewports ()
ViewOperationgetOperation ( ViewMouseBtnAccelerator accel )
DzViewToolgetOverrideTool ()
BooleangetPropagateBackgroundColor ()
QDModegetQuickDrawMode ()
NumbergetRegionClickMode ()
DzViewToolgetTool ( Number i )
BooleangetUsePerPixelLighting ()
DzCameragetViewCamera ( DzCamera::CameraType type )
DzCameragetViewCamera ( Number i )
DzViewportgetViewport ( Number i )
BooleanisManipulationBindingOn ()
BooleanisSubDManipulationOn ()
voidrepaintActive3DViewport ()
voidresetViewCameras ()
voidsetActiveTool ( Number i )
voidsetActiveTool ( DzViewTool tool )
voidsetActiveViewport ( DzViewport activeView )
voidsetInvertMouseWheel ( Boolean onOff )
voidsetLayout ( Layout val )
voidsetManipulationBindingOn ( Boolean onOff )
voidsetMouseBtnAccelerator ( ViewOperation operation, ViewMouseBtnAccelerator accel )
voidsetMouseDragScalar ( Number val )
voidsetMouseWheelScalar ( Number val )
voidsetNodeClickMode ( Number mode )
voidsetOverrideTool ( DzViewTool viewTool )
voidsetPropagateBackgroundColor ( Boolean onOff )
voidsetQuickDrawMode ( QDMode mode )
voidsetRegionClickMode ( Number mode )
voidsetSubDManipulationOn ( Boolean onOff )
voidsetUsePerPixelLighting ( Boolean onOff )
voidsetViewRatios ( Number hSingle, Number h1, Number h2, Number vSingle, Number v1, Number v2 )
BooleanvalidateMouseBtnAccelerator ( ViewMouseBtnAccelerator accel )
BooleanvalidateMouseWheelAccelerator ( ViewMouseModifier accel )

Signals

Detailed Description

Responsible for the management of viewports, general options related to how viewports (or the items within them) are drawn or operated on, and the tools that operate within the context of a viewport.

There is only one instance of this manager in an application. This instance is created and owned by DzMainWindow. Request the instance via DzMainWindow::getViewportMgr().

See Also:

Enumerations


: Layout

The possible viewport layout configurations.

  • NO_PANES - No visible viewports.
  • SINGLE_PANE - A single visible viewport.
  • LEFT_RIGHT - 2 visible viewports; split the view area into right and left.
  • TOP_BOTTOM - 2 visible viewports; split the view area into top and bottom.
  • LEFT2_RIGHT - 3 visible viewports; 2 on the left side and 1 on the right.
  • LEFT3_RIGHT - 4 visible viewports; 3 on the left side and 1 on the right.
  • LEFT_RIGHT2 - 3 visible viewports; 2 on the right side and 1 on the left.
  • LEFT_RIGHT3 - 4 visible viewports; 3 on the right side and 1 on the left.
  • TOP2_BOTTOM - 3 visible viewports; 2 on the top side and 1 on the bottom.
  • TOP3_BOTTOM - 4 visible viewports; 3 on the top side and 1 on the bottom.
  • TOP_BOTTOM2 - 3 visible viewports; 2 on the bottom side and 1 on the top.
  • TOP_BOTTOM3 - 4 visible viewports; 3 on the bottom side and 1 on the top.
  • FOUR_PANE - 4 visible viewports; one in each corner.
  • NUM_LAYOUTS - Total number of layouts.

—–

: NodeClickMode

The possible node click modes.

  • Node - Clicking a node in the viewport causes that node to become selected (or deselected).
  • SkeletonThenNode - Clicking any node of a figure in the viewport, which does not already have a node selected, causes the skeleton for that node to become selected. Each subsequent click on a node in the same figure causes the clicked node to become selected (or deselected). All other node types behave the same as described in Node.
  • Skeleton - Clicking any node of a figure in the viewport causes the skeleton for that node to become selected (or deselected). All other node types behave the same as described in Node.

—–

: QDMode

The possible modes to switch to in order to improve the speed of viewport drawing operations while an object in the scene is being actively manipulated.

  • QDOff - Quick drawing is disabled; objects will be drawn using the current DrawStyle for the viewport.
  • QDWire - Objects will be drawn using a “Wire Bounding Box” representation.
  • QDSmooth - Objects will be drawn using a “Solid Bounding Box” representation.

—–

: RegionClickMode

The possible region click modes.

  • Nested - Clicking a region in the viewport causes interaction with that region in a hierarchical manner; each click provides access to sibling and immediate child regions of the region that was clicked; double-click ascends to the root region.
  • Flat - Clicking a region in the viewport causes interaction with that region directly; region hierarchy is ignored; double-click ascends to the root region.

—–

: ViewMouseBtnAccelerator

The possible accelerators (keyboard and mouse button combinations) for manipulating the view.

  • NoAccel - No accelerator.
  • LeftClick - The left button on the mouse is pressed.
  • RightClick - The right button on the mouse is pressed.
  • MidClick - The middle button on the mouse is pressed.
  • AltLeftClick - The [Alt] key on the keyboard is pressed and the left button on the mouse is pressed.
  • AltRightClick - The [Alt] key on the keyboard is pressed and the right button on the mouse is pressed.
  • AltMidClick - The [Alt] key on the keyboard is pressed and the middle button on the mouse is pressed.
  • CtrlLeftClick - The [Ctrl] key on the keyboard is pressed and the left button on the mouse is pressed.
  • CtrlRightClick - The [Ctrl] key on the keyboard is pressed and the right button on the mouse is pressed.
  • CtrlMidClick - The [Ctrl] key on the keyboard is pressed and the middle button on the mouse is pressed.
  • ShiftLeftClick - The [Shift] key on the keyboard is pressed and the left button on the mouse is pressed.
  • ShiftRightClick - The [Shift] key on the keyboard is pressed and the right button on the mouse is pressed.
  • ShiftMidClick - The [Shift] key on the keyboard is pressed and the middle button on the mouse is pressed.
  • CtrlAltLeftClick - The [Ctrl] and [Alt] keys on the keyboard are pressed and the left button on the mouse is pressed.
  • CtrlAltRightClick - The [Ctrl] and [Alt] keys on the keyboard are pressed and the right button on the mouse is pressed.
  • CtrlAltMidClick - The [Ctrl] and [Alt] keys on the keyboard are pressed and the middle button on the mouse is pressed.
  • CtrlShiftLeftClick - The [Ctrl] and [Shift] keys on the keyboard are pressed and the left button on the mouse is pressed.
  • CtrlShiftRightClick - The [Ctrl] and [Shift] keys on the keyboard are pressed and the right button on the mouse is pressed.
  • CtrlShiftMidClick - The [Ctrl] and [Shift] keys on the keyboard are pressed and the middle button on the mouse is pressed.
  • AltShiftLeftClick - The [Alt] and [Shift] keys on the keyboard are pressed and the left button on the mouse is pressed.
  • AltShiftRightClick - The [Alt] and [Shift] keys on the keyboard are pressed and the right button on the mouse is pressed.
  • AltShiftMidClick - The [Alt] and [Shift] keys on the keyboard are pressed and the middle button on the mouse is pressed.
  • CtrlAltShiftLeftClick - The [Ctrl], [Alt] and [Shift] keys on the keyboard are pressed and the left button on the mouse is pressed.
  • CtrlAltShiftRightClick - The [Ctrl], [Alt] and [Shift] keys on the keyboard are pressed and the right button on the mouse is pressed.
  • CtrlAltShiftMidClick - The [Ctrl], [Alt] and [Shift] keys on the keyboard are pressed and the middle button on the mouse is pressed.

—–

: ViewMouseModifier

The possible keyboard modifiers for manipulating the view with the mouse.

  • NoModifier - No modifier is pressed.
  • Alt - The [Alt] key on the keyboard is pressed.
  • Shift - The [Shift] key on the keyboard is pressed.
  • Ctrl - The [Ctrl] key on the keyboard is pressed.
  • CtrlAlt - The [Ctrl] and [Alt] keys on the keyboard are pressed.
  • CtrlShift - The [Ctrl] and [Shift] keys on the keyboard are pressed.
  • CtrlAltShift - The [Ctrl], [Alt] and [Shift] keys on the keyboard are pressed.
  • ShiftAlt - The [Shift] and [Alt] keys on the keyboard are pressed.

—–

: ViewOperation

The possible operations to perform on the active viewport.

  • NoOperation - Do nothing.
  • OrbitCamera - Rotate the camera about its focal point.
  • RotateCamera - Rotate the camera about its origin.
  • PanCamera - Translate the camera on its relative XY plane; i.e., left-right, up-down.
  • DollyCamera - Translate the camera on its relative XZ plane; i.e., left-right, toward-away.
  • BankCamera - Rotate the camera about its relative Z axis; i.e., tilt.
  • ZoomDCamera - Translate the camera on its relative XZ plane; i.e., left-right, toward-away.
  • ZoomFCamera - Adjust the focal distance and/or translate the camera on its relative X axis.

Static Methods


Number : getNumUserDrawStyles()

Return Value:

  • The number of user selectable DrawStyles.

Number : getNumViews()

Return Value:

  • The number of available views.

DzUserDrawStyle : getUserDrawStyle( Number i )

Parameter(s):

  • i - The index of the DrawStyle to get.

Return Value:

  • A new instance of the DrawStyle at the given index (if valid), otherwise null.

DzView : getView( Number i )

Parameter(s):

  • i - The index of the view to get.

Return Value:

  • A new instance of the view at the given index (if valid), otherwise null.

String : getViewDescription( Number i )

Parameter(s):

  • i - The index of the view to get the description of.

Return Value:

  • The description for the view at the given index (if valid), otherwise an empty string.

Methods


void : activateNextTool()

Sets the next tool in the list after the currently active tool to be the currently active tool.


void : activatePrevTool()

Sets the tool in the list before the currently active tool to be the currently active tool.


void : applyStyleColors()

Causes the color of each viewport to be set to their respective values, if the color is defined in the current style.


void : clearOverrideTool()

Clears any view tool that was temporarily overriding the active view tool.

Since:

  • 4.8.0.10

DzViewTool : findTool( String className )

Parameter(s):

  • className - The classname of the tool to find.

Return Value:

  • The tool with the given class name (if any), otherwise null.

DzUserDrawStyle : findUserDrawStyle( String description )

Parameter(s):

  • description - The description of the DrawStyle to find.

Return Value:

  • A new instance of the DrawStyle found (if any), otherwise null.

DzViewTool : getActiveTool()

Return Value:

  • The active view tool.

DzViewport : getActiveViewport()

Return Value:

  • The currently active viewport.

DzViewport : getCustomViewport( Number i )

Return Value:

  • The custom viewport at the given index (if valid), otherwise null.

Since:

  • 4.7.1.104

DzViewport : getDefaultViewport( Number i )

Return Value:

  • The default viewport at the given index (if valid), otherwise null.

Since:

  • 4.7.1.104

Array : getDrawSettingsElementList()

Return Value:

  • A list of elements with properites that control the DrawStyle for the active 3D viewport.

Since:

  • 4.11.0.44

Boolean : getInvertMouseWheel()

Return Value:

  • true if mouse wheel response in the viewports is currently inverted, otherwise false.

Layout : getLayout()

Return Value:

  • Current view layout.

ViewMouseBtnAccelerator : getMouseBtnAccelerator( ViewOperation operation )

Parameter(s):

  • operation - The operation to get the mouse button accelerator for.

Return Value:

  • The mouse button accelerator for the given operation (if any), otherwise NoAccel.

ViewMouseBtnAccelerator : getMouseBtnAccelerator( Qt::MouseButton button, Qt::KeyboardModifiers modifiers )

Parameter(s):

  • modifiers - The keyboard modifiers to include.

Return Value:

  • The mouse button accelerator for the given mouse button and keyboard modifier states (if any), otherwise NoAccel.

ViewMouseBtnAccelerator : getMouseBtnAccelerator( Number mouseBtn, Boolean ctrl, Boolean alt, Boolean shift )

Parameter(s):

  • mouseBtn - If 0, the left mouse button. If 1, the middle mouse button. If 2, the right mouse button.
  • ctrl - If true, the Ctrl key will be included.
  • alt - If true, the Alt key will be included.
  • shift - If true, the Shift key will be included.

Return Value:

  • The mouse button accelerator for the given mouse button and keyboard modifier states (if any), otherwise NoAccel.

ViewMouseBtnAccelerator : getMouseBtnAccelerator( String str )

Parameter(s):

  • str - The string to convert.

Return Value:

  • The mouse button accelerator for the given string (if any), otherwise NoAccel.

String : getMouseBtnAcceleratorString( ViewMouseBtnAccelerator accel )

Parameter(s):

  • accel - The mouse button accelerator to get the string for.

Return Value:

  • A string representation of the given mouse button accelerator (if any), otherwise an empty string.

String : getMouseBtnAcceleratorString( ViewOperation operation )

Parameter(s):

  • operation - The operation to get the string for.

Return Value:

  • A string representation of the mouse button accelerator for the given operation (if any), otherwise an empty string.

Number : getMouseDragScalar()

Return Value:

  • The sensitivity of the mouse move response in the viewports.

Since:

  • 4.11.0.159

ViewMouseModifier : getMouseModifier( String str )

Parameter(s):

  • str - The string to convert.

Return Value:

  • The mouse modifier for the given string (if any), otherwise NoModifier.

ViewMouseModifier : getMouseModifier( Qt::KeyboardModifiers modifiers )

Parameter(s):

  • modifiers - The keyboard modifiers to include.

Return Value:

  • The mouse modifier for the given keyboard modifier states (if any), otherwise NoModifier.

ViewMouseModifier : getMouseModifier( Boolean ctrl, Boolean alt, Boolean shift )

Parameter(s):

  • ctrl - If true, the Ctrl key will be included.
  • alt - If true, the Alt key will be included.
  • shift - If true, the Shift key will be included.

Return Value:

  • The mouse modifier for the given keyboard modifier states (if any), otherwise NoModifier.

String : getMouseModifierString( ViewMouseModifier accel )

Parameter(s):

  • accel - The mouse modifier to get the string for.

Return Value:

  • A string representation of the given mouse modifier (if any), otherwise an empty string.

Number : getMouseWheelScalar()

Return Value:

  • The sensitivity of the mouse wheel response in the viewports.

Since:

  • 4.11.0.159

Number : getNodeClickMode()

Return Value:

  • The node click mode for pick tools.

Number : getNumCustomViewports()

Return Value:

  • The number of custom viewports.

Since:

  • 4.7.1.104

Number : getNumDefaultViewports()

Return Value:

  • The number of default (non-custom) viewports.

Since:

  • 4.7.1.104

Number : getNumTools()

Return Value:

  • The number of view tools.

Number : getNumViewCameras()

Return Value:

  • The number of view cameras.

Number : getNumViewports()

Return Value:

  • The total number of viewports.

Number : getNumVisibleCustomViewports()

Return Value:

  • The number of custom viewports currently showing.

Since:

  • 4.7.1.104

Number : getNumVisibleDefaultViewports()

Return Value:

  • The number of default viewports currently showing.

Since:

  • 4.7.1.104

Number : getNumVisibleViewports()

Return Value:

  • The total number of viewports currently showing.

ViewOperation : getOperation( ViewMouseBtnAccelerator accel )

Parameter(s):

  • accel - The accelerator to get the operation for.

Return Value:

  • The operation for the given accelerator (if any), otherwise NoOperation.

DzViewTool : getOverrideTool()

Return Value:

  • The override tool (if any), otherwise NULL.

Attention:

  • An override tool is a view tool that temporarily overrides the active view tool.

Since:

  • 4.8.0.10

Boolean : getPropagateBackgroundColor()

Return Value:

  • Whether or not to propagate a background color change to all viewports.

QDMode : getQuickDrawMode()

Return Value:

  • The current quick draw mode.

Since:

  • 4.11.0.159

Number : getRegionClickMode()

Return Value:

  • The region click mode for pick tools.

DzViewTool : getTool( Number i )

Return Value:

  • The view tool at the given index (if valid), otherwise null.

Boolean : getUsePerPixelLighting()

Return Value:

  • true if illumination calculations for each pixel in the viewport is enabled, otherwise false.

DzCamera : getViewCamera( DzCamera::CameraType type )

Return Value:

  • The View (non-animatable) camera of the given type.

DzCamera : getViewCamera( Number i )

Return Value:

  • The View (non-animatable) camera at the given index.

DzViewport : getViewport( Number i )

Return Value:

  • The viewport at the given index.

Attention:


Boolean : isManipulationBindingOn()

Return Value:

  • true if manipulation binding will be used on TriAx weighted figures during manipulation, otherwise false.

Since:

  • 4.11.0.159

Boolean : isSubDManipulationOn()

Return Value:

  • true if SubDivision Manipulation is enabled, otherwise false..

Since:

  • 4.11.0.159

void : repaintActive3DViewport()

A convenience method that forces a repaint of the currently active 3D viewport.


void : resetViewCameras()

Resets all the view cameras to their defaults.


void : setActiveTool( Number i )

Sets the currently active 3D tool.

Parameter(s):

  • i - The index of the tool to set as being the active tool.

void : setActiveTool( DzViewTool tool )

Sets the currently active 3D tool.

Parameter(s):

  • tool - The tool to set as being the active tool.

void : setActiveViewport( DzViewport activeView )

Set the active DzViewport. The given DzViewport must already be attached as an interface to this Scene.

Parameter(s):

  • activeView - The viewport to set.

void : setInvertMouseWheel( Boolean onOff )

Sets whether mouse wheel response in the viewports is inverted.

Parameter(s):

  • onOff - If true, the mouse wheel will be inverted in the viewports. If false, mouse wheel response in the viewports will be standard.

void : 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.

Parameter(s):

  • val - The layout to set.

void : setManipulationBindingOn( Boolean onOff )

Sets whether or not manipulation binding will be used on TriAx weighted figures during manipulation.

Parameter(s):

  • onOff - If true, manipulation binding will be used on TriAx weighted figures during manipulation.

Since:

  • 4.11.0.159

void : setMouseBtnAccelerator( ViewOperation operation, ViewMouseBtnAccelerator accel )

Sets the mouse button accelerator for the given view operation.

Parameter(s):

  • operation - The view operation to set the accelerator for.
  • accel - The accelerator to set for the view operation.

void : setMouseDragScalar( Number val )

Sets the sensitivity of the mouse move response in the viewports.

Parameter(s):

  • val - The scalar value to set.
var oMgr = MainWindow.getViewportMgr();
var nOldScalar = oMgr.getMouseDragScalar();
var nNewScalar = Math.max( nOldScalar - 0.05, 0.01 );
oMgr.setMouseDragScalar( nNewScalar );
print( "Old:", nOldScalar, "New:", nNewScalar );

Since:

  • 4.11.0.159

void : setMouseWheelScalar( Number val )

Sets the sensitivity of the mouse wheel response in the viewports.

Parameter(s):

  • val - The scalar value to set.

Since:

  • 4.11.0.159

void : setNodeClickMode( Number mode )

Set the click mode for node selection tools.

Parameter(s):

  • mode - The mode to set.

void : setOverrideTool( DzViewTool viewTool )

Sets a temporary view tool that overrides the active view tool.

Parameter(s):

  • viewTool - The view tool to override with.

Since:

  • 4.8.0.10

void : setPropagateBackgroundColor( Boolean onOff )

Set whether or not a background color change of a single viewport should be propagated to the other viewports.

Parameter(s):

  • onOff - If true, setting the background color of one veiwport sets the background color for all viewports.

void : setQuickDrawMode( QDMode mode )

Sets the current quick draw mode.

Since:

  • 4.11.0.159

void : setRegionClickMode( Number mode )

Set the click mode for region selection tools.

Parameter(s):

  • mode - The mode to set.

void : setSubDManipulationOn( Boolean onOff )

Sets whether or not SubD models are subdivided during manipulation.

Parameter(s):

  • onOff - If true, SubD models are subdivided during manipulation.

Since:

  • 4.11.0.159

void : setUsePerPixelLighting( Boolean onOff )

Sets whether or not to enable illumination calculations for each pixel in the viewport.

Parameter(s):

  • onOff - If true, per pixel lighting is enabled.

void : setViewRatios( Number hSingle, Number h1, Number h2, Number vSingle, Number v1, Number v2 )

Sets the ratios that are used to layout the viewports inside the view area. Each value is a percentage of the available area that will be allocated to the given viewport(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 viewports 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.

Parameter(s):

  • hSingle - The percentage of the height taken by the top viewport(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 viewport(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.

Boolean : validateMouseBtnAccelerator( ViewMouseBtnAccelerator accel )

Parameter(s):

  • accel - The accelerator to test.

Return Value:

  • true if accel is not already assigned, otherwise false.

Boolean : validateMouseWheelAccelerator( ViewMouseModifier accel )

Parameter(s):

  • accel - The accelerator to test.

Return Value:

  • Always returns true; currently no wheel events on the viewport to conflict with.

Signals


void : accelChanged( ViewOperation operation, ViewMouseBtnAccelerator accel )

Signature:“accelChanged(ViewOperation,ViewMouseBtnAccelerator)”

Emitted when an accelerator (keyboard shortcut) for navigating the scene changes.

Parameter(s):

  • operation - The operation that the accelerator changed for.
  • accel - The accelerator assigned to the operation.

void : acceleratorsChanged()

Signature:“acceleratorsChanged()”

Emitted when an accelerator (keyboard shortcut) for navigating the scene changes.


void : acitve3DViewCurrentDimensionsChanged()

Signature:“acitve3DViewCurrentDimensionsChanged()”

Emitted when the dimensions of the active 3D viewport changes.


void : activeToolDrawnDataChanged()

Signature:“activeToolDrawnDataChanged()”

Emitted when the drawn data for the active tool changes.


void : activeToolSwitched()

Signature:“activeToolSwitched()”

Emitted when the active tool changes.


void : activeViewResized()

Signature:“activeViewResized()”

Emitted when the active view changes size.


void : activeViewSwitched()

Signature:“activeViewSwitched()”

Emitted when the active view changes.


void : contextMenuAboutToShow( DzMenu menu, Dz3DViewport view, Point pos )

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.

Parameter(s):

  • menu - The menu that will be displayed at the point of the request.
  • view - The viewport that the menu is about to be shown for.
  • pos - The position that the menu was requested.

void : drawElementsListChanged()

Signature:“drawElementsListChanged()”

Emitted when the list of elements that hold properties for controlling a DrawStyle changes; e.g., when the active DrawStyle changes.


void : graftDrawingChanged()

Signature:“graftDrawingChanged()”

Emitted when the state of whehter or not Geo-Grafted objects are drawn as grafted changes.


void : invertMouseWheelChanged( Boolean onOff )

Signature:“invertMouseWheelChanged(bool)”

Emitted when the state of whether or not to invert the behavior of scrolling the mouse wheel changes.

Parameter(s):

  • onOff - The new state.

void : manipFinished()

Signature:“manipFinished()”

Emitted when a quick draw operation is finished.


void : manipStarted()

Signature:“manipStarted()”

Emitted when a quick draw operation is started.


void : manipulationBindingChanged( Boolean onOff )

Signature:“manipulationBindingChanged(bool)”

Emitted when the manipulation binding state changes.

Parameter(s):

  • onOff - The new state.

void : mouseDragScalarChanged( Number scalar )

Signature:“mouseDragScalarChanged(float)”

Emitted when the scalar for mouse movement changes.

Parameter(s):

  • scalar - The new scalar.

Since:

  • 4.11.0.159

void : mouseWheelScalarChanged( Number scalar )

Signature:“mouseWheelScalarChanged(float)”

Emitted when the scalar for the mouse wheel changes.

Parameter(s):

  • scalar - The new scalar.

Since:

  • 4.11.0.159

void : nodeClickModeChanged( Number mode )

Signature:“nodeClickModeChanged(int)”

Emitted when the mode for what happens when a node is clicked changes.

Parameter(s):

  • mode - The new mode.

void : propagateBackgroundColorChanged( Boolean onOff )

Signature:“propagateBackgroundColorChanged(bool)”

Emitted when whether or not to propagate background color changes has changed.

Parameter(s):

  • onOff - The new state.

void : quickDrawModeChanged( QDMode mode )

Signature:“quickDrawModeChanged(QDMode)”

Emitted when the quick draw mode changes.

Parameter(s):

  • mode - The new mode.

void : redrawsLocked( Boolean onOff )

Signature:“redrawsLocked(bool)”

Emitted when the redraw lock state changes.

Parameter(s):

  • onOff - The new state.

void : regionClickModeChanged( Number mode )

Signature:“regionClickModeChanged(int)”

Emitted when the mode for what happens when a region is clicked changes.

Parameter(s):

  • mode - The new mode.

void : subDManipulationChanged( Boolean onOff )

Signature:“subDManipulationChanged(bool)”

Emitted when the subD manipulation state changes.

Parameter(s):

  • onOff - The new state.

void : toolListChanged()

Signature:“toolListChanged()”

Emitted when the tool list changes.


void : viewLayoutChanged()

Signature:“viewLayoutChanged()”

Emitted when the layout of the viewports changes.


void : viewportCameraListChanged()

Signature:“viewportCameraListChanged()”

Emitted when the global list of available cameras changes.