genre | View2DExtended |
author | Florian Link |
package | MeVisLab/Standard |
dll | SoView2D |
definition | view2d.def |
see also | SoView2D |
inherits from | SoView2DExtension |
keywords | dicom, ct, mrt, information, user-defined, extension |
The module SoView2DAnnotation displays general and configurable image information in a 2D viewer.
The following keywords are available in the annotation text (written as $(variablename)):
Variable | Description |
---|---|
timepoint | The current temporal position. |
timepointPlus1 | Above plus one. |
slice | The current slice. |
slicePlus1 | Above plus one. |
numSlices | The total number of slices. |
sliceThickness | The thickness of the slice in mm. |
min | The minimum voxel value of the dataset. |
max | The maximum voxel value of the dataset. |
zoom | The current zoom (zoom == 1 means one pixel per voxel). |
type | The datatype of the image. |
status | The status string of the SoView2D. |
size[xyzctu] | The size of the dataset in x,y,z,c,t,u dimension (in voxel). |
page[xyzctu] | The page size of the dataset in x,y,z,c,t,u dimension (in voxel). |
voxel[xyz] | The voxel size of the dataset in x,y,z dimension (in mm). |
input[00-09] | The string value of the input00- input09 fields. |
numInput[00-09] | The numerical value of the numInput00- numInput09 fields. |
lutSize | The size of the used LUT. |
shader | The active shader (GLSL, or empty if no shader is used). |
distanceToCenterSlice | In case of mosaic views, that displays the distance (in mm ) to the center slice. |
distanceToCenterSliceCM | In case of mosaic views, that displays the distance (in mm ) to the center slice. |
In addition to these variables, any DICOM tag name can be specified, e.g., $(PatientsName).
One can specify a maximum displayed string length (for string values) or the decimal precision (for numerical values) by specifying an additional number after the variable name like this: $(variablename:number). If not given a variable-specific default is applied.
Key | Function |
---|---|
A | Toggles Show Annotation modes. |
I | Toggles image information. |
This module may be be used to display information on a 3D viewer as well by using a dummy SoView2D which does not draw the image. To facilitate orientation and scale determination of a 3D viewer, the field orientationAndScaleFromCamera on the automatic panel can be enabled, which will take the Open Inventor viewing matrix to determine the orientation (used for orientation letters and orientation cube) and which will render the rulers correctly when an orthographic camera is used. Rulers are automatically disabled for perspective cameras.
Sets the color of the annotations.
see also SoView2DExtension.color
Defines the chapter from which the layout information is taken.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
User | ANNO_MODE_USER | USER_ANNOTATION | Information is taken from the USER chapter. |
CT | ANNO_MODE_CT | CT_ANNOTATION | Information is taken from the CT chapter. |
MR | ANNO_MODE_MR | MR_ANNOTATION | Information is taken from the MR chapter. |
Auto | ANNO_MODE_AUTO | AUTO_SELECT_ANNOTATION | Module chooses on base of DICOM tags. |
Defines how the orientation letters are displayed.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
Off | ANNO_ORIENTATION_OFF | FALSE | No orientation letters are shown. |
Size Fixed | ANNO_ORIENTATION_SIZE_FIXED | Orientation letters are always shown with the same size. | |
Size Weighted | ANNO_ORIENTATION_SIZE_WEIGHTED | TRUE | The size of the orientation letters vary to indicate the actual orientation. |
If checked, the orientation letters pointing into negative axis directions are shown.
If checked, the orientation letters pointing into positive axis directions are shown.
If checked, a vertical ruler is shown at the right hand side of the viewer.
The scale and units of the ruler depend on the zoom level of the image.
If checked, a horizontal ruler is shown at the bottom of the viewer.
The scale and units of the ruler depend on the zoom level of the image.
Sets a margin for the vertical ruler in pixel.
Sets a margin for the horizontal ruler in pixel.
Defines the annotation mode.
This can be toggled by pressing the A key in the viewer.
Also, the module toggles between Short and Detailed based on the size of the viewport.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
Hide | ANNO_SHOW_HIDE | HIDE_ANNOTATION | No annotation is shown. |
Short | ANNO_SHOW_SHORT | SHORT_ANNOTATION | A subset of information is shown. |
Detailed | ANNO_SHOW_DETAILED | DETAILED_ANNOTATION | All detailed information is shown. |
Defines the size of the annotation font.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
Auto | ANNO_SIZE_AUTO | AUTO_SIZE_ANNOTATION | The size is automatically chosen on base of the size of the viewport. The sizes to switch between short and detailed information can be set with Min Short Font Size, Max Short Font Size, Min Detail Font Size, and Max Detail Font Size. |
Small | ANNO_SIZE_SMALL | SMALL_ANNOTATION | A small font size. |
Medium | ANNO_SIZE_MEDIUM | MEDIUM_ANNOTATION | A medium font size. |
Large | ANNO_SIZE_LARGE | LARGE_ANNOTATION | A large font size. |
User | ANNO_SIZE_USER | A user defined font size, defined in User Short Font Size and User Detail Font Size. |
Sets the minimum font size for detail information before switching to short information.
Sets the maximum font size for detailed information.
Sets the minimum font size for short information.
Sets the maximum font size for short information before switching to detailed information.
Sets the user font size for detailed information.
Sets the user font size for short information.
Sets the font size of the ruler text.
If checked, a text shadow is displayed to enhance readability.
Sets the user annotation string for the top left corner.
Sets the user annotation string for the top right corner.
Sets the user annotation string for the bottom left corner.
Sets the user annotation string for the bottom right corner.
Sets a string that is displayed at the bottom center of the viewer.
Sets the CT annotation string for the top left corner.
Sets the CT annotation string for the top right corner.
Sets the CT annotation string for the bottom left corner.
Sets the CT annotation string for the bottom right corner.
Sets a string that is displayed at the bottom center of the viewer.
Sets the MR annotation string for the top left corner.
Sets the MR annotation string for the top right corner.
Sets the MR annotation string for the bottom left corner.
Sets the MR annotation string for the bottom right corner.
Sets a string that is displayed at the bottom center of the viewer.
Sets the short annotation string for the top left corner.
Sets the short annotation string for the top right corner.
Sets the short annotation string for the bottom left corner.
Sets the short annotation string for the bottom right corner.
Sets a string that is displayed at the bottom center of the viewer.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a string that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Sets a numerical value that can be connected from another module or be filled by scripting.
The content of this field can be used in one of the chapters.
Enables rendering of an orientation model.
Defines where the orientation model is rendered.
Values:
Title | Name | Description |
---|---|---|
Top Left | ANNO_TOP_LEFT | Render below the top left text. |
Top Right | ANNO_TOP_RIGHT | Render below the top right text. |
Bottom Left | ANNO_BOTTOM_LEFT | Render above the bottom left text. |
Bottom Right | ANNO_BOTTOM_RIGHT | Render above the bottom right text. |
Defines the size of the model relative to the minimum of the viewers width/height.
Defines the minimum size of the model in pixels.
Defines the maximum size of the model in pixels.
Shows whether the mouse cursor is over the orientation cube.
Shows the orientation letter of the side of the orientation cube where the user has clicked on.
If checked, a background rectangle is drawn behind the annotation text.
Set the color of the annotation background.
Sets the opacity of the annotation background.