Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
SpatialObject
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
20
#include "
itkLineSpatialObjectPoint.h
"
21
22
namespace
itk
23
{
24
26
template
<
unsigned
int
TPo
int
Dimension >
27
LineSpatialObjectPoint< TPointDimension >
28
::LineSpatialObjectPoint
(
void
)
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
TPo
int
Dimension >
41
LineSpatialObjectPoint< TPointDimension >
42
::~LineSpatialObjectPoint
(
void
)
43
{
44
}
45
47
template
<
unsigned
int
TPo
int
Dimension >
48
const
typename
LineSpatialObjectPoint< TPointDimension >::VectorType
&
49
LineSpatialObjectPoint< TPointDimension >
50
::GetNormal
(
unsigned
int
index)
const
51
{
52
return
m_NormalArray[index];
53
}
54
56
template
<
unsigned
int
TPo
int
Dimension >
57
void
58
LineSpatialObjectPoint< TPointDimension >
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
TPo
int
Dimension >
71
void
72
LineSpatialObjectPoint< TPointDimension >
73
::SetNormal
(
VectorType
& normal ,
unsigned
int
index )
74
{
75
m_NormalArray[index] = normal;
76
}
77
79
template
<
unsigned
int
TPo
int
Dimension >
80
typename
LineSpatialObjectPoint< TPointDimension >::Self
&
81
LineSpatialObjectPoint< TPointDimension >
82
::operator=
(
const
LineSpatialObjectPoint
& rhs)
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