OTB  9.0.0
Orfeo Toolbox
otbImageList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbImageList_h
22 #define otbImageList_h
23 
24 #include "otbObjectList.h"
25 
26 namespace otb
27 {
38 template <class TImage>
39 class ITK_EXPORT ImageList : public ObjectList<TImage>
40 {
41 public:
43  typedef ImageList Self;
45  typedef itk::SmartPointer<Self> Pointer;
46  typedef itk::SmartPointer<const Self> ConstPointer;
47 
49  itkTypeMacro(ImageList, ObjectList);
50 
52  itkNewMacro(Self);
53 
55  typedef TImage ImageType;
57  typedef typename Superclass::Iterator Iterator;
58  typedef typename Superclass::ConstIterator ConstIterator;
59  typedef typename Superclass::ReverseIterator ReverseIterator;
60  typedef typename Superclass::ReverseConstIterator ReverseConstIterator;
61 
65  void UpdateOutputInformation(void) override;
66  void PropagateRequestedRegion(void) override;
67  void UpdateOutputData(void) override;
69 
70  void SetRequestedRegion(const itk::DataObject* source) override;
71 
72 protected:
74  ImageList(){};
75 
77  ~ImageList() override
78  {
79  }
80 
82  void PrintSelf(std::ostream& os, itk::Indent indent) const override
83  {
84  Superclass::PrintSelf(os, indent);
85  }
86 
87 private:
88  ImageList(const Self&) = delete;
89  void operator=(const Self&) = delete;
90 };
91 } // End namespace otb
92 
93 #ifndef OTB_MANUAL_INSTANTIATION
94 #include "otbImageList.hxx"
95 #endif
96 
97 #endif
otb::ObjectList< TImage >::ObjectPointerType
itk::SmartPointer< ObjectType > ObjectPointerType
Definition: otbObjectList.h:57
otb::ImageList::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbImageList.h:82
otb::ImageList::ConstIterator
Superclass::ConstIterator ConstIterator
Definition: otbImageList.h:58
otb::ImageList::ImageList
ImageList()
Definition: otbImageList.h:74
otb::ImageList::Self
ImageList Self
Definition: otbImageList.h:43
otbImageList.hxx
otb::ImageList::~ImageList
~ImageList() override
Definition: otbImageList.h:77
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageList::ReverseConstIterator
Superclass::ReverseConstIterator ReverseConstIterator
Definition: otbImageList.h:60
otb::ImageList::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageList.h:45
otb::ImageList::ReverseIterator
Superclass::ReverseIterator ReverseIterator
Definition: otbImageList.h:59
otbObjectList.h
otb::ImageList::ImageType
TImage ImageType
Definition: otbImageList.h:52
otb::ImageList::Iterator
Superclass::Iterator Iterator
Definition: otbImageList.h:57
otb::ImageList
This class represent a list of images.
Definition: otbImageList.h:39
otb::ImageList::Superclass
ObjectList< TImage > Superclass
Definition: otbImageList.h:44
otb::ObjectList
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:40
otb::ImageList::ImagePointerType
Superclass::ObjectPointerType ImagePointerType
Definition: otbImageList.h:56
otb::ImageList::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageList.h:46