Medical Imaging Interaction Toolkit  2025.12.02
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
30  {
31  public:
35 
36  //##Documentation
37  //## @brief Standard Destructor
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
#define MITKCORE_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Predicate that evaluates if the given DataNodes data object has the specified dimension,...
mitkNewMacro1Param(NodePredicateDimension, unsigned int)
mitkClassMacro(NodePredicateDimension, NodePredicateBase)
~NodePredicateDimension() override
Standard Destructor.
bool CheckNode(const mitk::DataNode *node) const override
Checks if the nodes data object is of the specified dimension.
NodePredicateDimension(unsigned int dimension, int pixelComponents)
Standard Constructor.
NodePredicateDimension(unsigned int dimension)
Standard Constructor.
mitkNewMacro2Param(NodePredicateDimension, unsigned int, int)
Find image slices visible on a given plane.