OTB  9.0.0
Orfeo Toolbox
otbPointSetExtractROI.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 otbPointSetExtractROI_h
22 #define otbPointSetExtractROI_h
23 
25 #include "itkTransform.h"
26 
27 namespace otb
28 {
29 
43 template <class TInputPointSet, class TOutputPointSet>
44 class ITK_EXPORT PointSetExtractROI : public PointSetToPointSetFilter<TInputPointSet, TOutputPointSet>
45 {
46 public:
50  typedef itk::SmartPointer<Self> Pointer;
51  typedef itk::SmartPointer<const Self> ConstPointer;
52 
53  typedef TInputPointSet InputPointSetType;
54  typedef TOutputPointSet OutputPointSetType;
55  typedef typename InputPointSetType::Pointer InputPointSetPointer;
56  typedef typename OutputPointSetType::Pointer OutputPointSetPointer;
57 
59  typedef typename TInputPointSet::CoordRepType CoordRepType;
60 
62  itkNewMacro(Self);
63 
66 
68  itkGetMacro(StartX, unsigned long);
69  itkGetMacro(StartY, unsigned long);
70  itkSetMacro(StartX, unsigned long);
71  itkSetMacro(StartY, unsigned long);
72 
74  itkGetMacro(SizeX, unsigned long);
75  itkGetMacro(SizeY, unsigned long);
76  itkSetMacro(SizeX, unsigned long);
77  itkSetMacro(SizeY, unsigned long);
79 
80 protected:
83  {
84  }
85  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
86 
88  void GenerateData(void) override;
89 
90 private:
91  PointSetExtractROI(const PointSetExtractROI&) = delete;
92  void operator=(const PointSetExtractROI&) = delete;
93 
95  unsigned long m_StartX;
96  unsigned long m_StartY;
97 
99  unsigned long m_SizeX;
100  unsigned long m_SizeY;
101 };
102 
103 } // end namespace otb
104 
105 #ifndef OTB_MANUAL_INSTANTIATION
106 #include "otbPointSetExtractROI.hxx"
107 #endif
108 
109 #endif
otb::PointSetExtractROI::InputPointSetPointer
InputPointSetType::Pointer InputPointSetPointer
Definition: otbPointSetExtractROI.h:55
otb::PointSetExtractROI::~PointSetExtractROI
~PointSetExtractROI() override
Definition: otbPointSetExtractROI.h:82
otb::PointSetExtractROI::m_StartY
unsigned long m_StartY
Definition: otbPointSetExtractROI.h:96
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::PointSetExtractROI::CoordRepType
TInputPointSet::CoordRepType CoordRepType
Definition: otbPointSetExtractROI.h:59
otb::PointSetExtractROI::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPointSetExtractROI.h:51
otb::PointSetExtractROI
Extract a part of the points specified by a region.
Definition: otbPointSetExtractROI.h:44
otb::PointSetExtractROI::m_SizeX
unsigned long m_SizeX
Definition: otbPointSetExtractROI.h:99
otb::PointSetExtractROI::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPointSetExtractROI.h:50
otb::PointSetExtractROI::m_SizeY
unsigned long m_SizeY
Definition: otbPointSetExtractROI.h:100
otb::PointSetExtractROI::OutputPointSetType
TOutputPointSet OutputPointSetType
Definition: otbPointSetExtractROI.h:54
otbPointSetToPointSetFilter.h
otbPointSetExtractROI.hxx
otb::PointSetExtractROI::Superclass
PointSetToPointSetFilter< TInputPointSet, TOutputPointSet > Superclass
Definition: otbPointSetExtractROI.h:49
otb::PointSetExtractROI::InputPointSetType
TInputPointSet InputPointSetType
Definition: otbPointSetExtractROI.h:53
otb::PointSetExtractROI::OutputPointSetPointer
OutputPointSetType::Pointer OutputPointSetPointer
Definition: otbPointSetExtractROI.h:56
otb::PointSetExtractROI::Self
PointSetExtractROI Self
Definition: otbPointSetExtractROI.h:48
otb::PointSetExtractROI::m_StartX
unsigned long m_StartX
Definition: otbPointSetExtractROI.h:95