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

itkBloxBoundaryPointItem.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBloxBoundaryPointItem.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:07 $
00007   Version:   $Revision: 1.14 $
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 __itkBloxBoundaryPointItem_h
00018 #define __itkBloxBoundaryPointItem_h
00019 
00020 #include "itkCovariantVector.h"
00021 #include "itkPoint.h"
00022 #include "itkBloxItem.h"
00023 
00024 namespace itk
00025 {
00026 
00034 template <unsigned int VImageDimension>
00035 class ITK_EXPORT BloxBoundaryPointItem: public BloxItem
00036 {
00037 public:
00040   typedef Point<double, VImageDimension> PositionType;
00041 
00044   typedef CovariantVector<double, VImageDimension> GradientType;
00045 
00047   void SetPhysicalPosition(PositionType physPos)
00048     {
00049     m_PhysicalPosition = physPos;
00050     }
00051 
00053   PositionType GetPhysicalPosition()
00054     {
00055     return m_PhysicalPosition;
00056     }
00057 
00059   void SetGradient(GradientType grad)
00060     {
00061     m_Gradient = grad;
00062     }
00063 
00065   GradientType GetGradient()
00066     {
00067     return m_Gradient;
00068     }
00069 
00070   BloxBoundaryPointItem();
00071   ~BloxBoundaryPointItem();
00072 
00073 private:
00074 
00077   PositionType m_PhysicalPosition;
00078 
00080   GradientType m_Gradient;
00081 
00082 };
00083 
00084 } // end namespace itk
00085 
00086 // Define instantiation macro for this template.
00087 #define ITK_TEMPLATE_BloxBoundaryPointItem(_, EXPORT, x, y) namespace itk { \
00088   _(1(class EXPORT BloxBoundaryPointItem< ITK_TEMPLATE_1 x >)) \
00089   namespace Templates { typedef BloxBoundaryPointItem< ITK_TEMPLATE_1 x > \
00090                                             BloxBoundaryPointItem##y; } \
00091   }
00092 
00093 #if ITK_TEMPLATE_EXPLICIT
00094 # include "Templates/itkBloxBoundaryPointItem+-.h"
00095 #endif
00096 
00097 #if ITK_TEMPLATE_TXX
00098 # include "itkBloxBoundaryPointItem.txx"
00099 #endif
00100 
00101 #endif
00102 

Generated at Tue Jul 29 19:18:49 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000