00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkBloxCoreAtomItem_h
00018 #define __itkBloxCoreAtomItem_h
00019
00020 #include "vnl/vnl_vector_fixed.h"
00021 #include "itkBloxBoundaryPointItem.h"
00022 #include "itkBloxItem.h"
00023
00024 namespace itk
00025 {
00026
00038 template <unsigned int VImageDimension>
00039 class ITK_EXPORT BloxCoreAtomItem: public BloxItem
00040 {
00041 public:
00043 typedef Point<double, VImageDimension> PositionType;
00044
00046 typedef BloxBoundaryPointItem<VImageDimension> BPItemType;
00047
00049 void SetBoundaryPointA(BPItemType* pointA)
00050 { m_BoundaryPointA = pointA; }
00051
00053 BPItemType* GetBoundaryPointA()
00054 { return m_BoundaryPointA; }
00055
00057 void SetBoundaryPointB(BPItemType* pointB)
00058 { m_BoundaryPointB = pointB; }
00059
00061 BPItemType* GetBoundaryPointB()
00062 { return m_BoundaryPointB; }
00063
00065 void SetCenterPosition(PositionType pos)
00066 { m_CenterPosition = pos; }
00067
00069 PositionType GetCenterPosition()
00070 {return m_CenterPosition; }
00071
00073 void SetDiameter(double diameter)
00074 { m_Diameter = diameter; }
00075
00077 double GetDiameter()
00078 {return m_Diameter; }
00079
00086 void CalcCenterAndDiameter();
00087
00088 BloxCoreAtomItem();
00089 ~BloxCoreAtomItem();
00090
00091 private:
00093 PositionType m_CenterPosition;
00094
00097 double m_Diameter;
00098
00100 BPItemType* m_BoundaryPointA;
00101
00103 BPItemType* m_BoundaryPointB;
00104
00105 };
00106
00107 }
00108
00109
00110 #define ITK_TEMPLATE_BloxCoreAtomItem(_, EXPORT, x, y) namespace itk { \
00111 _(1(class EXPORT BloxCoreAtomItem< ITK_TEMPLATE_1 x >)) \
00112 namespace Templates { typedef BloxCoreAtomItem< ITK_TEMPLATE_1 x > \
00113 BloxCoreAtomItem##y; } \
00114 }
00115
00116 #if ITK_TEMPLATE_EXPLICIT
00117 # include "Templates/itkBloxCoreAtomItem+-.h"
00118 #endif
00119
00120 #if ITK_TEMPLATE_TXX
00121 # include "itkBloxCoreAtomItem.txx"
00122 #endif
00123
00124 #endif
00125