OTB  9.0.0
Orfeo Toolbox
otbTransformPointSetFilter.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 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
otb::TransformPointSetFilter::OutputPointSetType
TOutputPointSet OutputPointSetType
Definition: otbTransformPointSetFilter.h:53
otb::TransformPointSetFilter::OutputPointSetPointer
OutputPointSetType::Pointer OutputPointSetPointer
Definition: otbTransformPointSetFilter.h:55
otb::TransformPointSetFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbTransformPointSetFilter.h:50
otb::TransformPointSetFilter::~TransformPointSetFilter
~TransformPointSetFilter() override
Definition: otbTransformPointSetFilter.h:77
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::TransformPointSetFilter::CoordRepType
TInputPointSet::CoordRepType CoordRepType
Definition: otbTransformPointSetFilter.h:58
otb::TransformPointSetFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbTransformPointSetFilter.h:49
otb::TransformPointSetFilter::m_Transform
TransformType::Pointer m_Transform
Definition: otbTransformPointSetFilter.h:86
otb::TransformPointSetFilter::Superclass
PointSetToPointSetFilter< TInputPointSet, TOutputPointSet > Superclass
Definition: otbTransformPointSetFilter.h:48
otb::TransformPointSetFilter
TransformPointSetFilter applies a transform to all the points of a PointSet.
Definition: otbTransformPointSetFilter.h:43
otb::Transform
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:39
otb::TransformPointSetFilter::InputPointSetType
TInputPointSet InputPointSetType
Definition: otbTransformPointSetFilter.h:52
otb::PointSetSource
Base class for all process objects that output point set data.
Definition: otbPointSetSource.h:45
otb::TransformPointSetFilter::Self
TransformPointSetFilter Self
Definition: otbTransformPointSetFilter.h:47
otbTransformPointSetFilter.hxx
otbPointSetToPointSetFilter.h
otb::TransformPointSetFilter::TransformType
TTransform TransformType
Definition: otbTransformPointSetFilter.h:61
otb::TransformPointSetFilter::InputPointSetPointer
InputPointSetType::Pointer InputPointSetPointer
Definition: otbTransformPointSetFilter.h:54