OTB  9.0.0
Orfeo Toolbox
otbPointSetToPointSetFilter.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 otbPointSetToPointSetFilter_h
22 #define otbPointSetToPointSetFilter_h
23 
24 #include "otbPointSetSource.h"
25 #include "otbStreamingTraits.h"
26 
27 namespace otb
28 {
29 
41 template <class TInputPointSet, class TOutputPointSet>
42 class ITK_EXPORT PointSetToPointSetFilter : public PointSetSource<TOutputPointSet>
43 {
44 public:
48  typedef itk::SmartPointer<Self> Pointer;
49  typedef itk::SmartPointer<const Self> ConstPointer;
50 
53 
55  typedef TInputPointSet InputPointSetType;
56  typedef typename InputPointSetType::Pointer InputPointSetPointer;
57  typedef typename InputPointSetType::ConstPointer InputPointSetConstPointer;
58 
60  typedef typename Superclass::OutputPointSetType OutputPointSetType;
61  typedef typename Superclass::OutputPointSetPointer OutputPointSetPointer;
62  typedef typename Superclass::PointsContainerType PointsContainerType;
63  typedef itk::ProcessObject ProcessObjectType;
64 
66  using Superclass::SetInput;
67  void SetInput(unsigned int idx, const InputPointSetType* input);
68  void SetInput(const InputPointSetType* input);
70 
72  InputPointSetType* GetInput(unsigned int idx);
73  InputPointSetType* GetInput();
75 
76 protected:
79  {
80  }
81  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
82 
83 private:
85  void operator=(const PointSetToPointSetFilter&) = delete;
86 };
87 
88 } // end namespace otb
89 
90 #ifndef OTB_MANUAL_INSTANTIATION
92 #endif
93 
94 #endif
otb::PointSetToPointSetFilter::Self
PointSetToPointSetFilter Self
Definition: otbPointSetToPointSetFilter.h:46
otbPointSetToPointSetFilter.hxx
otb::PointSetToPointSetFilter::PointsContainerType
Superclass::PointsContainerType PointsContainerType
Definition: otbPointSetToPointSetFilter.h:62
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PointSetToPointSetFilter
Base class to process PointSet data.
Definition: otbPointSetToPointSetFilter.h:42
otb::PointSetToPointSetFilter::ProcessObjectType
itk::ProcessObject ProcessObjectType
Definition: otbPointSetToPointSetFilter.h:63
otb::PointSetToPointSetFilter::InputPointSetConstPointer
InputPointSetType::ConstPointer InputPointSetConstPointer
Definition: otbPointSetToPointSetFilter.h:57
otb::PointSetToPointSetFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPointSetToPointSetFilter.h:49
otb::PointSetSource
Base class for all process objects that output point set data.
Definition: otbPointSetSource.h:45
otbStreamingTraits.h
otb::PointSetToPointSetFilter::OutputPointSetType
Superclass::OutputPointSetType OutputPointSetType
Definition: otbPointSetToPointSetFilter.h:60
otbPointSetSource.h
otb::PointSetToPointSetFilter::~PointSetToPointSetFilter
~PointSetToPointSetFilter() override
Definition: otbPointSetToPointSetFilter.h:78
otb::PointSetToPointSetFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPointSetToPointSetFilter.h:48
otb::PointSetToPointSetFilter::Superclass
PointSetSource< TOutputPointSet > Superclass
Definition: otbPointSetToPointSetFilter.h:47
otb::PointSetToPointSetFilter::InputPointSetPointer
InputPointSetType::Pointer InputPointSetPointer
Definition: otbPointSetToPointSetFilter.h:56
otb::PointSetToPointSetFilter::InputPointSetType
TInputPointSet InputPointSetType
Definition: otbPointSetToPointSetFilter.h:52
otb::PointSetToPointSetFilter::OutputPointSetPointer
Superclass::OutputPointSetPointer OutputPointSetPointer
Definition: otbPointSetToPointSetFilter.h:61