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

itkSampleAlgorithmBase.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSampleAlgorithmBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/15 01:00:46 $ 00007 Version: $Revision: 1.6 $ 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 00018 #ifndef __itkSampleAlgorithmBase_h 00019 #define __itkSampleAlgorithmBase_h 00020 00021 #include <vnl/vnl_vector.h> 00022 #include <vnl/vnl_matrix.h> 00023 00024 #include "itkMacro.h" 00025 #include "itkObjectFactory.h" 00026 #include "itkObject.h" 00027 00028 namespace itk{ 00029 namespace Statistics{ 00030 00043 template< class TInputSample > 00044 class ITK_EXPORT SampleAlgorithmBase : public Object 00045 { 00046 public: 00048 typedef SampleAlgorithmBase Self; 00049 typedef Object Superclass ; 00050 typedef SmartPointer< Self > Pointer; 00051 typedef SmartPointer< const Self > ConstPointer; 00052 00054 itkTypeMacro(SampleAlgorithmBase, Object); 00055 itkNewMacro(Self) ; 00056 00058 typedef TInputSample InputSampleType ; 00059 00061 void SetInputSample( const TInputSample * sample ) 00062 { 00063 if ( m_InputSample != sample ) 00064 { 00065 m_InputSample = sample ; 00066 this->Modified() ; 00067 } 00068 } 00069 00070 const TInputSample * GetInputSample() const 00071 { return m_InputSample.GetPointer() ; } 00072 00076 void Update() 00077 { this->GenerateData() ; } 00078 00079 protected: 00080 SampleAlgorithmBase() ; 00081 virtual ~SampleAlgorithmBase() {} 00082 void PrintSelf(std::ostream& os, Indent indent) const; 00083 00085 virtual void GenerateData() ; 00086 00087 private: 00089 typename TInputSample::ConstPointer m_InputSample ; 00090 } ; // end of class 00091 00092 } // end of namespace Statistics 00093 } // end of namespace itk 00094 00095 #ifndef ITK_MANUAL_INSTANTIATION 00096 #include "itkSampleAlgorithmBase.txx" 00097 #endif 00098 00099 #endif 00100

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