Medical Imaging Interaction Toolkit  2021.10.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_HEADER_INCLUDED_
14 #define MITKNODEPREDICATEDIMENSION_H_HEADER_INCLUDED_
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
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 /* MITKNodePredicateDimension_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
Predicate that evaluates if the given DataNodes data object has the specified dimension, for datasets where dimension is applicable.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57