Orfeo Toolbox  3.16
itkLineSpatialObjectPoint.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkLineSpatialObjectPoint.txx,v $
5  Language: C++
6  Date: $Date: 2004-09-09 22:29:19 $
7  Version: $Revision: 1.10 $
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 __itkLineSpatialObjectPoint_txx
18 #define __itkLineSpatialObjectPoint_txx
19 
21 
22 namespace itk
23 {
24 
26 template< unsigned int TPointDimension >
29 {
30  this->m_ID = 0;
31  for(unsigned int i=0;i<TPointDimension-1;i++)
32  {
33  VectorType normal;
34  normal.Fill(0);
35  m_NormalArray[i]=normal;
36  }
37 }
38 
40 template< unsigned int TPointDimension >
43 {
44 }
45 
47 template< unsigned int TPointDimension >
50 ::GetNormal(unsigned int index) const
51 {
52  return m_NormalArray[index];
53 }
54 
56 template< unsigned int TPointDimension >
57 void
59 ::PrintSelf( std::ostream& os, Indent indent ) const
60 {
61  Superclass::PrintSelf(os,indent);
62  os << indent << "LineSpatialObjectPoint(" << this << ")" << std::endl;
63  for(unsigned int i=0;i<TPointDimension-1;i++)
64  {
65  os << indent << m_NormalArray[i] << std::endl;
66  }
67 }
68 
70 template< unsigned int TPointDimension >
71 void
73 ::SetNormal(VectorType & normal , unsigned int index )
74 {
75  m_NormalArray[index] = normal;
76 }
77 
79 template< unsigned int TPointDimension >
83 {
84  this->m_ID = rhs.m_ID;
85  this->m_X = rhs.m_X;
86  return * this;
87 }
88 
89 } // end namespace itk
90 
91 #endif

Generated at Sat Jun 15 2013 23:52:18 for Orfeo Toolbox with doxygen 1.8.3.1