OTB  7.2.0
Orfeo Toolbox
otbTransformPointSetFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2020 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 otbTransformPointSetFilter_h
22 #define otbTransformPointSetFilter_h
23 
25 
26 namespace otb
27 {
28 
42 template <class TInputPointSet, class TOutputPointSet, class TTransform>
43 class ITK_EXPORT TransformPointSetFilter : public PointSetToPointSetFilter<TInputPointSet, TOutputPointSet>
44 {
45 public:
49  typedef itk::SmartPointer<Self> Pointer;
50  typedef itk::SmartPointer<const Self> ConstPointer;
51 
52  typedef TInputPointSet InputPointSetType;
53  typedef TOutputPointSet OutputPointSetType;
54  typedef typename InputPointSetType::Pointer InputPointSetPointer;
55  typedef typename OutputPointSetType::Pointer OutputPointSetPointer;
56 
58  typedef typename TInputPointSet::CoordRepType CoordRepType;
59 
61  typedef TTransform TransformType;
62 
64  itkNewMacro(Self);
65 
68 
70  itkSetObjectMacro(Transform, TransformType);
71 
73  itkGetObjectMacro(Transform, TransformType);
74 
75 protected:
78  {
79  }
80  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
81 
83  void GenerateData(void) override;
84 
86  typename TransformType::Pointer m_Transform;
87 
88 private:
90  void operator=(const TransformPointSetFilter&) = delete;
91 };
92 
93 } // end namespace otb
94 
95 #ifndef OTB_MANUAL_INSTANTIATION
97 #endif
98 
99 #endif
TransformPointSetFilter applies a transform to all the points of a PointSet.
OutputPointSetType::Pointer OutputPointSetPointer
PointSetToPointSetFilter< TInputPointSet, TOutputPointSet > Superclass
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::SmartPointer< const Self > ConstPointer
Base class to process PointSet data.
TInputPointSet::CoordRepType CoordRepType
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:39
InputPointSetType::Pointer InputPointSetPointer