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
19ML_START_NAMESPACE
20
22
37
39
49
60
62
69
71
78
80
87
89
96
98
111
121
123
132
134
142
144
152
154
161
163
171
173
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
186
188
200
202
216
218
219// Common
220const std::string nameCommonNumCSOs = "NumCSOs";
221const std::string nameCommonNumGroups = "NumGroups";
222
223const std::string nameCommonNumSelectedCSOs = "NumSelectedCSOs";
224const std::string nameCommonNumSelectedGroups = "NumSelectedGroups";
225
226// Attributes
227const std::string nameAttribId = "Id";
228const std::string nameAttribLabel = "Label";
229const std::string nameAttribDescription = "Description";
230
231const std::string nameAttribTimePointIndex = "TimePointIndex";
232const std::string nameAttribShowState = "ShowState";
233const std::string nameAttribVoxelizeState = "VoxelizeState";
234const std::string nameAttribEditableState = "EditableState";
235
236const std::string nameAttribPathPointStyle = "PathPointStyle";
237const std::string nameAttribPathPointWidth = "PathPointWidth";
238const std::string nameAttribPathPointColor = "PathPointColor";
239const std::string nameAttribPathPointAlpha = "PathPointAlpha";
240
241const std::string nameAttribSeedPointStyle = "SeedPointStyle";
242const std::string nameAttribSeedPointSize = "SeedPointSize";
243const std::string nameAttribSeedPointColor = "SeedPointColor";
244const std::string nameAttribSeedPointAlpha = "SeedPointAlpha";
245
246const std::string nameAttribVoxelWriteMode = "VoxelWriteMode";
247const std::string nameAttribVoxelWriteValue= "VoxelWriteValue";
248
249const std::string nameAttribNumUserData = "NumUserData"; //<! String name for the number of user data.
250const std::string nameAttribUserDataName = "UserDataName"; //<! String name for the name of a user data entry.
251const std::string nameAttribUserDataType = "UserDataType"; //<! String name for the type of a user data entry.
252const 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
256const std::string nameAttribLineStyle = "LineStyle";
257const std::string nameAttribColor = "Color";
258const std::string nameAttribAlpha = "Alpha";
259const std::string nameAttribLineWidth = "LineWidth";
260
261const std::string nameAttribMarkerMode = "MarkerMode";
262const std::string nameAttribMarkerColor = "MarkerColor";
263const std::string nameAttribMarkerAlpha = "MarkerAlpha";
264const std::string nameAttribMarkerSize = "MarkerSize";
265
266const std::string nameAttribVoxelValue = "VoxelValue";
268
269// CSO
270const std::string nameCSONumSeedPoints = "NumSeedPoints";
271const std::string nameCSONumPathPointLists = "NumPathPointLists";
272const std::string namePathNumPoints = "PathNumPoints";
273const std::string nameCSOFinished = "IsFinished";
274const std::string nameCSOClosed = "IsClosed";
275const std::string nameCSOInPlane = "IsInPlane";
276const std::string nameCSOPlaneNormal = "PlaneNormal";
277const std::string nameCSOBoundingBox = "BoundingBox";
278const std::string nameCSOType = "Type";
279const std::string nameCSOSubType = "SubType";
280const std::string nameCSOCreatorId = "CreatorId";
281
282// CSOGroup
283const std::string nameGroupMaximumCSOs = "MaximumCSOs";
284const std::string nameGroupOverflowHandling = "OverflowHandling";
285const std::string nameGroupRemoveCSOHandling = "RemoveCSOHandling";
286const std::string nameGroupDeleteGroupCSOHandling = "DeleteGroupCSOHandling";
287
288const std::string nameGroupUseTimePointIndex = "UseTimePointIndex";
289const std::string nameGroupUseShowState = "UseShowState";
290const std::string nameGroupUseVoxelizeState = "UseVoxelizeState";
291const std::string nameGroupUseEditableState = "UseEditableState";
292
293const std::string nameGroupUsePathPointStyle = "UsePathPointStyle";
294const std::string nameGroupUsePathPointWidth = "UsePathPointWidth";
295const std::string nameGroupUsePathPointColor = "UsePathPointColor";
296const std::string nameGroupUsePathPointAlpha = "UsePathPointAlpha";
297
298const std::string nameGroupUseSeedPointStyle = "UseSeedPointStyle";
299const std::string nameGroupUseSeedPointSize = "UseSeedPointSize";
300const std::string nameGroupUseSeedPointColor = "UseSeedPointColor";
301const std::string nameGroupUseSeedPointAlpha = "UseSeedPointAlpha";
302
303const std::string nameGroupUseVoxelWriteMode = "UseVoxelWriteMode";
304const std::string nameGroupUseVoxelWriteValue = "UseVoxelWriteValue";
305
307// Kept just because of backward compatibility of old CSO files
308const std::string nameGroupUseVisuals = "UseVisuals";
309const std::string nameGroupUseMarkerSettings = "UseMarkerSettings";
311
313
315
317
318ML_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
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 CSOGroup ID) is written into the image.
Definition CSODefines.h:26
@ VOXEL_WRITE_CONST_PLUS_ID
If a CSO is voxelized, its ID (or the CSOGroup ID) added to the constant value is written into the im...
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 nullptr).
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