OTB  9.0.0
Orfeo Toolbox
otbPathListSource.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 otbPathListSource_h
22 #define otbPathListSource_h
23 
24 // #include "itkProcessObject.h"
25 // #include "itkDataObject.h"
26 #include "otbObjectListSource.h"
27 
28 namespace otb
29 {
30 
44 template <class TOutputPath>
45 class ITK_EXPORT PathListSource : public ObjectListSource<ObjectList<TOutputPath>>
46 {
47 public:
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
55  itkNewMacro(Self);
56 
59 
61  typedef itk::DataObject::Pointer DataObjectPointer;
62  typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType;
63 
64  typedef TOutputPath OutputPathType;
65  typedef typename OutputPathType::Pointer OutputPathPointerType;
69 
110  // OutputPathListType * GetOutput(void);
111  // OutputPathListType * GetOutput(DataObjectPointerArraySizeType idx);
113 
148  // just calls GraftNthOutput()
149  // virtual void GraftOutput(OutputPathListType *output);
151 
158  // virtual void GraftNthOutput(DataObjectPointerArraySizeType idx, OutputPathListType *output);
159 
173  // virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx);
174 
175 protected:
177  ~PathListSource() override
178  {
179  }
180  // void PrintSelf(std::ostream& os, itk::Indent indent) const;
181 
182 private:
183  PathListSource(const Self&) = delete;
184  void operator=(const Self&) = delete;
185 };
186 
187 } // end namespace otb
188 
189 // #ifndef OTB_MANUAL_INSTANTIATION
190 // #include "otbPathListSource.hxx"
191 // #endif
192 
193 #endif
otb::PathListSource::PathListSource
PathListSource()
Definition: otbPathListSource.h:176
otbObjectListSource.h
otb::PathListSource::DataObjectPointerArraySizeType
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Definition: otbPathListSource.h:62
otb::PathListSource
Base class for filters with a PathList output type.
Definition: otbPathListSource.h:45
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PathListSource::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPathListSource.h:51
otb::PathListSource::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPathListSource.h:52
otb::ObjectList::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbObjectList.h:46
otb::PathListSource::OutputPathType
TOutputPath OutputPathType
Definition: otbPathListSource.h:64
otb::PathListSource::Self
PathListSource Self
Definition: otbPathListSource.h:49
otb::ObjectListSource
Base class for all process objects that output ObjectList data.
Definition: otbObjectListSource.h:47
otb::PathListSource::~PathListSource
~PathListSource() override
Definition: otbPathListSource.h:177
otb::PathListSource::OutputPathListConstPointerType
OutputPathListType::ConstPointer OutputPathListConstPointerType
Definition: otbPathListSource.h:68
otb::PathListSource::Superclass
ObjectListSource< ObjectList< TOutputPath > > Superclass
Definition: otbPathListSource.h:50
otb::PathListSource::OutputPathPointerType
OutputPathType::Pointer OutputPathPointerType
Definition: otbPathListSource.h:65
otb::ObjectList::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbObjectList.h:47
otb::PathListSource::OutputPathListType
Superclass::OutputListType OutputPathListType
Definition: otbPathListSource.h:66
otb::ObjectList
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:40
otb::PathListSource::DataObjectPointer
itk::DataObject::Pointer DataObjectPointer
Definition: otbPathListSource.h:58
otb::PathListSource::OutputPathListPointerType
OutputPathListType::Pointer OutputPathListPointerType
Definition: otbPathListSource.h:67