ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Filtering
Path
include
itkPolyLineParametricPath.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
#ifndef __itkPolyLineParametricPath_h
19
#define __itkPolyLineParametricPath_h
20
21
#include "
itkParametricPath.h
"
22
#include "
itkVectorContainer.h
"
23
#include "
itkIndex.h
"
24
25
namespace
itk
26
{
55
template
<
unsigned
int
VDimension >
56
class
ITK_EXPORT
PolyLineParametricPath
:
public
57
ParametricPath
< VDimension >
58
{
59
public
:
61
typedef
PolyLineParametricPath
Self
;
62
typedef
ParametricPath< VDimension >
Superclass
;
63
typedef
SmartPointer< Self >
Pointer
;
64
typedef
SmartPointer< const Self >
ConstPointer
;
65
67
itkTypeMacro(
PolyLineParametricPath
,
ParametricPath
);
68
70
typedef
typename
Superclass::InputType
InputType
;
71
73
typedef
typename
Superclass::OutputType
OutputType
;
74
76
typedef
ContinuousIndex< double, VDimension >
ContinuousIndexType
;
77
typedef
Index< VDimension >
IndexType
;
78
typedef
Offset< VDimension >
OffsetType
;
79
typedef
Point< double, VDimension >
PointType
;
80
typedef
Vector< double, VDimension >
VectorType
;
81
typedef
ContinuousIndexType
VertexType
;
82
typedef
VectorContainer< unsigned, VertexType >
VertexListType
;
83
typedef
typename
VertexListType::Pointer
VertexListPointer
;
84
86
virtual
OutputType
Evaluate(
const
InputType
& input)
const
;
87
90
//virtual VectorType EvaluateDerivative(const InputType & input) const;
91
96
inline
void
AddVertex(
const
ContinuousIndexType
& vertex)
97
{
98
m_VertexList->InsertElement(m_VertexList->Size(), vertex);
99
this->Modified();
100
}
102
106
virtual
inline
InputType
EndOfInput()
const
107
{
108
return
m_VertexList->Size() - 1;
109
}
110
112
itkNewMacro(Self);
113
115
virtual
void
Initialize(
void
)
116
{
117
m_VertexList->Initialize();
118
}
119
121
itkGetConstObjectMacro(VertexList, VertexListType);
122
123
protected
:
124
PolyLineParametricPath
();
125
~PolyLineParametricPath
(){}
126
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
127
128
private
:
129
PolyLineParametricPath
(
const
Self &);
//purposely not implemented
130
void
operator=(
const
Self &);
//purposely not implemented
131
132
VertexListPointer
m_VertexList
;
133
};
134
}
// end namespace itk
135
136
#ifndef ITK_MANUAL_INSTANTIATION
137
#include "itkPolyLineParametricPath.hxx"
138
#endif
139
140
#endif
141
Generated on Sun Dec 9 2012 01:22:59 for ITK by
1.8.2