MeVisLab Toolbox Reference
CSODefines.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 
19 ML_START_NAMESPACE
20 
22 
25 {
36 };
37 
39 
42 {
48 };
49 
52 {
58 };
60 
62 
65 {
68 };
69 
71 
74 {
77 };
78 
80 
83 {
86 };
87 
89 
92 {
95 };
96 
98 
100 {
110 };
111 
114 {
119 };
121 
123 
126 {
130  CSO_NO_MEMORY = 3
131 };
132 
134 
137 {
138  MODE_OFF = 0,
140  MODE_AUTO_CLEAR = 2
141 };
142 
144 
147 {
151 };
152 
154 
157 {
160 };
161 
163 
166 {
170 };
171 
173 
175 enum Corner
176 {
177  TLR = 0,
178  TRR = 1,
179  TRF = 2,
180  TLF = 3,
181  BLR = 4,
182  BRR = 5,
183  BRF = 6,
184  BLF = 7
185 };
186 
188 
191 {
199 };
200 
202 
207 {
214  CrossingNone = 6
215 };
216 
218 
219 // Common
220 const std::string nameCommonNumCSOs = "NumCSOs";
221 const std::string nameCommonNumGroups = "NumGroups";
222 
223 const std::string nameCommonNumSelectedCSOs = "NumSelectedCSOs";
224 const std::string nameCommonNumSelectedGroups = "NumSelectedGroups";
225 
226 // Attributes
227 const std::string nameAttribId = "Id";
228 const std::string nameAttribLabel = "Label";
229 const std::string nameAttribDescription = "Description";
230 
231 const std::string nameAttribTimePointIndex = "TimePointIndex";
232 const std::string nameAttribShowState = "ShowState";
233 const std::string nameAttribVoxelizeState = "VoxelizeState";
234 const std::string nameAttribEditableState = "EditableState";
235 
236 const std::string nameAttribPathPointStyle = "PathPointStyle";
237 const std::string nameAttribPathPointWidth = "PathPointWidth";
238 const std::string nameAttribPathPointColor = "PathPointColor";
239 const std::string nameAttribPathPointAlpha = "PathPointAlpha";
240 
241 const std::string nameAttribSeedPointStyle = "SeedPointStyle";
242 const std::string nameAttribSeedPointSize = "SeedPointSize";
243 const std::string nameAttribSeedPointColor = "SeedPointColor";
244 const std::string nameAttribSeedPointAlpha = "SeedPointAlpha";
245 
246 const std::string nameAttribVoxelWriteMode = "VoxelWriteMode";
247 const std::string nameAttribVoxelWriteValue= "VoxelWriteValue";
248 
249 const std::string nameAttribNumUserData = "NumUserData"; //<! String name for the number of user data.
250 const std::string nameAttribUserDataName = "UserDataName"; //<! String name for the name of a user data entry.
251 const std::string nameAttribUserDataType = "UserDataType"; //<! String name for the type of a user data entry.
252 const std::string nameAttribUserDataValue = "UserDataValue"; //<! String name for the value of a user data entry.
253 
255 // Kept just because of backward compatibility of old CSO files
256 const std::string nameAttribLineStyle = "LineStyle";
257 const std::string nameAttribColor = "Color";
258 const std::string nameAttribAlpha = "Alpha";
259 const std::string nameAttribLineWidth = "LineWidth";
260 
261 const std::string nameAttribMarkerMode = "MarkerMode";
262 const std::string nameAttribMarkerColor = "MarkerColor";
263 const std::string nameAttribMarkerAlpha = "MarkerAlpha";
264 const std::string nameAttribMarkerSize = "MarkerSize";
265 
266 const std::string nameAttribVoxelValue = "VoxelValue";
268 
269 // CSO
270 const std::string nameCSONumSeedPoints = "NumSeedPoints";
271 const std::string nameCSONumPathPointLists = "NumPathPointLists";
272 const std::string namePathNumPoints = "PathNumPoints";
273 const std::string nameCSOFinished = "IsFinished";
274 const std::string nameCSOClosed = "IsClosed";
275 const std::string nameCSOInPlane = "IsInPlane";
276 const std::string nameCSOPlaneNormal = "PlaneNormal";
277 const std::string nameCSOBoundingBox = "BoundingBox";
278 const std::string nameCSOType = "Type";
279 const std::string nameCSOSubType = "SubType";
280 const std::string nameCSOCreatorId = "CreatorId";
281 
282 // CSOGroup
283 const std::string nameGroupMaximumCSOs = "MaximumCSOs";
284 const std::string nameGroupOverflowHandling = "OverflowHandling";
285 const std::string nameGroupRemoveCSOHandling = "RemoveCSOHandling";
286 const std::string nameGroupDeleteGroupCSOHandling = "DeleteGroupCSOHandling";
287 
288 const std::string nameGroupUseTimePointIndex = "UseTimePointIndex";
289 const std::string nameGroupUseShowState = "UseShowState";
290 const std::string nameGroupUseVoxelizeState = "UseVoxelizeState";
291 const std::string nameGroupUseEditableState = "UseEditableState";
292 
293 const std::string nameGroupUsePathPointStyle = "UsePathPointStyle";
294 const std::string nameGroupUsePathPointWidth = "UsePathPointWidth";
295 const std::string nameGroupUsePathPointColor = "UsePathPointColor";
296 const std::string nameGroupUsePathPointAlpha = "UsePathPointAlpha";
297 
298 const std::string nameGroupUseSeedPointStyle = "UseSeedPointStyle";
299 const std::string nameGroupUseSeedPointSize = "UseSeedPointSize";
300 const std::string nameGroupUseSeedPointColor = "UseSeedPointColor";
301 const std::string nameGroupUseSeedPointAlpha = "UseSeedPointAlpha";
302 
303 const std::string nameGroupUseVoxelWriteMode = "UseVoxelWriteMode";
304 const std::string nameGroupUseVoxelWriteValue = "UseVoxelWriteValue";
305 
307 // Kept just because of backward compatibility of old CSO files
308 const std::string nameGroupUseVisuals = "UseVisuals";
309 const std::string nameGroupUseMarkerSettings = "UseMarkerSettings";
311 
313 
315 
317 
318 ML_END_NAMESPACE
Forward declarations to resolve header file dependencies.
Definition: mlVector3.h:66
const std::string nameAttribAlpha
String name for the line's alpha value.
Definition: CSODefines.h:258
const std::string nameAttribPathPointWidth
String name for a path point width.
Definition: CSODefines.h:237
CSOUpdateModes
Enumeration of update modes.
Definition: CSODefines.h:137
@ MODE_AUTO_UPDATE
Start a new calculation if any input field has changed.
Definition: CSODefines.h:139
@ MODE_AUTO_CLEAR
Invalidate output image if any input field has changed.
Definition: CSODefines.h:140
@ MODE_OFF
No new calculation on input changes.
Definition: CSODefines.h:138
const std::string nameGroupUseSeedPointColor
String name for the use seed point color of a CSOGroup.
Definition: CSODefines.h:300
const std::string nameCommonNumSelectedGroups
String name for the number of selected CSOGroups.
Definition: CSODefines.h:224
const std::string nameGroupRemoveCSOHandling
Definition: CSODefines.h:285
const std::string nameAttribUserDataType
Definition: CSODefines.h:251
const std::string nameCommonNumGroups
String name for the number of CSOGroups.
Definition: CSODefines.h:221
const std::string nameGroupUseSeedPointSize
String name for the use seed point size of a CSOGroup.
Definition: CSODefines.h:299
CSOPathPointsStyle
Enumeration of line styles (order as StylePalette::LineStyle).
Definition: CSODefines.h:42
@ PATH_POINTS_STYLE_SHORT_DASHED
A short dashed line is drawn.
Definition: CSODefines.h:47
@ PATH_POINTS_STYLE_DOTTED
A dotted line is drawn.
Definition: CSODefines.h:46
@ PATH_POINTS_STYLE_SOLID
A solid line is drawn.
Definition: CSODefines.h:44
@ PATH_POINTS_STYLE_DASHED
A dashed line is drawn.
Definition: CSODefines.h:45
@ PATH_POINTS_STYLE_NONE
No line is drawn.
Definition: CSODefines.h:43
const std::string nameCSONumSeedPoints
String name for the number of seed points.
Definition: CSODefines.h:270
const std::string nameAttribLabel
String name for a label.
Definition: CSODefines.h:228
const std::string nameAttribVoxelWriteValue
String name for the voxel write value.
Definition: CSODefines.h:247
const std::string nameAttribUserDataName
Definition: CSODefines.h:250
const std::string nameAttribNumUserData
Definition: CSODefines.h:249
const std::string nameGroupUsePathPointAlpha
String name for the use path point alpha of a CSOGroup.
Definition: CSODefines.h:296
Direction
Enumeration of directions for marching direction.
Definition: CSODefines.h:191
@ DIRECTION_NUM_DIRECTIONS
Definition: CSODefines.h:198
@ DIRECTION_BOTTOM
Definition: CSODefines.h:193
@ DIRECTION_TOP
Definition: CSODefines.h:192
@ DIRECTION_REAR
Definition: CSODefines.h:197
@ DIRECTION_LEFT
Definition: CSODefines.h:195
@ DIRECTION_RIGHT
Definition: CSODefines.h:194
@ DIRECTION_FRONT
Definition: CSODefines.h:196
const std::string nameAttribId
String name for an id.
Definition: CSODefines.h:227
const std::string nameGroupUsePathPointWidth
String name for the use path point width of a CSOGroup.
Definition: CSODefines.h:294
CSOLineStyle
\Deprecated
Definition: CSODefines.h:52
@ LINE_STYLE_DASHED
Definition: CSODefines.h:55
@ LINE_STYLE_DOTTED
Definition: CSODefines.h:56
@ LINE_STYLE_NONE
Definition: CSODefines.h:53
@ LINE_STYLE_SHORT_DASHED
Definition: CSODefines.h:57
@ LINE_STYLE_SOLID
Definition: CSODefines.h:54
const std::string nameGroupUseVoxelWriteValue
String name for the use voxel write value state of a CSOGroup.
Definition: CSODefines.h:304
const std::string nameGroupUseEditableState
String name for the use editable state of a CSOGroup.
Definition: CSODefines.h:291
const std::string nameCSOFinished
String name for the finished state of a CSO.
Definition: CSODefines.h:273
const std::string nameAttribDescription
String name for a description.
Definition: CSODefines.h:229
const std::string nameAttribColor
String name for the line's color.
Definition: CSODefines.h:257
CSOSelectionLineWidth
Enumeration of selection line width modes.
Definition: CSODefines.h:74
@ SELECTION_LINE_WIDTH_WIDEN
Widens the selected CSOs by an adjustable amount.
Definition: CSODefines.h:75
@ SELECTION_LINE_WIDTH_FIXED
Sets the selected CSOs to an adjustable line width.
Definition: CSODefines.h:76
const std::string nameAttribShowState
String name for the show state.
Definition: CSODefines.h:232
const std::string nameAttribMarkerSize
String name for the marker's size.
Definition: CSODefines.h:264
Tvec3< MLint > VoxelPosition
Definition: CSODefines.h:314
const std::string nameCSONumPathPointLists
String name for the number of path point lists.
Definition: CSODefines.h:271
const std::string nameCSOType
String name for the type of a CSO.
Definition: CSODefines.h:278
const std::string nameAttribLineStyle
String name for the line style.
Definition: CSODefines.h:256
const std::string nameCSOInPlane
String name for the in-plane state of a CSO.
Definition: CSODefines.h:275
const std::string nameAttribUserDataValue
Definition: CSODefines.h:252
const std::string nameAttribMarkerAlpha
String name for the marker's alpha value.
Definition: CSODefines.h:263
const std::string nameGroupUseSeedPointStyle
String name for the use seed point style of a CSOGroup.
Definition: CSODefines.h:298
const std::string nameCommonNumCSOs
String name for the number of CSOs.
Definition: CSODefines.h:220
CSOProcessorMode
Enumeration of Processor modes.
Definition: CSODefines.h:147
@ PROCESSOR_MODE_GENERATOR
Processor mode: generator only (no modification).
Definition: CSODefines.h:149
@ PROCESSOR_MODE_GENERATOR_MODIFICATOR
Processor mode: generator and modificator.
Definition: CSODefines.h:150
@ PROCESSOR_MODE_MODIFICATOR
Processor mode: modificator only (no generation).
Definition: CSODefines.h:148
Corner
Enumeration of corner names for array access.
Definition: CSODefines.h:176
@ TLF
top left front
Definition: CSODefines.h:180
@ BRR
bottom right rear
Definition: CSODefines.h:182
@ TLR
top left rear
Definition: CSODefines.h:177
@ BRF
bottom right front
Definition: CSODefines.h:183
@ TRF
top right front
Definition: CSODefines.h:179
@ BLR
bottom left rear
Definition: CSODefines.h:181
@ BLF
bottom left front
Definition: CSODefines.h:184
@ TRR
top right rear
Definition: CSODefines.h:178
CSOVoxelWriteModes
Enumeration of the voxel value modes.
Definition: CSODefines.h:25
@ VOXEL_WRITE_ID
If a CSO is voxelized, its id (or the group id) is written into the image.
Definition: CSODefines.h:26
@ VOXEL_WRITE_CONST_PLUS_ID
If a CSO is voxelized, its id (or the group id) added to the constant value is written into the image...
Definition: CSODefines.h:28
@ VOXEL_WRITE_CONST
If a CSO is voxelized, this constant is written into the image.
Definition: CSODefines.h:27
@ VOXEL_VALUE_MODULE
Definition: CSODefines.h:34
@ VOXEL_VALUE_ID
\Deprecated
Definition: CSODefines.h:31
@ VOXEL_VALUE_CONST
Definition: CSODefines.h:32
@ VOXEL_WRITE_MODULE
A CSO (-Group) with this value is voxelized with the according module's values.
Definition: CSODefines.h:29
@ VOXEL_VALUE_CONST_PLUS_ID
Definition: CSODefines.h:33
const std::string nameAttribMarkerMode
String name for the marker mode.
Definition: CSODefines.h:261
const std::string nameAttribEditableState
String name for the editable state.
Definition: CSODefines.h:234
const std::string nameGroupUseSeedPointAlpha
String name for the use seed point alpha of a CSOGroup.
Definition: CSODefines.h:301
CSOSeedPointStyle
Definition: CSODefines.h:100
@ SEED_POINT_STYLE_RECTANGLE
Definition: CSODefines.h:102
@ SEED_POINT_STYLE_DASHED_RECTANGLE
Definition: CSODefines.h:109
@ SEED_POINT_STYLE_FILLED_RECTANGLE
Definition: CSODefines.h:106
@ SEED_POINT_STYLE_FIXED_SIZE_CIRCLE
Definition: CSODefines.h:104
@ SEED_POINT_STYLE_FILLED_CIRCLE
Definition: CSODefines.h:107
@ SEED_POINT_STYLE_CIRCLE
Definition: CSODefines.h:103
@ SEED_POINT_STYLE_NONE
Definition: CSODefines.h:101
@ SEED_POINT_STYLE_FILLED_TRIANGLE
Definition: CSODefines.h:108
@ SEED_POINT_STYLE_TRIANGLE
Definition: CSODefines.h:105
const std::string nameCSOClosed
String name for the closed state of a CSO.
Definition: CSODefines.h:274
CSOMarkerDisplayMode
Definition: CSODefines.h:114
@ MARKER_DISPLAY_MODE_RECT
Definition: CSODefines.h:116
@ MARKER_DISPLAY_MODE_CIRCLE
Definition: CSODefines.h:117
@ MARKER_DISPLAY_MODE_NONE
Definition: CSODefines.h:115
@ MARKER_DISPLAY_MODE_TRIANGLE
Definition: CSODefines.h:118
const std::string nameGroupUseVoxelWriteMode
String name for the use voxel write mode state of a CSOGroup.
Definition: CSODefines.h:303
CrossingSide
Enumeration of sides to which a segment can leave or enter a voxel box.
Definition: CSODefines.h:207
@ CrossingTop
The voxel box is crossed to the top.
Definition: CSODefines.h:208
@ CrossingFront
The voxel box is crossed to the front.
Definition: CSODefines.h:212
@ CrossingNone
The voxel box is not crossed at all.
Definition: CSODefines.h:214
@ CrossingLeft
The voxel box is crossed to the left.
Definition: CSODefines.h:211
@ CrossingBottom
The voxel box is crossed to the bottom.
Definition: CSODefines.h:209
@ CrossingRear
The voxel box is crossed to the rear.
Definition: CSODefines.h:213
@ CrossingRight
The voxel box is crossed to the right.
Definition: CSODefines.h:210
CSOSelectedSeedPointColoring
Enumeration of selected seed point coloring modes.
Definition: CSODefines.h:83
@ SELECTED_SEED_POINT_COLORING_FIXED
Sets the selected seed points to an adjustable color.
Definition: CSODefines.h:85
@ SELECTED_SEED_POINT_COLORING_BRIGHTEN
Brightens the selected seed points by an adjustable amount.
Definition: CSODefines.h:84
const std::string nameAttribPathPointColor
String name for a path point color.
Definition: CSODefines.h:238
CSOSelectionColoring
Enumeration of selection coloring modes.
Definition: CSODefines.h:65
@ SELECTION_COLORING_FIXED
Sets the selected CSOs to an adjustable color.
Definition: CSODefines.h:67
@ SELECTION_COLORING_BRIGHTEN
Brightens the selected CSOs by an adjustable amount.
Definition: CSODefines.h:66
const std::string nameGroupMaximumCSOs
Definition: CSODefines.h:283
const std::string nameGroupUsePathPointColor
String name for the use path point color of a CSOGroup.
Definition: CSODefines.h:295
const std::string nameCSOBoundingBox
String name for the bounding box of a CSO.
Definition: CSODefines.h:277
CSOErrorCode
Enumeration of error codes.
Definition: CSODefines.h:126
@ CSO_RESULT_OK
Error code: no error, all is well.
Definition: CSODefines.h:127
@ CSO_INVALID_INPUT_IMAGE
Error code: the input image is invalid (though not NULL).
Definition: CSODefines.h:129
@ CSO_NO_MEMORY
Error code: out of memory.
Definition: CSODefines.h:130
@ CSO_NO_INPUT_IMAGE
Error code: no input image.
Definition: CSODefines.h:128
const std::string nameAttribLineWidth
String name for the line width.
Definition: CSODefines.h:259
const std::string nameAttribMarkerColor
String name for the marker's color.
Definition: CSODefines.h:262
const std::string nameGroupUseTimePointIndex
String name for the use time point index state of a CSOGroup.
Definition: CSODefines.h:288
const std::string nameAttribPathPointAlpha
String name for a path point alpha.
Definition: CSODefines.h:239
const std::string nameAttribPathPointStyle
String name for a path point style.
Definition: CSODefines.h:236
const std::string nameAttribTimePointIndex
String name for a time point index.
Definition: CSODefines.h:231
const std::string nameGroupUseMarkerSettings
String name for the use marker settings state of a CSOGroup.
Definition: CSODefines.h:309
const std::string nameGroupUsePathPointStyle
String name for the use path point style of a CSOGroup.
Definition: CSODefines.h:293
const std::string nameCSOSubType
String name for the subtype of a CSO.
Definition: CSODefines.h:279
const std::string nameAttribVoxelValue
String name for the voxel write value.
Definition: CSODefines.h:266
const std::string nameGroupOverflowHandling
Definition: CSODefines.h:284
const std::string nameGroupDeleteGroupCSOHandling
Definition: CSODefines.h:286
const std::string nameAttribSeedPointAlpha
String name for a seed point alpha.
Definition: CSODefines.h:244
CSOProcessorPickingMode
Enumeration of processor picking mode.
Definition: CSODefines.h:157
@ PROCESSOR_PICKING_MODE_SEED_POINTS
Processor needs to pick seed points (and path point if no seed point was in the vicinity).
Definition: CSODefines.h:158
@ PROCESSOR_PICKING_MODE_PATH_POINTS
Processor needs to pick path points only. Seed points are not tested.
Definition: CSODefines.h:159
const std::string nameAttribVoxelizeState
String name for the voxelize state.
Definition: CSODefines.h:233
const std::string nameAttribVoxelWriteMode
String name for the voxel write mode.
Definition: CSODefines.h:246
const std::string nameGroupUseVoxelizeState
String name for the use voxelize state of a CSOGroup.
Definition: CSODefines.h:290
const std::string nameGroupUseShowState
String name for the use show state of a CSOGroup.
Definition: CSODefines.h:289
const std::string nameAttribSeedPointColor
String name for a seed point color.
Definition: CSODefines.h:243
const std::string namePathNumPoints
String name for the number of points in a path point list.
Definition: CSODefines.h:272
CSOSelectedSeedPointSize
Enumeration of selected seed point size modes.
Definition: CSODefines.h:92
@ SELECTED_SEED_POINT_SIZE_FIXED
Sets the selected seed points to an adjustable size.
Definition: CSODefines.h:94
@ SELECTED_SEED_POINT_SIZE_ENLARGE
Enlarges the selected seed points by an adjustable amount.
Definition: CSODefines.h:93
const std::string nameAttribSeedPointStyle
String name for a seed point style.
Definition: CSODefines.h:241
const std::string nameCommonNumSelectedCSOs
String name for the number of selected CSOs.
Definition: CSODefines.h:223
const std::string nameCSOCreatorId
String name for the creator id of a CSO.
Definition: CSODefines.h:280
CSOSmoothingModes
Enumeration of smoothing modes.
Definition: CSODefines.h:166
@ SMOOTHING_MODE_SPLINE_APPROXIMATION
Smoothing by applying a spline approximation (B-Spline).
Definition: CSODefines.h:168
@ SMOOTHING_MODE_SPLINE_INTERPOLATION
Smoothing by applying a spline interpolation (Catmull-Rom).
Definition: CSODefines.h:169
@ SMOOTHING_MODE_NONE
No smoothing.
Definition: CSODefines.h:167
const std::string nameGroupUseVisuals
String name for the use visual state of a CSOGroup.
Definition: CSODefines.h:308
const std::string nameAttribSeedPointSize
String name for a seed point size.
Definition: CSODefines.h:242
const std::string nameCSOPlaneNormal
String name for the plane normal of a CSO.
Definition: CSODefines.h:276