OTB  10.0.0
Orfeo Toolbox
otbPathListSource.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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
Base class for all process objects that output ObjectList data.
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:41
itk::SmartPointer< const Self > ConstPointer
Definition: otbObjectList.h:47
itk::SmartPointer< Self > Pointer
Definition: otbObjectList.h:46
Base class for filters with a PathList output type.
PathListSource(const Self &)=delete
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
itk::DataObject::Pointer DataObjectPointer
OutputPathListType::Pointer OutputPathListPointerType
OutputPathType::Pointer OutputPathPointerType
OutputPathListType::ConstPointer OutputPathListConstPointerType
TOutputPath OutputPathType
itk::SmartPointer< Self > Pointer
Superclass::OutputListType OutputPathListType
ObjectListSource< ObjectList< TOutputPath > > Superclass
void operator=(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.