OTB  9.0.0
Orfeo Toolbox
otbPointSetSource.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 
22 #ifndef otbPointSetSource_h
23 #define otbPointSetSource_h
24 
25 
26 #include "itkProcessObject.h"
27 
28 namespace otb
29 {
44 template <class TOutputPointSet>
45 class ITK_EXPORT PointSetSource : public itk::ProcessObject
46 {
47 public:
50  typedef itk::ProcessObject Superclass;
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
55  itkNewMacro(Self);
56 
58  itkTypeMacro(PointSetSource, itk::ProcessObject);
59 
61  typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType;
62  typedef itk::DataObject::Pointer DataObjectPointer;
63  typedef TOutputPointSet OutputPointSetType;
64  typedef typename OutputPointSetType::Pointer OutputPointSetPointer;
65  typedef typename OutputPointSetType::PointsContainer PointsContainerType;
66  typedef typename OutputPointSetType::PointDataContainer PointDataContainerType;
67 
69  OutputPointSetType* GetOutput(void);
72 
76  void SetOutput(OutputPointSetType* output);
77  using Superclass::SetOutput;
79 
114  virtual void GraftOutput(itk::DataObject* output);
115  virtual void GraftNthOutput(DataObjectPointerArraySizeType idx, itk::DataObject* output);
117 
131  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
132  using Superclass::MakeOutput;
134 
135 protected:
136  PointSetSource();
137  ~PointSetSource() override
138  {
139  }
140  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
141 
145  void GenerateInputRequestedRegion() override;
146 
147 private:
148  PointSetSource(const Self&) = delete;
149  void operator=(const Self&) = delete;
150 
155 };
156 
157 } // end namespace otb
158 
159 #ifndef OTB_MANUAL_INSTANTIATION
160 #include "otbPointSetSource.hxx"
161 #endif
162 
163 #endif
otb::PointSetSource::PointsContainerType
OutputPointSetType::PointsContainer PointsContainerType
Definition: otbPointSetSource.h:65
otb::PointSetSource::m_GenerateDataNumberOfRegions
int m_GenerateDataNumberOfRegions
Definition: otbPointSetSource.h:154
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PointSetSource::DataObjectPointer
itk::DataObject::Pointer DataObjectPointer
Definition: otbPointSetSource.h:62
otb::PointSetSource::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPointSetSource.h:51
otb::PointSetSource
Base class for all process objects that output point set data.
Definition: otbPointSetSource.h:45
otb::PointSetSource::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPointSetSource.h:52
otb::PointSetSource::Self
PointSetSource Self
Definition: otbPointSetSource.h:49
otb::PointSetSource::DataObjectPointerArraySizeType
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Definition: otbPointSetSource.h:58
otb::PointSetSource::PointDataContainerType
OutputPointSetType::PointDataContainer PointDataContainerType
Definition: otbPointSetSource.h:66
otb::PointSetSource::~PointSetSource
~PointSetSource() override
Definition: otbPointSetSource.h:137
otb::PointSetSource::OutputPointSetPointer
OutputPointSetType::Pointer OutputPointSetPointer
Definition: otbPointSetSource.h:64
otb::PointSetSource::OutputPointSetType
TOutputPointSet OutputPointSetType
Definition: otbPointSetSource.h:63
otbPointSetSource.hxx
otb::PointSetSource::m_GenerateDataRegion
int m_GenerateDataRegion
Definition: otbPointSetSource.h:153
otb::PointSetSource::Superclass
itk::ProcessObject Superclass
Definition: otbPointSetSource.h:50