MeVisLab Toolbox Reference
SoCSODefines.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13
15
16#pragma once
17
18#include <SoCSOIncludes.h>
19#include <CSOBase/CSODefines.h>
20#include <SoView2D.h>
21
23
25class StylePalette;
28
29class SoCSOTransform;
30
32
40
42
56
58
62
64
66{
68 View2DSlice* slice = nullptr;
69 int z = -1;
72 std::string seriesInstanceUID;
76 ml::CoordinateSystemReference coordinateSystemReference;
77
79
80 std::string getViewerId() const
81 {
83 {
84 return slicelist->getOwner()->viewerId.getValue().getString();
85 }
86 return std::string("");
87 }
88};
89
91
100
102
104{
105 std::vector<ml::Vector3> positions;
106};
107
109
112{
113 double minZ = 0.0;
114 double maxZ = 0.0;
115};
116
118
130
132
134{
137 ml::CSO* cso = nullptr;
138 std::vector<int> csoIds;
139 ml::AbstractTransformationPtr transformation = nullptr;
141};
142
144
167
169
177
179
186
188
195
197
220
222
226{
229 ml::CSOProcessorData* processorData = nullptr;
230};
231
233
241
243
250
252
259
261
268
270
277
279
286
288
295
297
305
307
308const unsigned short PATH_POINTS_PATTERN_NONE = 0x0000;
309const unsigned short PATH_POINTS_PATTERN_SOLID = 0xFFFF; //<! Line pattern for a solid line.
310const unsigned short PATH_POINTS_PATTERN_DASHED = 0xF0F0;
311const unsigned short PATH_POINTS_PATTERN_DOTTED = 0xAAAA;
312const unsigned short PATH_POINTS_PATTERN_SHORT_DASHED = 0xC7C7; //<! Line pattern for a short dashed line.
313
315
316#define TAG_VIEWER_ID "viewerId"
317
SEED_POINT_MARKER_MODES
Enumeration of markers for seed points.
@ SHOW_MARKER_NONE
Shows no marker at the seed point positions.
@ SHOW_MARKER_CIRCLE
Shows a circle at the seed point positions.
@ SHOW_MARKER_RECT
Shows a rectangle at the seed point positions.
COLOR_MODES
Enumeration of marker coloring.
@ COLOR_AS_CSO
The marker is shown in the same color as the CSO.
@ COLOR_GENERAL
Use the general marker color for all markers.
CSOSliceInformation
@ CSO_SLICE_COMPLETELY_BELOW
The CSO lies completely below the current slice.
@ CSO_SLICE_UNKNOWN
No information about the CSO and the current slice.
@ CSO_SLICE_COMPLETELY_ABOVE
The CSO lies completely above the current slice.
@ CSO_SLICE_CROSSED
The CSO is crossed by the current slice.
@ CSO_SLICE_COMPLETELY_ON
The CSO lies completely on the current slice.
SELECTION_COLOR_MODES
Defines the color mode for selected CSOs.
@ SELECTION_COLOR_MODE_BRIGHTEN
Selection color mode: the selected CSO is brightened.
@ SELECTION_COLOR_MODE_FIXED
Selection color mode: the selected CSO is set to a fixed color.
SELECTED_SEED_POINT_COLOR_MODES
Defines the color mode for selected seed points.
@ SELECTED_SEED_POINT_COLOR_MODE_BRIGHTEN
Selected seed point color mode: the selected seed point is brightened.
@ SELECTED_SEED_POINT_COLOR_MODE_FIXED
Selected seed point color mode: the selected seed point is set to a fixed color.
const unsigned short PATH_POINTS_PATTERN_SOLID
SELECTED_SEED_POINT_SIZE_MODES
Defines the size mode for selected seed points.
@ SELECTED_SEED_POINT_ENLARGE
Selected seed point size mode: the size of the selected seed point is enlarged.
@ SELECTED_SEED_POINT_FIXED
Selected seed point size mode: the size of the selected seed point is set to a fixed value.
const unsigned short PATH_POINTS_PATTERN_SHORT_DASHED
SELECTION_LINE_WIDTH_MODES
Defines the line width mode for selected CSOs.
@ SELECTION_LINE_FIXED
Selection line width mode: the line width of the selected CSO is set to a certain value.
@ SELECTION_LINE_WIDEN
Selection line width mode: the line width of the selected CSO is widened.
HIGHLIGHT_COLOR_MODES
Defines the highlighting color mode for CSOs under the mouse cursor.
@ HIGHLIGHT_COLOR_MODE_FIXED
Highlight color mode: the CSO under the mouse cursor is set to a fixed color.
@ HIGHLIGHT_COLOR_MODE_BRIGHTEN
Highlight color mode: the CSO under the mouse cursor is brightened.
SIDE_FILLING_LINE_WIDTH_MODES
Enumeration of line width modes for side fillings.
@ SIDE_FILLING_WIDTH_AS_CSO
@ SIDE_FILLING_WIDTH_MANUAL
@ SIDE_FILLING_WIDTH_AUTOMATIC
const unsigned short PATH_POINTS_PATTERN_NONE
Line pattern for no line at all.
const unsigned short PATH_POINTS_PATTERN_DASHED
Line pattern for a dashed line.
STYLE_PALETTE_INDEX_USE
Enumeration of the usage of style palette indices.
@ USE_INDEX_FOR_GROUP
The style of the according Group index is chosen (overrides CSO style).
@ USE_INDEX_FOR_CSO
The style of the according CSO index is chosen.
const unsigned short PATH_POINTS_PATTERN_DOTTED
Line pattern for a dotted line.
CSOEvalEventView2DInfos CSOProcessView2DInfos
Typedefs for backward compatibility.
CSOEvalEventCSOInfos CSOProcessCSOInfos
HIT_POINT_MODE
Enumeration for different hit point modes.
@ HIT_SEED_POINT
Hit point was near an existing seed point.
@ HIT_PATH_POINT
Hit point was near a path point.
@ HIT_NOTHING_HIT
Hit point was nowhere near an existing CSO.
HIGHLIGHT_LINE_WIDTH_MODES
Defines the highlighting line width mode for CSOs under the mouse cursor.
@ HIGHLIGHT_LINE_FIXED
Highlight line width mode: the line width of the CSOs under the mouse cursor is set to a certain valu...
@ HIGHLIGHT_LINE_WIDEN
Highlight line width mode: the line width of the CSOs under the mouse cursor is widened.
View2DEventPhase
event phase for simple extensions that grab the focus, do something (motion) and are released afterwa...
@ EVENT_ANY
Event phase is undefined and has to be checked by getEvent() method.
Abstract Open Inventor base class for uniform shader parameter nodes.
SoView2D is a 2D viewer for image data.
Definition SoView2D.h:62
SoSFString viewerId
id string, needs to be unique in a network if used
Definition SoView2D.h:82
View2DEvent stores all information on an event on a SoView2D.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
SoView2D * getOwner()
Get the owning SoView2D.
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Definition View2DSlice.h:48
The CSOBoundingBox defines an axis parallel bounding box with double precision.
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition CSOList.h:61
The CSOPathPoints is a list of world coordinates which are interpolated by a certain interpolation sc...
The CSOSeedPoint can be interactively set and modified and is the framework for contours.
The CSO represents a contour segmentation object.
Definition CSO.h:44
Base object class StylePalette for providing a collection of colors, line styles and marker types.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
ml::AbstractTransformationPtr transformation
std::vector< int > csoIds
ml::CSOList * csoList
CSODrawSliceInformation sliceInfo
ml::CSOBoundingBox slabBB
CSOSliceInformation sliceInformation
std::string getViewerId() const
std::string frameOfReferenceUID
size_t worldToVoxelMatrixHashKey
ml::CoordinateSystemReference coordinateSystemReference
View2DSliceList * slicelist
SoCSOTransform * csoTransform
ml::StylePalette * stylePalette
std::string seriesInstanceUID
View2DSlice * slice
Structure holding information about the processor/editor state.
ml::CSO * csoCurrentlyUnderMouse
ml::CSOProcessorData * processorData
bool isCurrentlyMovingCSO
ml::CSO * recentlySelectedCSO
ml::CSOPathPoints * recentlySelectedPathPoints
ml::CSOSeedPoint * recentlySelectedSeedPoint
ml::CSOList * csoList
ml::Vector3 currentHitPoint
ml::CSOBoundingBox slabBB
View2DEventPhase phase
View2DSliceList * slicelist
Structure to store render information for a certain CSO and viewer.
CSODrawView2DInfos view2DInfos
CSODrawSliceInformation drawSliceInfos
std::vector< ml::Vector3 > positions
Structure to hold visual parameters for the old editor.
unsigned short pathPointStyle
Defines the z slab of a CSO bounding box in voxel coordinates.