ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkReflectiveImageRegionIterator_h 00019 #define __itkReflectiveImageRegionIterator_h 00020 00021 #include "itkReflectiveImageRegionConstIterator.h" 00022 #include "itkImageIteratorWithIndex.h" 00023 00024 namespace itk 00025 { 00043 template< typename TImage > 00044 class ITK_EXPORT ReflectiveImageRegionIterator:public ReflectiveImageRegionConstIterator< TImage > 00045 { 00046 public: 00048 typedef ReflectiveImageRegionIterator Self; 00049 typedef ReflectiveImageRegionConstIterator< TImage > Superclass; 00050 00052 typedef typename Superclass::IndexType IndexType; 00053 typedef typename Superclass::IndexValueType IndexValueType; 00054 typedef typename Superclass::SizeType SizeType; 00055 typedef typename Superclass::SizeValueType SizeValueType; 00056 typedef typename Superclass::OffsetType OffsetType; 00057 typedef typename Superclass::OffsetValueType OffsetValueType; 00058 typedef typename Superclass::RegionType RegionType; 00059 typedef typename Superclass::ImageType ImageType; 00060 typedef typename Superclass::PixelContainer PixelContainer; 00061 typedef typename Superclass::PixelContainerPointer PixelContainerPointer; 00062 typedef typename Superclass::InternalPixelType InternalPixelType; 00063 typedef typename Superclass::PixelType PixelType; 00064 typedef typename Superclass::AccessorType AccessorType; 00065 00067 ReflectiveImageRegionIterator(); 00068 00071 ReflectiveImageRegionIterator(ImageType *ptr, const RegionType & region); 00072 00079 ReflectiveImageRegionIterator(const ImageIteratorWithIndex< TImage > & it); 00080 00082 void Set(const PixelType & value) const 00083 { this->m_PixelAccessor.Set(*( const_cast< InternalPixelType * >( this->m_Position ) ), value); } 00084 00088 PixelType & Value(void) 00089 { return *( const_cast< InternalPixelType * >( this->m_Position ) ); } 00090 protected: 00091 00094 ReflectiveImageRegionIterator(const ReflectiveImageRegionConstIterator< TImage > & it); 00095 Self & operator=(const ReflectiveImageRegionConstIterator< TImage > & it); 00096 }; 00097 } // end namespace itk 00099 00100 #ifndef ITK_MANUAL_INSTANTIATION 00101 #include "itkReflectiveImageRegionIterator.hxx" 00102 #endif 00103 00104 #endif 00105