OTB  10.0.0
Orfeo Toolbox
otbWrapperInputImageListParameter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbWrapperInputImageListParameter_h
22 #define otbWrapperInputImageListParameter_h
23 
24 
27 
28 
29 namespace otb
30 {
31 
32 
33 namespace Wrapper
34 {
35 
41 class OTBApplicationEngine_EXPORT InputImageListParameter : public ParameterList<InputImageParameter>
42 {
43 public:
47  typedef itk::SmartPointer<Self> Pointer;
48  typedef itk::SmartPointer<const Self> ConstPointer;
49 
51  itkNewMacro(Self);
52 
55 
62 
64  const FloatVectorImageType* GetNthImage(std::size_t) const;
67 
69  void SetNthImage(std::size_t, ImageBaseType*);
70 
73 
76 
78  void ClearValue() override;
79 
82  Role GetDirection() const override;
83 
86  const std::string& GetFilenameFilter() const override;
87 
88  ParameterType GetType() const override
89  {
91  }
92 
93 protected:
96 
99 
100  //
101  // Private methods.
102 private:
104  void operator=(const Parameter&) = delete;
105 
107 
109 
110  //
111  // Private attributes
112 private:
114 
115 
116 }; // End class InputImage Parameter
117 
118 } // End namespace Wrapper
119 
120 } // End namespace otb
121 
122 #endif
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:41
itk::SmartPointer< Self > Pointer
Definition: otbObjectList.h:46
Creation of an "otb" vector image which contains metadata.
This class is a base class for list-type parameters.
This class represents a list of InputImage parameter.
InputImageListParameter(const Parameter &)=delete
FloatVectorImageListType * GetImageList()
FloatVectorImageType * GetNthImage(std::vcl_size_t)
const FloatVectorImageType * GetNthImage(std::vcl_size_t) const
const FloatVectorImageListType * GetImageList() const
InputImageParameter::Pointer & FromImage(InputImageParameter::Pointer &, ImageBaseType *)
void SetImageList(FloatVectorImageListType *)
const std::string & GetFilenameFilter() const override
void operator=(const Parameter &)=delete
InputImageParameter::Pointer FromImage(ImageBaseType *)
ParameterList< InputImageParameter > Superclass
Role GetDirection() const override
void SetNthImage(std::vcl_size_t, ImageBaseType *)
This class represents a InputImage parameter.
This class represent a parameter for the wrapper framework This class is a high level class represent...
virtual const std::string & GetFilenameFilter() const
virtual Role GetDirection() const =0
itk::ImageBase< 2 > ImageBaseType
@ ParameterType_InputImageList
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.