ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Filtering
Path
include
itkOrthogonallyCorrected2DParametricPath.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 __itkOrthogonallyCorrected2DParametricPath_h
19
#define __itkOrthogonallyCorrected2DParametricPath_h
20
21
#include "
itkParametricPath.h
"
22
#include "
itkVectorContainer.h
"
23
#include "
itkIndex.h
"
24
25
namespace
itk
26
{
44
class
ITK_EXPORT
OrthogonallyCorrected2DParametricPath
:
public
45
ParametricPath
< 2 >
46
{
47
public
:
49
typedef
OrthogonallyCorrected2DParametricPath
Self
;
50
typedef
ParametricPath< 2 >
Superclass
;
51
typedef
SmartPointer< Self >
Pointer
;
52
typedef
SmartPointer< const Self >
ConstPointer
;
53
55
itkTypeMacro(
OrthogonallyCorrected2DParametricPath
,
ParametricPath
);
56
58
typedef
Superclass::InputType
InputType
;
59
61
typedef
Superclass::OutputType
OutputType
;
62
64
typedef
ContinuousIndex< double, 2 >
ContinuousIndexType
;
65
typedef
Index< 2 >
IndexType
;
66
typedef
Offset< 2 >
OffsetType
;
67
typedef
Superclass::VectorType
VectorType
;
68
typedef
ParametricPath< 2 >
OriginalPathType
;
69
typedef
OriginalPathType::ConstPointer
OriginalPathConstPointer
;
70
typedef
VectorContainer< unsigned, double >
OrthogonalCorrectionTableType
;
71
typedef
OrthogonalCorrectionTableType::Pointer
OrthogonalCorrectionTablePointer
;
72
73
typedef
OrthogonalCorrectionTableType::ElementIdentifier
OrthogonalCorrectionTableSizeType
;
74
76
virtual
OutputType
Evaluate(
const
InputType
& input)
const
;
77
82
// The usual itkSetObjectMacro can not be used here because
83
// m_DefaultInputStepSize must also be copied over.
84
void
SetOriginalPath(
const
OriginalPathType
*originalPath);
85
87
itkSetObjectMacro(OrthogonalCorrectionTable,
OrthogonalCorrectionTableType
)
88
89
90
itkNewMacro(
Self
);
91
93
virtual
void
Initialize(
void
)
94
{
95
this->m_OriginalPath =
NULL
;
96
this->m_OrthogonalCorrectionTable =
NULL
;
97
}
98
100
virtual
inline
InputType
StartOfInput()
const
101
{
102
return
m_OriginalPath->StartOfInput();
103
}
104
105
virtual
inline
InputType
EndOfInput()
const
106
{
107
return
m_OriginalPath->EndOfInput();
108
}
109
110
protected
:
111
OrthogonallyCorrected2DParametricPath
();
112
~OrthogonallyCorrected2DParametricPath
(){}
113
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
114
115
private
:
116
OrthogonallyCorrected2DParametricPath
(
const
Self &);
//purposely not
117
// implemented
118
void
operator=(
const
Self &);
//purposely not
119
// implemented
120
121
OriginalPathConstPointer
m_OriginalPath
;
122
OrthogonalCorrectionTablePointer
m_OrthogonalCorrectionTable
;
123
};
124
}
// namespace itk
125
126
#endif
127
Generated on Mon May 13 2013 01:03:31 for ITK by
1.8.3.1