ITK  6.0.0
Insight Toolkit
itkImageSliceConstIteratorWithIndex.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
23namespace itk
24{
112template <typename TImage>
113class ITK_TEMPLATE_EXPORT ImageSliceConstIteratorWithIndex : public ImageConstIteratorWithIndex<TImage>
114{
115public:
119
121 using typename Superclass::IndexType;
122 using typename Superclass::SizeType;
123 using typename Superclass::OffsetType;
124 using typename Superclass::RegionType;
125 using typename Superclass::ImageType;
126 using typename Superclass::PixelContainer;
128 using typename Superclass::InternalPixelType;
129 using typename Superclass::PixelType;
130 using typename Superclass::AccessorType;
131
135 {}
136
140 : ImageConstIteratorWithIndex<TImage>(ptr, region)
141 , m_PixelJump(0)
142 , m_LineJump(0)
143 , m_Direction_A(0)
144 , m_Direction_B(1)
145 {}
146
154 {
156 }
157
160 void
162
164 void
166
169 void
171
174 void
176
179 void
181
183 bool
185
187 bool
189
191 bool
193
195 bool
197
199 void
200 SetFirstDirection(unsigned int direction);
201
203 void
204 SetSecondDirection(unsigned int direction);
205
209 inline Self &
211
215 inline Self &
217
218private:
221 unsigned int m_Direction_A;
222 unsigned int m_Direction_B;
223};
224} // end namespace itk
225
226#ifndef ITK_MANUAL_INSTANTIATION
227# include "itkImageSliceConstIteratorWithIndex.hxx"
228#endif
229
230#endif
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
Self & operator=(const Self &it)
typename SizeType::SizeValueType SizeValueType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelContainer PixelContainer
Multi-dimensional image iterator which only walks a region.
void SetFirstDirection(unsigned int direction)
ImageSliceConstIteratorWithIndex(const ImageType *ptr, const RegionType &region)
ImageSliceConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
void SetSecondDirection(unsigned int direction)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....