SoView2DCurrentState¶
- InventorModule¶
genre
author
package
dll
definition
inherits from
Purpose¶
The SoView2DCurrentState allows for receiving view dependent parameters from a currently rendered SoView2D to use them in scripting. Note that this will not work on SoOrthoView2D or when the SoView2D is used in mosaic mode.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Pixel Spacing X¶
- name: pixelSpacingX, type: Float, persistent: no¶
Shows the pixel spacing (zoom) in millimeters.
This defines the size of a single pixel in world coordinates. Typically,
Pixel Spacing Yhas the same value becauseSoView2Drespects the voxel size. However, the values may differ if one of the special scale modes is used.
Pixel Spacing Y¶
- name: pixelSpacingY, type: Float, persistent: no¶
Shows the pixel spacing (zoom) in millimeters.
This defines the size of a single pixel in world coordinates. Typically,
Pixel Spacing Xhas the same value becauseSoView2Drespects the voxel size. However, the values may differ if one of the special scale modes is used.
Visible Device Rect0¶
- name: visibleDeviceRect0, type: Vector2, persistent: no¶
Shows the top-left point of the visible device rectangle of the viewer.
This refers to the entire area of the viewer, regardless of where the image is shown or zoomed.
Visible Device Rect1¶
- name: visibleDeviceRect1, type: Vector2, persistent: no¶
Shows the bottom-right point of the visible device rectangle of the viewer.
This refers to the entire area of the viewer, regardless of where the image is shown or zoomed.
Image Device Rect0¶
- name: imageDeviceRect0, type: Vector2, persistent: no¶
Shows the top-left point of the image.
This point can be outside the visible device rectangle if the image is zoomed in.
Image Device Rect1¶
- name: imageDeviceRect1, type: Vector2, persistent: no¶
Shows the bottom-right point of the image.
This point can be outside the visible device rectangle if the image is zoomed in.
Visible World Rect0¶
- name: visibleWorldRect0, type: Vector3, persistent: no¶
Shows the uppermost left point of the image that is visible in the viewer, in world coordinates.
This can, for example, be fed into a
SoView2DRectangleto indicate the visible portion of the image on an overview image.
Visible World Rect1¶
- name: visibleWorldRect1, type: Vector3, persistent: no¶
Shows the lowermost right point of the image that is visible in the viewer, in world coordinates.
This can, for example, be fed into a
SoView2DRectangleto indicate the visible portion of the image on an overview image.