MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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
23
24class CSO;
25class CSOList;
26
28
35
37
41{
42
43public:
48
50 void reset();
51
54 {
55 _removeEmptyGroupHandling = handling;
56 }
59 {
60 return _removeEmptyGroupHandling;
61 }
62
63
65 void applyTo(CSOList& csoList);
66
72
73private:
75 CSORemoveEmptyGroupHandling _removeEmptyGroupHandling;
76};
77
79
#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.
void applyTo(CSOList &csoList)
Applies the rules to the csoList.
~CSOListRules()
Destructor.
CSOListRules()
Constructor.
void setRemoveEmptyGroupHandling(CSORemoveEmptyGroupHandling handling)
Sets the handling mode for empty CSOGroups.
void reset()
Sets default values to all members.
CSORemoveEmptyGroupHandling getRemoveEmptyGroupHandling() const
Returns the _removeEmptyGroupHandling mode.
static CSORemoveEmptyGroupHandling getDefaultRemoveEmptyGroupHandling()
Returns the default removal handling for a CSOList.
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition CSOList.h:61
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
CSORemoveEmptyGroupHandling
Enumeration for empty CSOGroups removal.
@ REMOVE_EMPTY_ALWAYS
@ NUM_REMOVE_EMPTY_MODES
@ REMOVE_EMPTY_NEVER