Orfeo Toolbox  4.0
itkImageSliceConstIteratorWithIndex.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 __itkImageSliceConstIteratorWithIndex_h
19 #define __itkImageSliceConstIteratorWithIndex_h
20 
22 
23 namespace itk
24 {
112 template< typename TImage >
114 {
115 public:
119 
122  typedef typename Superclass::SizeType SizeType;
131 
134 
138  const RegionType & region):
139  ImageConstIteratorWithIndex< TImage >(ptr, region)
140  {
141  m_Direction_A = 0;
142  m_Direction_B = 1;
143  }
144 
153 
156  void NextLine(void);
157 
159  void GoToBeginOfSlice(void);
160 
163  void NextSlice(void);
164 
167  void PreviousLine(void);
168 
171  void PreviousSlice(void);
172 
174  bool IsAtEndOfLine(void);
175 
177  bool IsAtEndOfSlice(void);
178 
180  bool IsAtReverseEndOfLine(void);
181 
183  bool IsAtReverseEndOfSlice(void);
184 
186  void SetFirstDirection(unsigned int direction);
187 
189  void SetSecondDirection(unsigned int direction);
190 
194  inline Self & operator++();
195 
199  inline Self & operator--();
200 
201 private:
204  unsigned int m_Direction_A;
205  unsigned int m_Direction_B;
206 };
207 } // end namespace itk
208 
209 #ifndef ITK_MANUAL_INSTANTIATION
211 #endif
212 
213 #endif

Generated at Sat Mar 8 2014 14:54:14 for Orfeo Toolbox with doxygen 1.8.3.1