Medical Imaging Interaction Toolkit  2026.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 
33  {
34  public:
38 
41 
47  bool CheckNode(const mitk::DataNode *node) const override;
48 
49  protected:
54  NodePredicateDimension(unsigned int dimension);
55 
61  NodePredicateDimension(unsigned int dimension, int pixelComponents);
62 
63  unsigned int m_Dimension;
64  std::size_t m_PixelComponents;
65  };
66 } // namespace mitk
67 
68 #endif
#define MITKCORE_EXPORT
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.
Predicate that evaluates if the given DataNode's 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 node's data object has the specified dimension.
NodePredicateDimension(unsigned int dimension, int pixelComponents)
Constructor with dimension and pixel component count.
NodePredicateDimension(unsigned int dimension)
Constructor with dimension only (pixel components defaults to 1).
mitkNewMacro2Param(NodePredicateDimension, unsigned int, int)
Find image slices visible on a given plane.