Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKNODEPREDICATEDIMENSION_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATEDIMENSION_H_HEADER_INCLUDED_
19 
20 #include "mitkNodePredicateBase.h"
21 
22 namespace mitk
23 {
24  class BaseData;
25 
26  //##Documentation
27  //## @brief Predicate that evaluates if the given DataNodes data object
28  //## has the specified dimension, for datasets where dimension is
29  //## applicable.
30  //##
31  //## Evaluates to "false" for unsupported datasets.
32  //## @ingroup DataStorage
34  {
35  public:
39 
40  //##Documentation
41  //## @brief Standard Destructor
42  virtual ~NodePredicateDimension();
43 
44  //##Documentation
45  //## @brief Checks if the nodes data object is of the specified dimension
46  virtual bool CheckNode(const mitk::DataNode *node) const override;
47 
48  protected:
49  //##Documentation
50  //## @brief Standard Constructor
51  NodePredicateDimension(unsigned int dimension);
52 
53  //##Documentation
54  //## @brief Standard Constructor
55  NodePredicateDimension(unsigned int dimension, int pixelComponents);
56 
57  unsigned int m_Dimension;
58  std::size_t m_PixelComponents;
59  };
60 } // namespace mitk
61 
62 #endif /* MITKNodePredicateDimension_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
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:89
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66