Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkSample.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSample.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/09 16:53:08 $ 00007 Version: $Revision: 1.19 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 #ifndef __itkSample_h 00018 #define __itkSample_h 00019 00020 #include <vector> 00021 00022 #include "itkMacro.h" 00023 #include "itkPoint.h" 00024 #include "itkSize.h" 00025 #include "itkObject.h" 00026 #include "itkFixedArray.h" 00027 00028 namespace itk{ 00029 namespace Statistics{ 00030 00076 template < class TMeasurementVector > 00077 class ITK_EXPORT Sample : public Object 00078 { 00079 public: 00081 typedef Sample Self; 00082 typedef Object Superclass ; 00083 typedef SmartPointer< Self > Pointer ; 00084 typedef SmartPointer<const Self> ConstPointer; 00085 00087 itkTypeMacro(Sample, Object); 00088 00090 typedef TMeasurementVector MeasurementVectorType ; 00091 00093 typedef typename TMeasurementVector::ValueType MeasurementType ; 00094 00096 typedef float FrequencyType ; 00097 00101 typedef unsigned long InstanceIdentifier ; 00102 00103 itkStaticConstMacro( MeasurementVectorSize, unsigned int, 00104 TMeasurementVector::Length ) ; 00105 00106 virtual unsigned int Size() const = 0 ; 00107 00109 virtual const MeasurementVectorType & GetMeasurementVector(const InstanceIdentifier &id) const = 0 ; 00110 00112 virtual FrequencyType GetFrequency(const InstanceIdentifier &id) const = 0 ; 00113 00115 virtual FrequencyType GetTotalFrequency() const 00116 = 0 ; 00117 00118 00119 protected: 00120 Sample() {} 00121 virtual ~Sample() {} 00122 void PrintSelf(std::ostream& os, Indent indent) const 00123 { 00124 Superclass::PrintSelf(os,indent); 00125 } 00126 00127 00128 private: 00129 Sample(const Self&) ; //purposely not implemented 00130 void operator=(const Self&) ; //purposely not implemented 00131 } ; // end of class 00132 00133 } // end of namespace Statistics 00134 } // end of namespace itk 00135 00136 #endif

Generated at Sun Apr 1 02:42:34 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000