OTB  5.0.0
Orfeo Toolbox
otbLabelMapSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 
19 #ifndef __otbLabelMapSource_h
20 #define __otbLabelMapSource_h
21 
22 
23 #include "itkProcessObject.h"
24 #include "itkMacro.h"
25 
26 namespace otb
27 {
37 template <class TOutputLabelMap>
38 class ITK_EXPORT LabelMapSource : public itk::ProcessObject
39 {
40 public:
41 
47 
49  itkNewMacro(Self);
50 
53 
55  typedef TOutputLabelMap OutputLabelMapType;
56  typedef typename TOutputLabelMap::Pointer OutputLabelMapPointer;
57 
59  virtual OutputLabelMapType* GetOutput(void);
60  virtual OutputLabelMapType* GetOutput(DataObjectPointerArraySizeType idx);
62 
63 protected:
65  ~LabelMapSource();
66 
67  void PrintSelf(std::ostream& os, itk::Indent indent) const;
68 
70  virtual void AllocateOutputs();
71 
72 private:
73  LabelMapSource(const Self &); //purposely not implemented
74  void operator =(const Self&); //purposely not implemented
75 
76 };
77 
78 } // end namespace otb
79 
80 #ifndef OTB_MANUAL_INSTANTIATION
81 #include "otbLabelMapSource.txx"
82 #endif
83 
84 #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