Orfeo Toolbox  4.0
otbImageToLineSpatialObjectListFilter.txx
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 #ifndef __otbImageToLineSpatialObjectListFilter_txx
19 #define __otbImageToLineSpatialObjectListFilter_txx
20 
22 
23 namespace otb
24 {
25 
29 template<class TInputImage>
31 {
32  this->SetNumberOfRequiredInputs(1);
33  this->SetNumberOfRequiredOutputs(1);
34 
35  typename LinesListType::Pointer list = LinesListType::New();
36  this->SetOutput(list);
37 
38 }
39 
40 template <class TInputImage>
41 void
44 {
46  const_cast<InputImageType *>(image));
47 }
48 
49 template <class TInputImage>
53 {
54  return static_cast<const InputImageType *>
56 }
57 
58 template <class TInputImage>
59 void
62 {
63  this->ProcessObjectType::SetNthOutput(0,
64  const_cast<LinesListType *>(list));
65 }
66 
67 template <class TInputImage>
71 {
72  return static_cast<LinesListType *>
73  (this->ProcessObjectType::GetOutput(0));
74 }
75 
79 template<class TInputImage>
80 void
82 ::PrintSelf(std::ostream& os, itk::Indent indent) const
83 {
84  Superclass::PrintSelf(os, indent);
85 }
86 
87 } // end namespace otb
88 
89 #endif

Generated at Sat Mar 8 2014 16:01:36 for Orfeo Toolbox with doxygen 1.8.3.1