00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 11215 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MITKNODEPREDICATEDIMENSION_H_HEADER_INCLUDED_ 00020 #define MITKNODEPREDICATEDIMENSION_H_HEADER_INCLUDED_ 00021 00022 #include "mitkNodePredicateBase.h" 00023 00024 namespace mitk { 00025 class BaseData; 00026 00027 //##Documentation 00028 //## @brief Predicate that evaluates if the given DataNodes data object 00029 //## has the specified dimension, for datasets where dimension is 00030 //## applicable. 00031 //## 00032 //## Evaluates to "false" for unsupported datasets. 00033 //## @ingroup DataStorage 00034 class MITK_CORE_EXPORT NodePredicateDimension : public NodePredicateBase 00035 { 00036 public: 00037 mitkClassMacro(NodePredicateDimension, NodePredicateBase); 00038 mitkNewMacro1Param(NodePredicateDimension, unsigned int); 00039 mitkNewMacro2Param(NodePredicateDimension, unsigned int, int); 00040 00041 //##Documentation 00042 //## @brief Standard Destructor 00043 virtual ~NodePredicateDimension(); 00044 00045 //##Documentation 00046 //## @brief Checks if the nodes data object is of the specified dimension 00047 virtual bool CheckNode(const mitk::DataNode* node) const; 00048 00049 protected: 00050 00051 //##Documentation 00052 //## @brief Standard Constructor 00053 NodePredicateDimension(unsigned int dimension); 00054 00055 //##Documentation 00056 //## @brief Standard Constructor 00057 NodePredicateDimension(unsigned int dimension, int pixelComponents); 00058 00059 unsigned int m_Dimension; 00060 int m_PixelComponents; 00061 }; 00062 } // namespace mitk 00063 00064 #endif /* MITKNodePredicateDimension_H_HEADER_INCLUDED_ */ 00065