Orfeo Toolbox  4.0
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 "itkObjectFactory.h"
25 #include "itkMacro.h"
26 
27 namespace otb
28 {
36 template <class TOutputLabelMap>
37 class ITK_EXPORT LabelMapSource : public itk::ProcessObject
38 {
39 public:
40 
46 
48  itkNewMacro(Self);
49 
52 
53  typedef TOutputLabelMap OutputLabelMapType;
54  typedef typename TOutputLabelMap::Pointer OutputLabelMapPointer;
55 
57  virtual OutputLabelMapType* GetOutput(void);
58  virtual OutputLabelMapType* GetOutput(unsigned int idx);
59 
60 protected:
62  ~LabelMapSource();
63 
64  void PrintSelf(std::ostream& os, itk::Indent indent) const;
65 
67  virtual void AllocateOutputs();
68 
69 private:
70  LabelMapSource(const Self &); //purposely not implemented
71  void operator =(const Self&); //purposely not implemented
72 
73 };
74 
75 } // end namespace otb
76 
77 #ifndef OTB_MANUAL_INSTANTIATION
78 #include "otbLabelMapSource.txx"
79 #endif
80 
81 #endif // __otbLabelMapSource_h

Generated at Sat Mar 8 2014 16:04:10 for Orfeo Toolbox with doxygen 1.8.3.1