OTB  7.2.0
Orfeo Toolbox
otbPointSetSource.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 
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);
70  OutputPointSetType* GetOutput(DataObjectPointerArraySizeType idx);
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
itk::DataObject::Pointer DataObjectPointer
OutputPointSetType::Pointer OutputPointSetPointer
Base class for all process objects that output point set data.
itk::ProcessObject Superclass
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
TOutputPointSet OutputPointSetType
OutputPointSetType::PointDataContainer PointDataContainerType
itk::SmartPointer< const Self > ConstPointer
OutputPointSetType::PointsContainer PointsContainerType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::SmartPointer< Self > Pointer