author | Olaf Konrad |
package | MeVisLab/Standard |
dll | So3DXMarker |
definition | So3DMarkerEditor.def |
see also | XMarkerListContainer, SoView2DMarkerEditor |
keywords | markerlist, vector, interaction, SoMarker, SoXMarker |
The module So3DMarkerEditor displays markers in 3D and allows to interactively edit the markers.
Since the module has an Open Inventor output, simply plug it into any kind of viewer. To synchronize the module with any other module that governs a XMarkerList, plug its output into the So3DMarkerEditor's input.
If there should be interactive placement and editing of the markers also plug the inventor scene to work on into the corresponding module's input. A StylePalette module can provide style information for the markers. At last, if there should be voxel position information displayed make sure to connect a SoMLWorldToVoxel module to the matrix transformation input.
The most of the parameters available on the panel and the overall user interaction were designed to be as conform as possible with the user interface and usage of the well known SoView2DMarkerEditor.
The interaction is supposed to be as close as possible to the 2D interaction. While having a 2D input and output device, the interaction in 3D has to be limited in some way. In this approach we are limited to the surface of objects. However, with the options Edit 3D and Edit 3D vector checked, the markers can be moved in 3D along the x, y, or z axis.
Optional style palette for unified rendering styles.
Attach the Open Inventor scene on which picking should be performed to this input.
Sets an overall scale factor for each marker.
Sets an overall scale factor for the vectors' lengths.
Sets a global color if no StylePalette is used.
If checked, vector markers can be edited.
Click onto a 3D surface to place the first markers and without releasing the mouse button, drag on the surface to define the marker vector's end point.
If checked, the markers are rendered in 3D.
If checked, the clicking on a set marker selects it.
If checked, the clicked marker is being deleted on click.
If checked, a new marker is added on clicking on a 3D surface.
If checked, the markers offer handles to freely position them in 3D.
Otherwise, a marker can only be placed and moved along a 3D surface.
If checked, the vector portion of a marker can be edited in 3D.
Defines the color lookup into the StylePalette.
Values:
Title | Name | Description |
---|---|---|
Index | COLOR_BY_INDEX | The index of the marker is used as a lookup. |
Type | COLOR_BY_TYPE | The type of the marker is used as a lookup. |
Id | COLOR_BY_ID | The id of the marker is used as a lookup. |
Sets the type of the next generated marker.
Defines the mode of the text color.
Values:
Title | Name | Description |
---|---|---|
Like Marker | COLOR_LIKE_MARKER | The text has the same color as the marker itself. |
Text | COLOR_TEXT | The text has the color set in Color. |
Defines which information is displayed as a text besides a marker.
Values:
Title | Name | Description |
---|---|---|
Off | TEXT_OFF | No text is displayed. |
Styleindex | TEXT_STYLEINDEX | The index into the StylePalette is displayed. |
Stylename | TEXT_STYLENAME | The name of the used style of the StylePalette is displayed. |
Itemname | TEXT_ITEMNAME | The name associated with the marker is displayed. |
Itemid | TEXT_ITEMID | The id of the marker is displayed. |
Voxelpos | TEXT_VOXELPOS | The voxel position is displayed. |
Worldpos | TEXT_WORLDPOS | The world position is displayed. |
Length | TEXT_LENGTH | The length of a vector is displayed. |
Markertype | TEXT_MARKERTYPE | The type of the marker is displayed. |
Markerlistindex | TEXT_MARKERLISTINDEX | The index of the marker is displayed. |
If checked, a shadow is rendered behind the text to enhance readability.
Sets the color of the label in the background of the text.
Sets the alpha value of the label in the background of the text.
Defines the font size and style of the text.
Values:
Title | Name |
---|---|
Text2::HELVETICA 10 | SoExtText2::HELVETICA_10 |
Text2::HELVETICA 12 | SoExtText2::HELVETICA_12 |
Text2::HELVETICA 18 | SoExtText2::HELVETICA_18 |
Text2::TIMES ROMAN 24 | SoExtText2::TIMES_ROMAN_24 |
Defines the style of the vectors.
Values:
Title | Name |
---|---|
Vector No Arrows | VECTOR_NO_ARROWS |
Vector End Arrow | VECTOR_END_ARROW |
Vector Start Arrow | VECTOR_START_ARROW |
Vector Both Arrows | VECTOR_BOTH_ARROWS |
Vector Plus Minus | VECTOR_PLUS_MINUS |
Vector Pm With Arr | VECTOR_PM_WITH_ARR |
Box Start To End | BOX_START_TO_END |
Box Plus Minus | BOX_PLUS_MINUS |
Vector And Sphere | VECTOR_AND_SPHERE |
Vector And Disc | VECTOR_AND_DISC |
No Vector | NO_VECTOR |
Defines the line style of the vectors.
Values:
Title | Name |
---|---|
None | None |
Solid | Solid |
Dashed | Dashed |
Dotted | Dotted |
Defines the overall drawing mode.
Values:
Title | Name | Description |
---|---|---|
Fast | DrawModeFast | The markers are rendered as OpenGL points. This is very fast, especially for a large number of markers but style information will get lost. |
Correct | DrawModeCorrect | The markers are rendered as simple Open Inventor scenes. This can produce many polygons, slowing down the rendering but all style information is used for the rendering. |
Sets a threshold for the number of markers for deciding the draw mode.
If the field's value is negative, no automatic adjustment to the draw mode is made.
Otherwise, if the number of markers exceed the threshold value, the module switched automatically from CORRECT mode to FAST mode.