MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
CSOManager.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
16
17#pragma once
18
19#include "../CSOList.h"
20
23
24
26
28
33{
34
35public:
38
41
46
47
50 {
51 return _selectionPathPointColoringModeFld->getEnumValue();
52 }
55 {
56 return _selectionPathPointWidthModeFld->getEnumValue();
57 }
62
65 {
66 return _selectionFixedPathPointColorFld->getVector3Value();
67 }
70 {
71 return _selectionBrightenPathPointColorFld->getFloatValue();
72 }
75 {
76 return _selectionFixedPathPointWidthFld->getFloatValue();
77 }
80 {
81 return _selectionWidenPathPointWidthFld->getFloatValue();
82 }
83
86 {
87 return _selectedSeedPointFixedColorFld->getVector3Value();
88 }
91 {
92 return _selectedSeedPointBrightenColorFld->getFloatValue();
93 }
96 {
97 return _selectedSeedPointSizeFld->getFloatValue();
98 }
101 {
102 return _selectedSeedPointEnlargeSizeFld->getFloatValue();
103 }
104
107 {
108 return _selectedSeedPointColoringModeFld->getEnumValue();
109 }
112 {
113 return _selectedSeedPointSizeModeFld->getEnumValue();
114 }
119
121
123 std::string getCSODefaultLabel();
124
126 inline std::string getCSODefaultDescription() const
127 {
128 return _csoDefaultDescriptionFld->getStringValue();
129 }
131 inline bool getCSODefaultShowState() const
132 {
133 return _csoDefaultShowStateFld->getBoolValue();
134 }
136 inline bool getCSODefaultVoxelizeState() const
137 {
138 return _csoDefaultVoxelizeStateFld->getBoolValue();
139 }
141 inline bool getCSODefaultEditableState() const
142 {
143 return _csoDefaultEditableStateFld->getBoolValue();
144 }
145
147
149 std::string getGroupDefaultLabel();
150
152 inline std::string getGroupDefaultDescription() const
153 {
154 return _groupDefaultDescriptionFld->getStringValue();
155 }
158 {
159 return _groupDefaultUseTimePointIndexFld->getBoolValue();
160 }
163 {
164 return static_cast<int>(_groupDefaultTimePointIndexFld->getIntValue());
165 }
167 inline bool getGroupDefaultUseShowState() const
168 {
169 return _groupDefaultUseShowStateFld->getBoolValue();
170 }
172 inline bool getGroupDefaultShowState() const
173 {
174 return _groupDefaultShowStateFld->getBoolValue();
175 }
178 {
179 return _groupDefaultUseVoxelizeStateFld->getBoolValue();
180 }
183 {
184 return _groupDefaultVoxelizeStateFld->getBoolValue();
185 }
188 {
189 return _groupDefaultUseEditableStateFld->getBoolValue();
190 }
193 {
194 return _groupDefaultEditableStateFld->getBoolValue();
195 }
196
199 {
200 return _groupDefaultUsePathPointStyleFld->getBoolValue();
201 }
204 {
205 return static_cast<CSOPathPointsStyle>(_groupDefaultPathPointStyleFld->getEnumValue());
206 }
209 {
210 return _groupDefaultUsePathPointWidthFld->getBoolValue();
211 }
213 inline float getGroupDefaultPathPointWidth() const
214 {
215 return _groupDefaultPathPointWidthFld->getFloatValue();
216 }
219 {
220 return _groupDefaultUsePathPointColorFld->getBoolValue();
221 }
224 {
225 return _groupDefaultPathPointColorFld->getVector3Value();
226 }
229 {
230 return _groupDefaultUsePathPointAlphaFld->getBoolValue();
231 }
233 inline float getGroupDefaultPathPointAlpha() const
234 {
235 return _groupDefaultPathPointAlphaFld->getFloatValue();
236 }
237
240 {
241 return _groupDefaultUseSeedPointStyleFld->getBoolValue();
242 }
245 {
246 return _groupDefaultSeedPointStyleFld->getEnumValue();
247 }
250 {
251 return _groupDefaultUseSeedPointSizeFld->getBoolValue();
252 }
254 inline float getGroupDefaultSeedPointSize() const
255 {
256 return _groupDefaultSeedPointSizeFld->getFloatValue();
257 }
260 {
261 return _groupDefaultUseSeedPointColorFld->getBoolValue();
262 }
265 {
266 return _groupDefaultSeedPointColorFld->getVector3Value();
267 }
270 {
271 return _groupDefaultUseSeedPointAlphaFld->getBoolValue();
272 }
274 inline float getGroupDefaultSeedPointAlpha() const
275 {
276 return _groupDefaultSeedPointAlphaFld->getFloatValue();
277 }
278
281 {
282 return _groupDefaultUseVoxelWriteModeFld->getBoolValue();
283 }
286 {
287 return _groupDefaultVoxelWriteModeFld->getEnumValue();
288 }
291 {
292 return _groupDefaultUseVoxelWriteValueFld->getBoolValue();
293 }
296 {
297 return _groupDefaultVoxelWriteValueFld->getFloatValue();
298 }
299
300
303 {
304 return static_cast<int>(_groupDefaultNumMaximumCSOsFld->getIntValue());
305 }
308 {
309 return static_cast<CSOGroupOverflowHandling>(_groupDefaultOverflowHandlingFld->getEnumValue());
310 }
313 {
314 return static_cast<CSORemoveHandling>(_groupDefaultRemoveFromGroupHandlingFld->getEnumValue());
315 }
318 {
319 return static_cast<CSORemoveHandling>(_groupDefaultDeleteGroupCSOHandlingFld->getEnumValue());
320 }
323 {
324 return static_cast<CSORemoveEmptyGroupHandling>(_listDefaultRemoveEmptyGroupHandlingFld->getEnumValue());
325 }
326
327protected:
329 ~CSOManager() override;
330
332 void activateAttachments() override;
333
336
339
340private:
341 /* FIELDS */
342
344 BaseField* _outCSOListFld;
346 BaseField* _inCSOListFld;
347
349 BaseField* _inUndoContextFld;
350
352 BoolField* _workDirectlyOnInputCSOListFld;
354 NotifyField* _copyInputCSOListFld;
355
357 StringField* _csoDisplayTreeFld;
359 StringField* _groupDisplayTreeFld;
361 BoolField* _shouldUpdateCsoDisplayTreeFld;
363 BoolField* _shouldUpdateGroupDisplayTreeFld;
364
366 StringField* _csoSelectedItemsFld;
368 StringField* _groupSelectedItemsFld;
370 StringField* _groupSelectedCSOItemsFld;
372 StringField* _csoSelectedGroupItemsFld;
373
375 BoolField* _enableUndoRedoFld;
377 NotifyField* _triggerUndoFld;
379 NotifyField* _triggerRedoFld;
381 IntField* _numUndosFld;
383 IntField* _numRedosFld;
385 IntField* _undoStackLimitFld;
386
388 NotifyField* _addCSOtoGroupFld;
390 NotifyField* _breakCSOFromGroupFld;
391
393 NotifyField* _removeAllCSOsAndGroupsFld;
394
396 NotifyField* _csoRemoveSelectedFld;
398 NotifyField* _csoCopySelectedFld;
400 NotifyField* _csoPasteFld;
401
403 NotifyField* _groupCreateNewFld;
405 BoolField* _selectLastCreatedGroupFld;
407 NotifyField* _groupRemoveSelectedFld;
409 NotifyField* _groupCopySelectedFld;
411 NotifyField* _groupPasteFld;
412
414 TypedEnumField<CSOSelectionColoring>* _selectionPathPointColoringModeFld;
416 TypedEnumField<CSOSelectionLineWidth>* _selectionPathPointWidthModeFld;
418 FloatField* _selectionBrightenPathPointColorFld;
420 ColorField* _selectionFixedPathPointColorFld;
422 FloatField* _selectionWidenPathPointWidthFld;
424 FloatField* _selectionFixedPathPointWidthFld;
425
427 TypedEnumField<CSOSelectedSeedPointColoring>* _selectedSeedPointColoringModeFld;
429 TypedEnumField<CSOSelectedSeedPointSize>* _selectedSeedPointSizeModeFld;
431 FloatField* _selectedSeedPointBrightenColorFld;
433 ColorField* _selectedSeedPointFixedColorFld;
435 FloatField* _selectedSeedPointEnlargeSizeFld;
437 FloatField* _selectedSeedPointSizeFld;
438
440 IntField* _csoSingleIdFld;
442 StringField* _csoSingleLabelFld;
444 StringField* _csoSingleDescriptionFld;
445
447 IntField* _csoSingleTimePointIndexFld;
449 BoolField* _csoSingleShowStateFld;
451 BoolField* _csoSingleVoxelizeStateFld;
453 BoolField* _csoSingleEditableStateFld;
454
456 TypedEnumField<CSOPathPointsStyle>* _csoSinglePathPointStyleFld;
458 FloatField* _csoSinglePathPointWidthFld;
460 ColorField* _csoSinglePathPointColorFld;
462 FloatField* _csoSinglePathPointAlphaFld;
463
465 TypedEnumField<CSOSeedPointStyle>* _csoSingleSeedPointStyleFld;
467 FloatField* _csoSingleSeedPointSizeFld;
469 ColorField* _csoSingleSeedPointColorFld;
471 FloatField* _csoSingleSeedPointAlphaFld;
472
474 TypedEnumField<CSOVoxelWriteModes>* _csoSingleVoxelWriteModeFld;
476 FloatField* _csoSingleVoxelWriteValueFld;
477
479 StringField* _csoDefaultLabelFld;
481 BoolField* _csoDefaultLabelAddUniqueIdFld;
484 StringField* _csoDefaultLabelUniqueIdFormatFld;
486 BoolField* _csoDefaultLabelAddUniqueIdAlwaysFld;
487
489 StringField* _csoDefaultDescriptionFld;
491 BoolField* _csoDefaultShowStateFld;
493 BoolField* _csoDefaultVoxelizeStateFld;
495 BoolField* _csoDefaultEditableStateFld;
496
498 NotifyField* _csoSingleApplyFld;
499
500
502 IntField* _groupSingleIdFld;
504 StringField* _groupSingleLabelFld;
506 StringField* _groupSingleDescriptionFld;
507
509 BoolField* _groupSingleUseTimePointIndexFld;
511 IntField* _groupSingleTimePointIndexFld;
513 BoolField* _groupSingleUseShowStateFld;
515 BoolField* _groupSingleShowStateFld;
517 BoolField* _groupSingleUseVoxelizeStateFld;
519 BoolField* _groupSingleVoxelizeStateFld;
521 BoolField* _groupSingleUseEditableStateFld;
523 BoolField* _groupSingleEditableStateFld;
524
525
527 BoolField* _groupSingleUsePathPointStyleFld;
529 TypedEnumField<CSOPathPointsStyle>* _groupSinglePathPointStyleFld;
531 BoolField* _groupSingleUsePathPointWidthFld;
533 FloatField* _groupSinglePathPointWidthFld;
535 BoolField* _groupSingleUsePathPointColorFld;
537 ColorField* _groupSinglePathPointColorFld;
539 BoolField* _groupSingleUsePathPointAlphaFld;
541 FloatField* _groupSinglePathPointAlphaFld;
542
544 BoolField* _groupSingleUseSeedPointStyleFld;
546 TypedEnumField<CSOSeedPointStyle>* _groupSingleSeedPointStyleFld;
548 BoolField* _groupSingleUseSeedPointSizeFld;
550 FloatField* _groupSingleSeedPointSizeFld;
552 BoolField* _groupSingleUseSeedPointColorFld;
554 ColorField* _groupSingleSeedPointColorFld;
556 BoolField* _groupSingleUseSeedPointAlphaFld;
558 FloatField* _groupSingleSeedPointAlphaFld;
559
561 BoolField* _groupSingleUseVoxelWriteModeFld;
563 TypedEnumField<CSOVoxelWriteModes>* _groupSingleVoxelWriteModeFld;
565 BoolField* _groupSingleUseVoxelWriteValueFld;
567 FloatField* _groupSingleVoxelWriteValueFld;
568
570 IntField* _groupSingleNumMaximumCSOsFld;
573 TypedEnumField<CSOGroupOverflowHandling>* _groupSingleOverflowHandlingFld;
576 TypedEnumField<CSORemoveHandling>* _groupSingleRemoveFromGroupHandlingFld;
579 TypedEnumField<CSORemoveHandling>* _groupSingleDeleteGroupCSOHandlingFld;
580
582 StringField* _groupDefaultLabelFld;
584 BoolField* _groupDefaultLabelAddUniqueIdFld;
587 StringField* _groupDefaultLabelUniqueIdFormatFld;
589 BoolField* _groupDefaultLabelAddUniqueIdAlwaysFld;
590
592 StringField* _groupDefaultDescriptionFld;
593
595 BoolField* _groupDefaultUseTimePointIndexFld;
597 IntField* _groupDefaultTimePointIndexFld;
599 BoolField* _groupDefaultUseShowStateFld;
601 BoolField* _groupDefaultShowStateFld;
603 BoolField* _groupDefaultUseVoxelizeStateFld;
605 BoolField* _groupDefaultVoxelizeStateFld;
607 BoolField* _groupDefaultUseEditableStateFld;
609 BoolField* _groupDefaultEditableStateFld;
610
611
613 BoolField* _groupDefaultUsePathPointStyleFld;
615 TypedEnumField<CSOPathPointsStyle>* _groupDefaultPathPointStyleFld;
617 BoolField* _groupDefaultUsePathPointWidthFld;
619 FloatField* _groupDefaultPathPointWidthFld;
621 BoolField* _groupDefaultUsePathPointColorFld;
623 ColorField* _groupDefaultPathPointColorFld;
625 BoolField* _groupDefaultUsePathPointAlphaFld;
627 FloatField* _groupDefaultPathPointAlphaFld;
628
630 BoolField* _groupDefaultUseSeedPointSizeFld;
632 FloatField* _groupDefaultSeedPointSizeFld;
634 BoolField* _groupDefaultUseSeedPointStyleFld;
636 TypedEnumField<CSOSeedPointStyle>* _groupDefaultSeedPointStyleFld;
638 BoolField* _groupDefaultUseSeedPointColorFld;
640 ColorField* _groupDefaultSeedPointColorFld;
642 BoolField* _groupDefaultUseSeedPointAlphaFld;
644 FloatField* _groupDefaultSeedPointAlphaFld;
645
647 BoolField* _groupDefaultUseVoxelWriteModeFld;
649 TypedEnumField<CSOVoxelWriteModes>* _groupDefaultVoxelWriteModeFld;
651 BoolField* _groupDefaultUseVoxelWriteValueFld;
653 FloatField* _groupDefaultVoxelWriteValueFld;
654
656 IntField* _groupDefaultNumMaximumCSOsFld;
659 TypedEnumField<CSOGroupOverflowHandling>* _groupDefaultOverflowHandlingFld;
662 TypedEnumField<CSORemoveHandling>* _groupDefaultRemoveFromGroupHandlingFld;
664 TypedEnumField<CSORemoveHandling>* _groupDefaultDeleteGroupCSOHandlingFld;
666 NotifyField* _groupSingleApplyFld;
667
669
671 TypedEnumField<CSORemoveEmptyGroupHandling>* _listSingleRemoveEmptyGroupHandlingFld;
673 TypedEnumField<CSORemoveEmptyGroupHandling>* _listDefaultRemoveEmptyGroupHandlingFld;
674
676
678 BoolField* _useSelectionCSONotificationFld;
680 BoolField* _useSelectionGroupNotificationFld;
682 BoolField* _useFinishedCSONotificationFld;
684 BoolField* _useFinishedGroupNotificationFld;
686 BoolField* _useCSOMovedNotificationFld;
688 BoolField* _useRepaintNotificationFld;
690 BoolField* _useInteractionInitNotificationFld;
692 BoolField* _useNewCSOStartedNotificationFld;
693
695 NotifyField* _notifyOnSelectionCSOFld;
697 NotifyField* _notifyOnSelectionGroupFld;
699 NotifyField* _notifyOnFinishedCSOFld;
701 NotifyField* _notifyOnFinishedGroupFld;
703 NotifyField* _notifyOnCSOMovedFld;
705 NotifyField* _notifyOnRepaintFld;
707 NotifyField* _notifyOnInteractionInitFld;
709 NotifyField* _notifyOnStartNewCSOFld;
710
712
714 BoolField* _enableSelectionNotificationFld;
716 BoolField* _enableFinishedNotificationFld;
718 BoolField* _enableCSOMovedNotificationFld;
720 BoolField* _enableRepaintNotificationFld;
721
723 NotifyField* _triggerSelectionNotificationFld;
725 NotifyField* _triggerFinishedNotificationFld;
727 NotifyField* _triggerCSOMovedNotificationFld;
729 NotifyField* _triggerRepaintNotificationFld;
731 BoolField* _outputApplicationEventsDebugFld;
732
734
735 /* MEMBER VARIABLES */
736
739 struct GroupCSOPair
740 {
741 CSO* cso;
742 CSOGroup* group;
743 };
744
746 CSOListPtr _outCSOList;
748 CSOListPtr _inCSOList;
749
751 bool _isOutputCSOListOwner;
753 bool _isWorkingDirectlyOnInputCSOList;
754
756 std::vector<GroupCSOPair> _csoSelectedGroups;
758 std::vector<GroupCSOPair> _groupSelectedCSOs;
759
761 std::vector<CSO*> _copiedCSOs;
763 std::vector<CSOGroup*> _copiedGroups;
764
766 bool _isInNotificationCB;
767
769 bool _useSelectionCSONotification;
771 bool _useSelectionGroupNotification;
773 bool _useFinishedCSONotification;
775 bool _useFinishedGroupNotification;
777 bool _useCSOMovedNotification;
779 bool _useRepaintNotification;
781 bool _useInteractionInitNotification;
783 bool _useNewCSOStartedNotification;
784
786 bool _selectedCSOItemsChangedFromField;
788 bool _selectedCSOGroupItemsChangedFromField;
789
791 bool _isNotifyingItself;
792
793 /* METHODS */
794
796 static void _csoListNotificationCB(void* userData, int notificationFlag);
797
799 void _updateManagerFields();
800
802 void _updateCSOManagerFields();
804 void _updateGroupManagerFields();
805
807 void _updateInformationFields();
808
811 bool _parseCSOSelectedItemsString();
814 bool _parseGroupSelectedItemsString();
815
817 void _parseStringToVector(std::string toParse, std::vector<int>& parsedIds);
818
820 void _parseCSOGroupToVector();
822 void _parseGroupCSOToVector();
823
825 void _parsePair(std::string toParse, int& firstId, int& secondId);
827 void _addPairToVector(int csoId, int groupId, std::vector<GroupCSOPair>& gcPairVec);
828
829
832 void _openUndoRedoGroup(const std::string& description);
835 void _closeUndoRedoGroup();
836
838 void _createCSOString();
840 void _createGroupString();
841
843 void _updateCSOInformationFields();
845 void _updateGroupInformationFields();
846
848 void _copySelectedCSOs();
850 void _copySelectedGroups();
852 void _pasteCopiedCSOs();
854 void _pasteCopiedGroups();
855
857 void _addSelectedCSOtoGroup();
859 void _breakSelectedCSOFromGroup();
860
862 void _removeCSOs();
864 void _removeGroups();
865
867 void _createGroup();
868
869 static void baseEventCB(void* userData, BaseEvent* event);
870
871 int _eventGroupCounter;
872
874};
875
877
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition MLCSOSystem.h:23
BaseEvent is the base class for all events emitted from EventSourceBase.
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Field to encapsulate a boolean value.
Definition mlFields.h:56
A CSOGroup comprises a number of CSOs, which themselves can be in a number of different CSOGroups.
Definition CSOGroup.h:38
The CSOManager allows for storing and iterating CSOs, and implements an undo/redo mechanism.
Definition CSOManager.h:33
void getSelectedSeedPointColor(Vector3 &origColor)
Returns the selected seed point color (on base of the given color if in 'brighten' mode).
bool getGroupDefaultShowState() const
Returns the default show state for CSOGroups.
Definition CSOManager.h:172
float getSelectedPathPointsBrightenValue() const
Returns the brighten value for selected path points.
Definition CSOManager.h:69
bool getGroupDefaultUseVoxelWriteValue() const
Returns whether the member CSOs shall use the CSOGroup's voxel write value by default.
Definition CSOManager.h:290
float getSelectedSeedPointBrightenValue() const
Returns the brighten value for selected seed points.
Definition CSOManager.h:90
Vector3 getSelectedSeedPointFixedColor() const
Returns the fixed color for selected seed points.
Definition CSOManager.h:85
float getSelectedSeedPointEnlargeValue() const
Returns the value for selected seed points.
Definition CSOManager.h:100
float getGroupDefaultPathPointAlpha() const
Returns the default alpha value for CSOGroups.
Definition CSOManager.h:233
CSOGroupOverflowHandling getGroupDefaultOverflowHandling() const
Returns the default overflow handling mode for CSOGroups.
Definition CSOManager.h:307
int getGroupDefaultTimePointIndex() const
Returns the default time point index for CSOGroups.
Definition CSOManager.h:162
void activateAttachments() override
Initializes the module after loading.
CSORemoveHandling getGroupDefaultRemoveFromGroupHandling() const
Returns the default remove-from-group handling mode for CSOGroups.
Definition CSOManager.h:312
bool getGroupDefaultUsePathPointStyle() const
Returns whether the member CSOs shall use the CSOGroup's line style by default.
Definition CSOManager.h:198
CSORemoveHandling getGroupDefaultDeleteGroupCSOHandling() const
Returns the default delete-group handling mode for CSOGroups.
Definition CSOManager.h:317
bool getCSODefaultEditableState() const
Returns the default editable state for CSOs.
Definition CSOManager.h:141
bool getGroupDefaultUsePathPointAlpha() const
Returns whether the member CSOs shall use the CSOGroup's alpha value by default.
Definition CSOManager.h:228
std::string getGroupDefaultDescription() const
Returns the default description for CSOGroups.
Definition CSOManager.h:152
int getGroupDefaultVoxelWriteMode() const
Returns the default voxel write mode for CSOGroups.
Definition CSOManager.h:285
Vector3 getGroupDefaultSeedPointColor() const
Returns the default marker color for CSOGroups.
Definition CSOManager.h:264
std::string getGroupDefaultLabel()
Returns the default label for CSOGroups.
std::string getCSODefaultDescription() const
Returns the default description for CSOs.
Definition CSOManager.h:126
bool getGroupDefaultUseSeedPointSize() const
Returns whether the member CSOs shall use the CSOGroup's marker size by default.
Definition CSOManager.h:249
float getSelectedPathPointsWidenValue() const
Returns the widen value for selected path points.
Definition CSOManager.h:79
bool getGroupDefaultUseSeedPointStyle() const
Returns whether the member CSOs shall use the CSOGroup's marker mode by default.
Definition CSOManager.h:239
bool getGroupDefaultEditableState() const
Returns the default editable state for CSOGroups.
Definition CSOManager.h:192
Vector3 getSelectedPathPointsFixedColor() const
Returns the fixed color for selected path points without regarding the coloring mode.
Definition CSOManager.h:64
bool getCSODefaultShowState() const
Returns the default show state for CSOs.
Definition CSOManager.h:131
void handleNotification(Field *field) override
Called when input changes.
bool getCSODefaultVoxelizeState() const
Returns the default voxelize state for CSOs.
Definition CSOManager.h:136
int getGroupDefaultNumMaximumCSOs() const
Returns the default maximum number of CSOs for CSOGroups.
Definition CSOManager.h:302
bool getGroupDefaultUseSeedPointAlpha() const
Returns whether the member CSOs shall use the CSOGroup's marker alpha by default.
Definition CSOManager.h:269
void updateGroupManager()
Updates the CSOGroup list view and the single CSOGroup fields.
void updateCSOManager()
Updates the CSO list view and the single CSO fields.
int getSelectedSeedPointSizeMode()
Returns the size mode for selected seed points (enlarge / fixed size).
Definition CSOManager.h:111
bool getGroupDefaultUseEditableState() const
Returns whether the member CSOs shall use the CSOGroup's editable state by default.
Definition CSOManager.h:187
CSORemoveEmptyGroupHandling getDefaultRemoveEmptyGroupHandling() const
Returns the default remove-empty-group handling mode for CSOLists.
Definition CSOManager.h:322
Vector3 getGroupDefaultPathPointColor() const
Returns the default color for CSOGroups.
Definition CSOManager.h:223
void updateManager()
Updates the tree views and the single CSO and CSOGroup fields.
bool getGroupDefaultVoxelizeState() const
Returns the default voxelize state for CSOGroups.
Definition CSOManager.h:182
void getSelectionPathPointWidth(float &origLineWidth)
Returns the selection line width (on base of the given line width if in 'widen' mode).
~CSOManager() override
Standard destructor.
void setInternalVariables()
Sets internal state variables.
float getSelectedPathPointsFixedLineWidth() const
Returns the fixed line width value for selected path points.
Definition CSOManager.h:74
int getSelectionPathPointColoringMode()
Returns the coloring mode for selected CSOs (brighten / fixed color).
Definition CSOManager.h:49
bool getGroupDefaultUseShowState() const
Returns whether the member CSOs shall use the CSOGroup's show state by default.
Definition CSOManager.h:167
CSOPathPointsStyle getGroupDefaultPathPointStyle() const
Returns the default line style for CSOGroups.
Definition CSOManager.h:203
float getGroupDefaultVoxelWriteValue() const
Returns the default voxel write value for CSOGroups.
Definition CSOManager.h:295
std::string getCSODefaultLabel()
Returns the default label for CSOs.
bool getGroupDefaultUseTimePointIndex() const
Returns whether the member CSOs shall use the CSOGroup's time point index by default.
Definition CSOManager.h:157
bool getGroupDefaultUsePathPointWidth() const
Returns whether the member CSOs shall use the CSOGroup's line width by default.
Definition CSOManager.h:208
bool getGroupDefaultUseVoxelizeState() const
Returns whether the member CSOs shall use the CSOGroup's voxelize state by default.
Definition CSOManager.h:177
bool getGroupDefaultUseSeedPointColor() const
Returns whether the member CSOs shall use the CSOGroup's marker color by default.
Definition CSOManager.h:259
int getSelectionPathPointWidthMode()
Returns the line width mode for selected CSOs (widen / fixed width).
Definition CSOManager.h:54
float getGroupDefaultSeedPointSize() const
Returns the default marker size for CSOGroups.
Definition CSOManager.h:254
float getSelectedSeedPointFixedSize() const
Returns the fixed size value for selected seed points.
Definition CSOManager.h:95
int getSelectedSeedPointColoringMode()
Returns the coloring mode for selected seed points (brighten / fixed color).
Definition CSOManager.h:106
void getSelectionPathPointColor(Vector3 &origColor)
Returns the selection color (on base of the given color if in 'brighten' mode).
int getGroupDefaultSeedPointStyle() const
Returns the default marker mode for CSOGroups.
Definition CSOManager.h:244
CSOManager(int numInImages=0, int numOutImages=0)
Standard constructor.
bool getGroupDefaultUsePathPointColor() const
Returns whether the member CSOs shall use the CSOGroup's color by default.
Definition CSOManager.h:218
bool getGroupDefaultUseVoxelWriteMode() const
Returns whether the member CSOs shall use the CSOGroup's voxel write mode by default.
Definition CSOManager.h:280
float getGroupDefaultSeedPointAlpha() const
Returns the default marker alpha value for CSOGroups.
Definition CSOManager.h:274
void getSelectedSeedPointSize(float &origSize)
Returns the selected seed point size (on base of the given size if in 'enlarge' mode).
float getGroupDefaultPathPointWidth() const
Returns the default line width for CSOGroups.
Definition CSOManager.h:213
The CSO represents a contour segmentation object.
Definition CSO.h:44
Field to encapsulate a vector of three float values representing an (RGB) color with all properties o...
Definition mlFields.h:1547
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate a float value.
Definition mlFields.h:449
Field to encapsulate an integer value.
Definition mlFields.h:123
Base class for an image processing module of the ML.
Definition mlModule.h:150
Field without value for notifications.
Definition mlFields.h:687
Field to encapsulate a string value.
Definition mlFields.h:634
TypedEnumField is used to encapsulate a C++ enum value and work with a real enum value instead of int...
Definition mlFields.h:398
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
CSORemoveHandling
Enumeration for the removal handling of CSOs from CSOGroup and whether CSOGroup is deleted.
CSOPathPointsStyle
Enumeration of line styles (order as StylePalette::LineStyle).
Definition CSODefines.h:45
CSORemoveEmptyGroupHandling
Enumeration for empty CSOGroups removal.
CSOGroupOverflowHandling
Enumeration for the CSOGroup overflow handling modes.