OTB  10.0.0
Orfeo Toolbox
otbConcatenateVectorDataFilter.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 otbConcatenateVectorDataFilter_h
22 #define otbConcatenateVectorDataFilter_h
23 
25 #include "otbVectorData.h"
26 
27 namespace otb
28 {
44 template <class TVectorData>
45 class ITK_EXPORT ConcatenateVectorDataFilter : public VectorDataSource<TVectorData>
46 {
47 public:
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
56 
58  itkNewMacro(Self);
59 
60  typedef TVectorData VectorDataType;
61  typedef typename VectorDataType::Pointer VectorDataPointerType;
62  typedef typename VectorDataType::DataNodeType DataNodeType;
63  typedef typename DataNodeType::Pointer DataNodePointerType;
64  typedef typename DataNodeType::PolygonType::RegionType RegionType;
65  typedef typename DataNodeType::PointType PointType;
66  typedef typename DataNodeType::PolygonType::VertexType VertexType;
67  typedef typename DataNodeType::LineType LineType;
68  typedef typename VectorDataType::DataTreeType DataTreeType;
69  typedef typename VectorDataType::TreeNodeType TreeNodeType;
70  typedef typename VectorDataType::ChildrenListType ChildrenListType;
71 
72  typedef typename std::vector<PointType> PointVectorType;
73 
75  void AddInput(const VectorDataType*);
76  using Superclass::AddInput;
77 
78  const VectorDataType* GetInput(unsigned int idx) const;
79 
80 protected:
83  {
84  }
85  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
86 
88  void GenerateData(void) override;
89 
91  void ProcessNode(const VectorDataType* inputVd, DataNodeType* source, VectorDataType* outputVd, DataNodeType* outputDocument);
92 
93 private:
95  void operator=(const Self&) = delete;
96 
99 };
100 
101 } // end namespace otb
102 
103 #ifndef OTB_MANUAL_INSTANTIATION
105 #endif
106 
107 #endif
Produces a VectorData from the concatenation of several input vectordatas.
DataNodeType::PolygonType::VertexType VertexType
void operator=(const Self &)=delete
VectorDataSource< TVectorData > Superclass
VectorDataType::ChildrenListType ChildrenListType
ConcatenateVectorDataFilter(const Self &)=delete
DataNodeType::PolygonType::RegionType RegionType
itk::SmartPointer< const Self > ConstPointer
Filter hierarchy for generating VectorData.
otb::VectorData< VectorDataCoordinatePrecisionType, 2, VectorDataValuePrecisionType > VectorDataType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.