Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
mitkNodePredicateDimension.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 mitkNodePredicateDimension_h
14
#define mitkNodePredicateDimension_h
15
16
#include "
mitkNodePredicateBase.h
"
17
18
namespace
mitk
19
{
20
class
BaseData;
21
22
//##Documentation
23
//## @brief Predicate that evaluates if the given DataNodes data object
24
//## has the specified dimension, for datasets where dimension is
25
//## applicable.
26
//##
27
//## Evaluates to "false" for unsupported datasets.
28
//## @ingroup DataStorage
29
class
MITKCORE_EXPORT
NodePredicateDimension
:
public
NodePredicateBase
30
{
31
public
:
32
mitkClassMacro
(
NodePredicateDimension
,
NodePredicateBase
);
33
mitkNewMacro1Param
(
NodePredicateDimension
,
unsigned
int
);
34
mitkNewMacro2Param
(
NodePredicateDimension
,
unsigned
int
,
int
);
35
36
//##Documentation
37
//## @brief Standard Destructor
38
~
NodePredicateDimension
()
override
;
39
40
//##Documentation
41
//## @brief Checks if the nodes data object is of the specified dimension
42
bool
CheckNode(
const
mitk::DataNode
*node)
const override
;
43
44
protected
:
45
//##Documentation
46
//## @brief Standard Constructor
47
NodePredicateDimension
(
unsigned
int
dimension);
48
49
//##Documentation
50
//## @brief Standard Constructor
51
NodePredicateDimension
(
unsigned
int
dimension,
int
pixelComponents);
52
53
unsigned
int
m_Dimension
;
54
std::size_t
m_PixelComponents
;
55
};
56
}
// namespace mitk
57
58
#endif
mitk::NodePredicateDimension
Predicate that evaluates if the given DataNodes data object has the specified dimension,...
Definition:
mitkNodePredicateDimension.h:29
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition:
mitkCommon.h:81
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition:
mitkCommon.h:68
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::NodePredicateDimension::m_Dimension
unsigned int m_Dimension
Definition:
mitkNodePredicateDimension.h:53
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitk::NodePredicateDimension::m_PixelComponents
std::size_t m_PixelComponents
Definition:
mitkNodePredicateDimension.h:54
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
src
MITK
Modules
Core
include
mitkNodePredicateDimension.h
Generated on Mon Jun 17 2024 12:43:27 for Medical Imaging Interaction Toolkit by
1.8.17