genre | View2D |
author | Florian Link |
package | MeVisLab/Standard |
dll | SoView2D |
definition | view2d.def |
see also | View2DExtensions, SoView2DAnnotation, SoView2DMarkerEditor, View2D, SoRenderArea |
keywords | viewer, slice, drawing, render |
The module SoView2D displays a slice or a slab of a volume image in a 2D viewer.
The SoView2D has the following standard key binding:
Key | Function |
---|---|
1-9 | Switch the number of shown slices. |
NUM 5 | Reset zooming. |
NUM * | Toggle interpolation. |
NUM 0 | Step through LUT modes. |
NUM 4,6,8,2 | Scroll inside a slice. |
NUM +, - | Zoom in/out slice center. |
PAGE UP/DOWN | Next/previous slice. |
CURSOR UP/DOWN | Next/previous slice. |
CURSOR LEFT/RIGHT | Next/previous time point. |
Sets the shown start slice.
Sets the 'distance' between shown slices if multiple slices are shown at once.
Sets the number of slices that are shown at once.
Sets the number of columns in that multiple slices are shown.
Sets the slab depth.
Use it with Blend Mode Maximum or Blend.
Sets the lower left corner of the viewport relative to the viewer's size.
Values range in 0..1 where 0 is the lower left corner and 1 the upper right corner.
Sets the upper right corner of the viewport relative to the viewer's size.
Values range in 0..1 where 0 is the lower left corner and 1 the upper right corner.
Sets a margin in pixel between the rendered image(s) and the viewport's border.
Sets a spacing in pixel between rendered slices if multiple slices are rendered.
Shows the current slice as plane parameters in world coordinates.
Sets the inner zoom of the shown slices.
Sets the center of zoom/scale operation in normalized coordinates.
Sets the inner translation of the shown slices.
Sets the world coordinates of the central point for the current viewer.
If checked, the Central Viewing Position is activated.
Only available if both Slice Align X and Slice Align Y are set to CENTER.
If pressed, the currently shown slice is unzoomed.
If checked, the currently shown slice is unzoomed on any change of the input image.
If checked, the image data is drawn.
Sets and shows the time point of the currently shown slice.
If checked, the module shows the middle slice if a new image is attached.
If checked, the standard key binding is active, else no built-in key binding is used.
If checked, the keys 1-9 activate certain matrix like slice patterns, else nothing happens.
If checked, actions like toggling the displayed slices as a matrix with the number keys demand for the mouse cursor to be over the image (not over the border or just in the viewer) to work.
If checked, following Inventor nodes do not react to events that have been already handled by a SoView2DExtension.
If checked, the rightmost extension will be drawn first.
Defines the blend mode of the rendered views before the background.
Values:
Title | Name |
---|---|
Replace | BLEND_REPLACE |
Add | BLEND_ADD |
Blend | BLEND_BLEND |
Maximum | BLEND_MAXIMUM |
Minimum | BLEND_MINIMUM |
Reverse Subtract | BLEND_REVERSE_SUBTRACT |
Subtract | BLEND_SUBTRACT |
Premultiplied Blend | BLEND_PREMULTIPLIED_BLEND |
Screen | BLEND_SCREEN |
Defines how the volume image's voxels are mapped onto the screen (inter-/ extrapolation).
Values:
Title | Name |
---|---|
Nearest | FILTER_NEAREST |
Linear | FILTER_LINEAR |
Linear Postclass | FILTER_LINEAR_POSTCLASS |
Cubic Postclass | FILTER_CUBIC_POSTCLASS |
Defines the caching mode.
Values:
Title | Name |
---|---|
Off | SLICE_CACHING_OFF |
Partial | SLICE_CACHING_PARTIAL |
Complete | SLICE_CACHING_COMPLETE |
Defines the slices' horizontal alignment in the viewport.
Values:
Title | Name |
---|---|
Center | SLICE_ALIGNX_CENTER |
Left | SLICE_ALIGNX_LEFT |
Right | SLICE_ALIGNX_RIGHT |
Defines the slices' vertical alignment in the viewport.
Values:
Title | Name |
---|---|
Center | SLICE_ALIGNY_CENTER |
Top | SLICE_ALIGNY_TOP |
Bottom | SLICE_ALIGNY_BOTTOM |
Sets the precision of the LUT.
Values:
Title | Name | Description |
---|---|---|
Auto | VIEW2D_LUT_AUTO | The LUT precision is calculated using the input dataset's min and max values. The maximum supported LUT precision is 16 bits. If the input dataset is a floating point type, the LUT uses 12 bit. |
8bit | VIEW2D_LUT_8BIT | The LUT precision is 8 bit, regardless of the input data type. |
12bit | VIEW2D_LUT_12BIT | The LUT precision is 12 bit, regardless of the input data type. |
16bit | VIEW2D_LUT_16BIT | The LUT precision is 16 bit, regardless of the input data type. |
Defines the zoom mode.
Values:
Title | Name |
---|---|
Auto Zoom | VIEW2D_AUTO_ZOOM |
Auto Zoom X | VIEW2D_AUTO_ZOOM_X |
Auto Zoom Y | VIEW2D_AUTO_ZOOM_Y |
Fixed Pixels Per Voxel X | VIEW2D_FIXED_PIXELS_PER_VOXEL_X |
Fixed Pixels Per Voxel Y | VIEW2D_FIXED_PIXELS_PER_VOXEL_Y |
Fixed Pixels Per Mm | VIEW2D_FIXED_PIXELS_PER_MM |
Fixed Mm Per Viewer Width | VIEW2D_FIXED_MM_PER_VIEWER_WIDTH |
Fixed Mm Per Viewer Height | VIEW2D_FIXED_MM_PER_VIEWER_HEIGHT |
Scale To Viewer Ignore Ratio | VIEW2D_SCALE_TO_VIEWER_IGNORE_RATIO |
If checked, the aspect ratio of the displayed voxels is overwritten with Voxel Aspect Ratio (vy/vx).
Sets a new voxel aspect ratio.
Sets the alpha factor for rendered slices.
Sets the alpha factor for the background.
Sets the color for the background.
If pressed, the cinematic function (automatically slicing through the image in determined range) is started.
Note: to record a movie of the slicing, attach a SoExaminerViewer or a SoRenderArea and use the movie recording of those modules.
Sets a center slice for slicing in the t-dimension for the cinematic function.
Available if not the full range should be filmed, see Full Range in Time Dimension.
Sets a slice interval for slicing in the t-dimension for the cinematic function.
Available if not the full range should be filmed, see Full Range in Time Dimension.
Sets a center slice for slicing in the z-dimension for the cinematic function.
Available if not the full range should be filmed, see Full range in z-dimension.
Sets a slice interval for slicing in the z-dimension for the cinematic function.
Available if not the full range should be filmed, see Full range in z-dimension.
Defines through which dimension the cinematic should slice.
Values:
Title | Name | Description |
---|---|---|
Z | CINE_Z | Go through slices. |
T | CINE_T | Go through time points. |
ZT | CINE_ZT | Go through slices, then time points. This mode only allows to move forward. |
TZ | CINE_TZ | Go through time points, then slices. This mode only allows to move forward. |
Defines the cinematic function.
Values:
Title | Name | Description |
---|---|---|
Forward | CINE_FORWARD | Go forward through slices/time points. If Repeat is set to CINE_REPEAT, start from beginning when at the end. |
Pingpong | CINE_PINGPONG | Go forward, then backwards through slices or time points. |
Defines how the cinematic function should be repeated.
Values:
Title | Name | Description |
---|---|---|
Once | CINE_ONCE | Only go through slices/time points once (or twice, if Direction is set to CINE_PINGPONG) |
Repeat | CINE_REPEAT | Go through slices/time points until the user stops the cine mode (with Stop Cine). |
Sets the speed of the cinematic function by setting the waiting time in seconds between showing consecutive slices.
If checked, the module starts with the first slice in cine mode, no matter what slice is actually shown at that time.
Shows the status of the cine mode.
If pressed, a delete-notification is sent to all attached extensions that implement the according callback.
If pressed, attached extensions are set to edit mode.
Shows some status information about this module.
If checked, the delete notification can actually be sent through the network.
If checked, the module receives and evaluates 2D events.
If checked, the module receives and evaluates 3D events.