OTB  6.7.0
Orfeo Toolbox
otbPointSetSource.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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:
53 
55  itkNewMacro(Self);
56 
59 
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  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
139 
143  void GenerateInputRequestedRegion() override;
144 
145 private:
146  PointSetSource(const Self &) = delete;
147  void operator =(const Self&) = delete;
148 
153 };
154 
155 } // end namespace otb
156 
157 #ifndef OTB_MANUAL_INSTANTIATION
158 #include "otbPointSetSource.hxx"
159 #endif
160 
161 #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
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
OutputPointSetType::PointsContainer PointsContainerType
itk::SmartPointer< Self > Pointer