OTB  6.7.0
Orfeo Toolbox
otbImageList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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
40  : public ObjectList<TImage>
41 {
42 public:
44  typedef ImageList Self;
48 
50  itkTypeMacro(ImageList, ObjectList);
51 
53  itkNewMacro(Self);
54 
56  typedef TImage ImageType;
57  typedef typename Superclass::ObjectPointerType ImagePointerType;
58  typedef typename Superclass::Iterator Iterator;
59  typedef typename Superclass::ConstIterator ConstIterator;
60  typedef typename Superclass::ReverseIterator ReverseIterator;
61  typedef typename Superclass::ReverseConstIterator ReverseConstIterator;
62 
66  void UpdateOutputInformation(void) override;
67  void PropagateRequestedRegion(void)
68  throw (itk::InvalidRequestedRegionError) override;
69  void UpdateOutputData(void) override;
71 
72  void SetRequestedRegion(const itk::DataObject * source) override;
73 
74 protected:
76  ImageList() {};
77 
79  ~ImageList() override {}
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
Superclass::Iterator Iterator
Definition: otbImageList.h:58
itk::SmartPointer< Self > Pointer
Definition: otbImageList.h:46
Superclass::ReverseIterator ReverseIterator
Definition: otbImageList.h:60
ObjectList< TImage > Superclass
Definition: otbImageList.h:45
Superclass::ObjectPointerType ImagePointerType
Definition: otbImageList.h:57
TImage ImageType
Definition: otbImageList.h:56
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >...
Definition: otbObjectList.h:40
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageList.h:47
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbImageList.h:82
This class represent a list of images.
Definition: otbImageList.h:39
~ImageList() override
Definition: otbImageList.h:79
Superclass::ConstIterator ConstIterator
Definition: otbImageList.h:59
ImageList Self
Definition: otbImageList.h:44
Superclass::ReverseConstIterator ReverseConstIterator
Definition: otbImageList.h:61