Orfeo Toolbox  4.0
otbWrapperInputImageListParameter.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 #ifndef __otbWrapperInputImageListParameter_h
19 #define __otbWrapperInputImageListParameter_h
20 
21 #include "otbImageFileReader.h"
22 
23 #include "otbWrapperParameter.h"
24 #include "otbObjectList.h"
25 
26 namespace otb
27 {
28 namespace Wrapper
29 {
34 class ITK_EXPORT InputImageListParameter : public Parameter
35 {
36 public:
42 
45 
47  itkNewMacro(Self);
48 
50  itkTypeMacro(InputImageListParameter, Parameter);
51 
53  bool SetListFromFileName(const std::vector<std::string> & filenames);
54 
56  void AddNullElement();
57 
59  bool AddFromFileName(const std::string & filename);
60 
62  bool SetNthFileName( const unsigned int id, const std::string & filename );
63 
64 
66  std::vector<std::string> GetFileNameList() const;
67 
69  std::string GetNthFileName( unsigned int i ) const;
70 
72  FloatVectorImageListType* GetImageList() const;
73 
75  FloatVectorImageType* GetNthImage(unsigned int i) const;
76 
78  void SetImageList(FloatVectorImageListType* imList);
79 
81  void AddImage(FloatVectorImageType* image);
82 
83  bool HasValue() const;
84 
85 
87  void Erase( unsigned int id );
88 
90  virtual void ClearValue();
91 
92 
93 protected:
96 
98  virtual ~InputImageListParameter();
99 
100 
103 
104 private:
105  InputImageListParameter(const Parameter &); //purposely not implemented
106  void operator =(const Parameter&); //purposely not implemented
107 
108 }; // End class InputImage Parameter
109 
110 } // End namespace Wrapper
111 } // End namespace otb
112 
113 #endif

Generated at Sat Mar 8 2014 16:28:49 for Orfeo Toolbox with doxygen 1.8.3.1