OTB  6.7.0
Orfeo Toolbox
otbVectorDataSource.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 
22 #ifndef otbVectorDataSource_h
23 #define otbVectorDataSource_h
24 
25 #include "OTBVectorDataBaseExport.h"
26 #include "itkProcessObject.h"
27 #include "itkMacro.h"
28 
29 namespace otb
30 {
41 template <class TOutputVectorData>
42 class ITK_ABI_EXPORT VectorDataSource : public itk::ProcessObject
43 {
44 public:
45 
51 
53  itkNewMacro(Self);
54 
57 
59  typedef TOutputVectorData OutputVectorDataType;
60  typedef typename TOutputVectorData::Pointer OutputVectorDataPointer;
61 
70  virtual void GraftOutput(itk::DataObject *output);
71 
78  virtual void GraftNthOutput(unsigned int idx, itk::DataObject *output);
79 
81  virtual OutputVectorDataType* GetOutput(void);
84 
85 protected:
87  ~VectorDataSource() override;
88 
89  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
90 
92  virtual void AllocateOutputs();
93 
94 private:
95  VectorDataSource(const Self &) = delete;
96  void operator =(const Self&) = delete;
97 
98 };
99 
100 } // end namespace otb
101 
102 #ifndef OTB_MANUAL_INSTANTIATION
103 #include "otbVectorDataSource.hxx"
104 #endif
105 
106 #endif // otbVectorDataSource_h
itk::SmartPointer< Self > Pointer
itk::ProcessObject Superclass
Filter hierarchy for generating VectorData.
TOutputVectorData::Pointer OutputVectorDataPointer
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
This class represents a hierarchy of vector data.
Definition: otbVectorData.h:58
itk::SmartPointer< const Self > ConstPointer
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
TOutputVectorData OutputVectorDataType