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
23
24class CSO;
25class CSOList;
26
28
36
38
42{
43
44public:
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
66private:
67
69 CSORemoveEmptyGroupHandling _removeEmptyGroupHandling;
70};
71
73
#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 groups.
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 groups removal.
@ REMOVE_EMPTY_ALWAYS
@ NUM_REMOVE_EMPTY_MODES
@ REMOVE_EMPTY_NEVER