OTB  10.0.0
Orfeo Toolbox
otbVectorDataToSpecificDescriptionFilterBase.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 otbVectorDataToSpecificDescriptionFilterBase_h
22 #define otbVectorDataToSpecificDescriptionFilterBase_h
23 
25 
26 namespace otb
27 {
45 template <class TVectorData>
46 class ITK_EXPORT VectorDataToSpecificDescriptionFilterBase : public VectorDataToVectorDataFilter<TVectorData, TVectorData>
47 {
48 public:
52  typedef itk::SmartPointer<Self> Pointer;
53  typedef itk::SmartPointer<const Self> ConstPointer;
54 
56  itkNewMacro(Self);
57 
60 
62  typedef TVectorData VectorDataType;
63  typedef typename VectorDataType::Pointer VectorDataPointer;
64  typedef typename VectorDataType::DataNodeType DataNodeType;
65 
66  typedef itk::DataObject::Pointer DataObjectPointer;
67  typedef itk::DataObject DataObject;
68 
70  virtual void AddSupport(const itk::DataObject* support, unsigned int idx);
71  const itk::DataObject* GetSupport(unsigned int idx);
73 
74 protected:
77 
80  {
81  }
82 
84  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
85 
86 private:
88  void operator=(const Self&) = delete;
89 };
90 
91 } // end namespace otb
92 
93 #ifndef OTB_MANUAL_INSTANTIATION
95 #endif
96 
97 #endif
Base class for VectorDataToSpecificDescriptionFilters.
VectorDataToSpecificDescriptionFilterBase(const Self &)=delete
VectorDataToVectorDataFilter< TVectorData, TVectorData > Superclass
Base class for filters that take an VectorData as input and produce an VectorData as output.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.