Orfeo Toolbox  4.0
otbLineSpatialObjectListToPointSetFilter.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 __otbLineSpatialObjectListToPointSetFilter_txx
19 #define __otbLineSpatialObjectListToPointSetFilter_txx
20 
22 
23 namespace otb
24 {
25 
29 template<class TLinesList, class TPointSet>
31 {
32  this->SetNumberOfRequiredInputs(1);
33  this->SetNumberOfRequiredOutputs(1);
34 
35  this->SetNthOutput(0, PointSetType::New());
36 
37 }
38 
39 template<class TLinesList, class TPointSet>
40 void
43 {
45  const_cast<LinesListType *>(list));
46 }
47 
48 template<class TLinesList, class TPointSet>
52 {
53  return static_cast<const LinesListType *>
55 }
56 
57 template<class TLinesList, class TPointSet>
58 void
60 ::SetOutput(const PointSetType *pointSet)
61 {
62  this->ProcessObjectType::SetNthOutput(0,
63  const_cast<PointSetType *>(pointSet));
64 }
65 
66 template<class TLinesList, class TPointSet>
70 {
71  return static_cast<PointSetType *>
72  (this->ProcessObjectType::GetOutput(0));
73 }
74 
79 template<class TLinesList, class TPointSet>
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:05:53 for Orfeo Toolbox with doxygen 1.8.3.1