11/* =========================================================================
22
3- Program: Insight Segmentation & Registration Toolkit
4- Module: $RCSfile: itkSpeedFunctionPathInformation.hxx,v $
5- Language: C++
6- Date: $Date$
7- Version: $Revision$
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.
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+ * Program: Insight Segmentation & Registration Toolkit
19+ * Module: $RCSfile: itkSpeedFunctionPathInformation.hxx,v $
20+ * Language: C++
21+ * Date: $Date$
22+ * Version: $Revision$
23+
24+ * Copyright (c) Insight Software Consortium. All rights reserved.
25+ * See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
26+
27+ * This software is distributed WITHOUT ANY WARRANTY; without even
28+ * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29+ * PURPOSE. See the above copyright notices for more information.
1530
1631=========================================================================*/
1732
18- #ifndef __itkSpeedFunctionPathInformation_hxx
19- #define __itkSpeedFunctionPathInformation_hxx
33+ #ifndef itkSpeedFunctionPathInformation_hxx
34+ #define itkSpeedFunctionPathInformation_hxx
2035
2136#include " itkSpeedFunctionPathInformation.h"
2237
2338namespace itk
2439{
2540
26- template <class TPoint >
41+ template <typename TPoint>
2742SpeedFunctionPathInformation<TPoint>
2843::SpeedFunctionPathInformation ()
2944{
3045 this ->ClearInfo ();
3146}
3247
33- template <class TPoint >
48+
49+ template <typename TPoint>
3450SpeedFunctionPathInformation<TPoint>
3551::~SpeedFunctionPathInformation ()
3652{
3753}
3854
39- template <class TPoint >
55+
56+ template <typename TPoint>
4057void SpeedFunctionPathInformation<TPoint>
4158::ClearInfo ()
4259{
@@ -45,84 +62,95 @@ void SpeedFunctionPathInformation<TPoint>
4562 m_Front = 1 ;
4663}
4764
48- template <class TPoint >
65+
66+ template <typename TPoint>
4967void SpeedFunctionPathInformation<TPoint>
5068::SetStartPoint ( const PointType & start )
5169{
5270 m_Info[1 ] = start;
5371}
5472
55- template <class TPoint >
73+
74+ template <typename TPoint>
5675void SpeedFunctionPathInformation<TPoint>
5776::SetEndPoint ( const PointType & end )
5877{
5978 m_Info[0 ] = end;
6079}
6180
62- template <class TPoint >
81+
82+ template <typename TPoint>
6383void SpeedFunctionPathInformation<TPoint>
6484::AddWayPoint ( const PointType & way )
6585{
6686 m_Info.push_back ( way );
6787 m_Front++;
6888}
6989
70- template <class TPoint >
90+
91+ template <typename TPoint>
7192unsigned int SpeedFunctionPathInformation<TPoint>
7293::GetNumberOfPoints ( ) const
7394{
7495 return m_Info.size ();
7596}
7697
77- template <class TPoint >
98+
99+ template <typename TPoint>
78100const typename SpeedFunctionPathInformation<TPoint>::PointType &
79101SpeedFunctionPathInformation<TPoint>
80102::GetStartPoint ( ) const
81103{
82104 return m_Info[1 ];
83105}
84106
85- template <class TPoint >
107+
108+ template <typename TPoint>
86109const typename SpeedFunctionPathInformation<TPoint>::PointType &
87110SpeedFunctionPathInformation<TPoint>
88111::GetEndPoint ( ) const
89112{
90113 return m_Info[0 ];
91114}
92115
93- template <class TPoint >
116+
117+ template <typename TPoint>
94118const typename SpeedFunctionPathInformation<TPoint>::PointType &
95119SpeedFunctionPathInformation<TPoint>
96- ::GetWayPoint ( unsigned int i ) const
120+ ::GetWayPoint ( SizeValueType i ) const
97121{
98122 return m_Info[2 +i];
99123}
100124
101- template <class TPoint >
125+
126+ template <typename TPoint>
102127bool SpeedFunctionPathInformation<TPoint>
103128::HasNextFront ( ) const
104129{
105130 return m_Front >= 1 ;
106131
107132}
108133
109- template <class TPoint >
134+
135+ template <typename TPoint>
110136const typename SpeedFunctionPathInformation<TPoint>::PointType &
111137SpeedFunctionPathInformation<TPoint>
112138::GetCurrentFrontAndAdvance ( )
113139{
114140 return m_Info[m_Front--];
115141}
116142
117- template <class TPoint >
143+
144+ template <typename TPoint>
118145const typename SpeedFunctionPathInformation<TPoint>::PointType &
119146SpeedFunctionPathInformation<TPoint>
120147::PeekCurrentFront ( ) const
121148{
122149 return m_Info[m_Front];
123150}
124151
125- template <class TPoint >
152+
153+ template <typename TPoint>
126154const typename SpeedFunctionPathInformation<TPoint>::PointType &
127155SpeedFunctionPathInformation<TPoint>
128156::PeekNextFront ( ) const
@@ -137,7 +165,8 @@ SpeedFunctionPathInformation<TPoint>
137165 }
138166}
139167
140- template <class TPoint >
168+
169+ template <typename TPoint>
141170const typename SpeedFunctionPathInformation<TPoint>::PointType &
142171SpeedFunctionPathInformation<TPoint>
143172::PeekPreviousFront ( ) const
@@ -152,10 +181,8 @@ SpeedFunctionPathInformation<TPoint>
152181 }
153182}
154183
155- /* *
156- *
157- */
158- template <class TPoint >
184+
185+ template <typename TPoint>
159186void SpeedFunctionPathInformation<TPoint>
160187::PrintSelf (std::ostream& os, Indent indent) const
161188{
0 commit comments