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