OTB  6.1.0
Orfeo Toolbox
otbLabelMapSource.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 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 otbLabelMapSource_h
23 #define otbLabelMapSource_h
24 
25 
26 #include "itkProcessObject.h"
27 #include "itkMacro.h"
28 
29 namespace otb
30 {
40 template <class TOutputLabelMap>
41 class ITK_EXPORT LabelMapSource : public itk::ProcessObject
42 {
43 public:
44 
50 
52  itkNewMacro(Self);
53 
56 
58  typedef TOutputLabelMap OutputLabelMapType;
59  typedef typename TOutputLabelMap::Pointer OutputLabelMapPointer;
60 
62  virtual OutputLabelMapType* GetOutput(void);
63  virtual OutputLabelMapType* GetOutput(DataObjectPointerArraySizeType idx);
65 
66 protected:
68  ~LabelMapSource() ITK_OVERRIDE;
69 
70  void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
71 
73  virtual void AllocateOutputs();
74 
75 private:
76  LabelMapSource(const Self &); //purposely not implemented
77  void operator =(const Self&); //purposely not implemented
78 
79 };
80 
81 } // end namespace otb
82 
83 #ifndef OTB_MANUAL_INSTANTIATION
84 #include "otbLabelMapSource.txx"
85 #endif
86 
87 #endif // otbLabelMapSource_h
itk::SmartPointer< Self > Pointer
TOutputLabelMap OutputLabelMapType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Base class for filter that output LabelMap.
itk::SmartPointer< const Self > ConstPointer
itk::ProcessObject Superclass
TOutputLabelMap::Pointer OutputLabelMapPointer
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType