KWStyle - itkBloxBoundaryPointItem.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkBloxBoundaryPointItem.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:33 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 #ifndef __itkBloxBoundaryPointItem_h
18 #define __itkBloxBoundaryPointItem_h
19
20 #include "itkCovariantVector.h"
21 #include "itkPoint.h"
22 #include "itkBloxItem.h"
23
24 namespace itk
25 {
26
27 /**
28  * \class BloxBoundaryPointItem
29  * \brief A boundary point, stored in a BloxPixel.
30  * \ingroup ImageObjects
31  *
32  * */
33
34 template <unsigned int VImageDimension>
35 class ITK_EXPORT BloxBoundaryPointItem: public BloxItem
36 {
37 public:
38 LEN   /** The type of vector used to store the position of the BoundaryPointItem * */
39   typedef Point<double, VImageDimension> PositionType;
40   
41 LEN   /** The type of vector used to store the gradient of the BoundaryPointItem * */
42   typedef CovariantVector<double, VImageDimension> GradientType;
43
44   /** Set the position of the boundary point in physical space * */
45   void SetPhysicalPosition(PositionType physPos){m_PhysicalPosition = physPos;};
46
47   /** Get the position of the boundary point in physical space * */
48   PositionType GetPhysicalPosition(){return m_PhysicalPosition;};
49
50   /** Set the gradient of the boundary point * */
51   void SetGradient(GradientType grad){m_Gradient = grad;};
52
53   /** Get the gradient of the boundary point * */
54   GradientType GetGradient(){return m_Gradient;};
55   
56   BloxBoundaryPointItem();
57   ~BloxBoundaryPointItem();
58
59 private:
60
61   /** The position of the boundary point in the coordinate system of the
62    * physical image in which the boundary pixel was located * */
63   PositionType m_PhysicalPosition;
64
65   /** The gradient of the boundary point (non-normalized) * */
66   GradientType m_Gradient;
67
68 };
69
70 // end namespace itk
71
72
73 #ifndef ITK_MANUAL_INSTANTIATION
74 #include "itkBloxBoundaryPointItem.txx"
75 #endif
76
77 #endif
78

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:00PM
© Kitware Inc.