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

itkBloxCoreAtomItem.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBloxCoreAtomItem.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-01-30 20:56:07 $
00007   Version:   $Revision: 1.12 $
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 __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 } // end namespace itk
00108 
00109 // Define instantiation macro for this template.
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 

Generated at Mon Apr 14 11:49:37 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000