SoDiagram2DZoom¶
-
InventorModule
¶ genre Diagram
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoDiagram2D
definition SoDiagram2D.def see also SoDiagram2D
,SoDiagram2DAxisZoom
inherits from SoDiagram2DInteractionExtension
keywords rectangle
,magnify
,factor
Purpose¶
The module SoDiagram2DZoom
zooms a diagram interactively.
The module offers two zoom modes: zooming by drawing a rubber band selection and zooming by turning the mouse wheel.
Usage¶
At the moment, the module only works with the left mouse button (in conjunction with an adjustable modified key) and with the mouse wheel.
Details¶
The zoom factor can be restricted on the panel of the module SoDiagram2D
.
Parameter Fields¶
Field Index¶
Alt : Enum |
cursorShape : Enum |
Stop Epsilon : Float |
Animate : Bool |
Ease Factor : Float |
x : Bool |
animateScrollingZoom : Bool |
Enabled (isSelectionZoomEnabled) : Bool |
X Max : Double |
Auto (restrictAutoXMin) : Bool |
Enabled (isScrollingZoomEnabled) : Bool |
X Min : Double |
Auto (restrictAutoXMax) : Bool |
Extension enabled : Bool |
y : Bool |
Auto (restrictAutoYMin) : Bool |
interactionProviderID : String |
Y Max : Double |
Auto (restrictAutoYMax) : Bool |
isEditingEnabled : Bool |
Y Min : Double |
Button1 : Enum |
Opacity : Float |
Zoom Factor : Double |
Button2 : Enum |
Reset Zoom : Trigger |
Zoom In : Trigger |
Button3 : Enum |
Restrict Zoom Out To Diagram Area : Bool |
Zoom Out : Trigger |
Color : Color |
Shift : Enum |
zoomInOutValue : Double |
Control : Enum |
Show border : Bool |
zoomOutCursorShape : Enum |
Visible Fields¶
x¶
-
name:
xZoomEnabled
, type:
Bool
, default:
TRUE
¶ If checked, the module allows to zoom along X axis direction.
y¶
-
name:
yZoomEnabled
, type:
Bool
, default:
TRUE
¶ If checked, the module allows to zoom along Y axis direction.
Enabled (isSelectionZoomEnabled)¶
-
name:
isSelectionZoomEnabled
, type:
Bool
, default:
TRUE
¶ If checked, the module allows to draw a rubber band rectangle onto the diagram. The selected portion of the diagram is zoomed on releasing the mouse button.
In this mode, pressing the right mouse button unzooms the diagram.
Color¶
-
name:
color
, type:
Color
, default:
0.759999990463257 0.850000023841858 1
¶ Sets the color of the selection rectangle in rubber band mode.
Opacity¶
-
name:
opacity
, type:
Float
, default:
0.5
, minimum:
0
, maximum:
1
¶ Sets the opacity of the selection rectangle in rubber band mode.
Show border¶
-
name:
border
, type:
Bool
, default:
TRUE
¶ If checked, a border is rendered around the rubber band selection.
Animate¶
-
name:
animateSelectionZoom
, type:
Bool
, default:
FALSE
¶ If checked, the zooming is animated instead of being immediate.
Enabled (isScrollingZoomEnabled)¶
-
name:
isScrollingZoomEnabled
, type:
Bool
, default:
FALSE
¶ If checked, the zooming with the mouse wheel is enabled.
Zoom Factor¶
-
name:
scrollZoomFactor
, type:
Double
, default:
0.100000001490116
¶ Sets the zoom factor for one tick of the mouse wheel.
Ease Factor¶
-
name:
animationEaseFactor
, type:
Float
, default:
0.60000002
, minimum:
0.1
, maximum:
1
¶ Sets the ease factor for the zoom animation. This can be considered being a speed factor with 0.1 as the slowest and 1 as the fastest zoom animation speed.
Stop Epsilon¶
-
name:
animationEpsilon
, type:
Float
, default:
0.001
¶ Sets an epsilon factor for the zoom animation.
This factor also influences the animation speed.
Restrict Zoom Out To Diagram Area¶
-
name:
restrictZoomOutToDiagramArea
, type:
Bool
, default:
FALSE
¶ If checked, the module restricts the zooming out of a diagram.
Auto (restrictAutoXMin)¶
-
name:
restrictAutoXMin
, type:
Bool
, default:
TRUE
¶ If checked, the module computes the restricting minimum value for the x-axis.
Auto (restrictAutoXMax)¶
-
name:
restrictAutoXMax
, type:
Bool
, default:
TRUE
¶ If checked, the module computes the restricting maximum value for the x-axis.
Auto (restrictAutoYMin)¶
-
name:
restrictAutoYMin
, type:
Bool
, default:
TRUE
¶ If checked, the module computes the restricting minimum value for the y-axis.
Auto (restrictAutoYMax)¶
-
name:
restrictAutoYMax
, type:
Bool
, default:
TRUE
¶ If checked, the module computes the restricting maximum value for the y-axis.
X Min¶
-
name:
restrictXMin
, type:
Double
, default:
0
¶ Sets the minimum value for the x-axis range as a zoom restriction.
X Max¶
-
name:
restrictXMax
, type:
Double
, default:
1
¶ Sets the maximum value for the x-axis range as a zoom restriction.