MeVisLab Toolbox Reference
CSOListRules.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 "MLCSOIncludes.h"
20 
21 
22 ML_START_NAMESPACE
23 
24 class CSO;
25 class CSOList;
26 
28 
31 {
35 };
36 
38 
42 {
43 
44 public:
45 
50 
52  void reset();
53 
55  void setRemoveEmptyGroupHandling(CSORemoveEmptyGroupHandling handling) { _removeEmptyGroupHandling = handling; }
57  CSORemoveEmptyGroupHandling getRemoveEmptyGroupHandling() const { return _removeEmptyGroupHandling; }
58 
59 
61  void applyTo(CSOList& csoList);
62 
65 
66 private:
67 
69  CSORemoveEmptyGroupHandling _removeEmptyGroupHandling;
70 };
71 
73 
74 ML_END_NAMESPACE
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition: MLCSOSystem.h:23
The CSOListRules class controls how the CSOList should treat CSOGroups if their CSOs are removed.
Definition: CSOListRules.h:42
void applyTo(CSOList &csoList)
Applies the rules to the csoList.
~CSOListRules()
Destructor.
CSOListRules()
Constructor.
void setRemoveEmptyGroupHandling(CSORemoveEmptyGroupHandling handling)
Sets the handling mode for empty groups.
Definition: CSOListRules.h:55
void reset()
Sets default values to all members.
CSORemoveEmptyGroupHandling getRemoveEmptyGroupHandling() const
Returns the _removeEmptyGroupHandling mode.
Definition: CSOListRules.h:57
static CSORemoveEmptyGroupHandling getDefaultRemoveEmptyGroupHandling()
Returns the default removal handling for a CSOList.
Definition: CSOListRules.h:64
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition: CSOList.h:61
CSORemoveEmptyGroupHandling
Enumeration for empty groups removal.
Definition: CSOListRules.h:31
@ REMOVE_EMPTY_ALWAYS
Definition: CSOListRules.h:32
@ NUM_REMOVE_EMPTY_MODES
Definition: CSOListRules.h:34
@ REMOVE_EMPTY_NEVER
Definition: CSOListRules.h:33