00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkNormalVectorFunctionBase_h_
00018 #define __itkNormalVectorFunctionBase_h_
00019
00020 #include "itkFiniteDifferenceSparseImageFunction.h"
00021
00022 namespace itk {
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 template <class TSparseImageType>
00050 class ITK_EXPORT NormalVectorFunctionBase
00051 :public FiniteDifferenceSparseImageFunction<TSparseImageType>
00052 {
00053 public:
00055 typedef NormalVectorFunctionBase Self;
00056 typedef FiniteDifferenceSparseImageFunction<TSparseImageType> Superclass;
00057 typedef SmartPointer<Self> Pointer;
00058 typedef SmartPointer<const Self> ConstPointer;
00059
00061 itkTypeMacro( NormalVectorFunctionBase, FiniteDifferenceSparseImageFunction );
00062
00064 itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
00065
00067 typedef typename Superclass::TimeStepType TimeStepType;
00068 typedef typename Superclass::RadiusType RadiusType;
00069 typedef typename Superclass::NeighborhoodType NeighborhoodType;
00070 typedef typename Superclass::FloatOffsetType FloatOffsetType;
00071 typedef typename Superclass::IndexType IndexType;
00072 typedef typename Superclass::SparseImageType SparseImageType;
00073
00075 typedef typename SparseImageType::NodeType NodeType;
00076
00078 typedef typename NodeType::NodeValueType NodeValueType;
00079
00081 typedef typename NodeType::NodeDataType NormalVectorType;
00082
00084 virtual void *GetGlobalDataPointer() const {return 0;}
00085 virtual void ReleaseGlobalDataPointer( void* ) const {};
00086
00088 virtual TimeStepType ComputeGlobalTimeStep( void* ) const
00089 { return m_TimeStep; }
00090
00092 void SetTimeStep( const TimeStepType &ts )
00093 { m_TimeStep = ts; }
00094
00096 TimeStepType GetTimeStep() const
00097 { return m_TimeStep; }
00098
00099 protected:
00100 NormalVectorFunctionBase();
00101 ~NormalVectorFunctionBase() {}
00102 virtual void PrintSelf(std::ostream& os, Indent indent) const;
00103
00104 private:
00106 TimeStepType m_TimeStep;
00107
00108 NormalVectorFunctionBase(const Self&);
00109 void operator=(const Self&);
00110 };
00111
00112 }
00113
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkNormalVectorFunctionBase.txx"
00116 #endif
00117
00118 #endif