00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 7704 $ 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 #ifndef UNSTRUCTURED_GIRD_HISTOGRAM_H_HEADER_INCLUDED 00019 #define UNSTRUCTURED_GIRD_HISTOGRAM_H_HEADER_INCLUDED 00020 00021 #include <itkHistogram.h> 00022 #include "MitkExtExports.h" 00023 #include "mitkUnstructuredGrid.h" 00024 00025 namespace mitk { 00026 00027 //##Documentation 00028 //## @brief Subclass of itk::Histogram, specialized for a mitk::UnstructuredGrid 00029 //## 00030 class MitkExt_EXPORT UnstructuredGridHistogram : public itk::Statistics::Histogram<double> 00031 { 00032 public: 00033 mitkClassMacro(UnstructuredGridHistogram,itk::Statistics::Histogram<double>); 00034 00035 itkNewMacro(Self); 00036 00037 void Initialize(mitk::UnstructuredGrid*); 00038 00039 void SetUsePointData() { m_UsePointData = true; } 00040 void SetUseCellData() { m_UsePointData = false; } 00041 00042 protected: 00043 UnstructuredGridHistogram() : m_UsePointData(true) {} 00044 00045 virtual ~UnstructuredGridHistogram(); 00046 00047 bool m_UsePointData; 00048 }; 00049 00050 } // namespace mitk 00051 00052 #endif /* UNSTRUCTURED_GIRD_HISTOGRAM_H_HEADER_INCLUDED */