Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkNodePredicateCompositeBase.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkNodePredicateCompositeBase_h
14
#define mitkNodePredicateCompositeBase_h
15
16
#include "
mitkNodePredicateBase.h
"
17
#include <list>
18
19
namespace
mitk
20
{
21
//##Documentation
22
//## @brief Base class for all predicates that can have child predicates (e.g. AND/OR)
23
//##
24
//## This class provides methods to add and remove child predicates. It is used for
25
//## predicates that are compositions of other predicates like AND and OR.
26
//##
27
//## @ingroup DataStorage
28
class
MITKCORE_EXPORT
NodePredicateCompositeBase
:
public
NodePredicateBase
29
{
30
public
:
31
mitkClassMacro
(
NodePredicateCompositeBase
,
NodePredicateBase
);
32
33
typedef
std::list<NodePredicateBase::ConstPointer>
ChildPredicates
;
34
35
//##Documentation
36
//## @brief Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class
37
~
NodePredicateCompositeBase
()
override
= 0;
38
39
//##Documentation
40
//## @brief Adds a child predicate
41
virtual
void
AddPredicate(
const
NodePredicateBase
*p);
42
43
//##Documentation
44
//## @brief Removes a child predicate
45
virtual
void
RemovePredicate(
const
NodePredicateBase
*p);
46
47
//##Documentation
48
//## @brief Return all child predicates (immutable).
49
virtual
ChildPredicates
GetPredicates()
const
;
50
51
protected
:
52
//##Documentation
53
//## @brief list of child predicates
54
ChildPredicates
m_ChildPredicates
;
55
};
56
57
}
// namespace mitk
58
59
#endif
mitk::NodePredicateCompositeBase::ChildPredicates
std::list< NodePredicateBase::ConstPointer > ChildPredicates
Definition:
mitkNodePredicateCompositeBase.h:31
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition:
mitkNodePredicateBase.h:35
mitkNodePredicateBase.h
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::NodePredicateCompositeBase
Base class for all predicates that can have child predicates (e.g. AND/OR)
Definition:
mitkNodePredicateCompositeBase.h:28
mitk::NodePredicateCompositeBase::m_ChildPredicates
ChildPredicates m_ChildPredicates
list of child predicates
Definition:
mitkNodePredicateCompositeBase.h:54
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkNodePredicateCompositeBase.h
Generated on Mon Dec 23 2024 02:13:20 for Medical Imaging Interaction Toolkit by
1.8.17