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 {};
00087
00089 virtual TimeStepType ComputeGlobalTimeStep( void* ) const
00090 { return m_TimeStep; }
00091
00093 void SetTimeStep( const TimeStepType &ts )
00094 { m_TimeStep = ts; }
00095
00097 TimeStepType GetTimeStep() const
00098 { return m_TimeStep; }
00099
00100 protected:
00101 NormalVectorFunctionBase();
00102 ~NormalVectorFunctionBase() {}
00103 virtual void PrintSelf(std::ostream& os, Indent indent) const;
00104
00105 private:
00107 TimeStepType m_TimeStep;
00108
00109 NormalVectorFunctionBase(const Self&);
00110 void operator=(const Self&);
00111 };
00112
00113 }
00114
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkNormalVectorFunctionBase.txx"
00117 #endif
00118
00119 #endif
00120