OTB  10.0.0
Orfeo Toolbox
otbWrapperBandParameter.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 otbWrapperBandParameter_h
22 #define otbWrapperBandParameter_h
23 
24 #include <string>
26 
27 namespace otb
28 {
29 namespace Wrapper
30 {
31 
38 class OTBApplicationEngine_EXPORT BandParameter : public ListViewParameter
39 {
40 public:
44  typedef itk::SmartPointer<Self> Pointer;
45  typedef itk::SmartPointer<const Self> ConstPointer;
46 
48  itkNewMacro(Self);
49 
52 
53  ParameterType GetType() const override
54  {
55  return ParameterType_Band;
56  }
57 
59  void SetRasterData(std::string rasterData)
60  {
61  m_RasterData = std::move(rasterData);
62  }
63 
65  const std::string& GetRasterData() const
66  {
67  return m_RasterData;
68  }
69 
70 protected:
72  BandParameter() = default;
73 
75  ~BandParameter() override = default;
76 
77  std::string m_RasterData;
78 
79 private:
80  BandParameter(const BandParameter&) = delete;
81  void operator=(const BandParameter&) = delete;
82 
83 }; // End class BandParameter
84 
85 } // End namespace Wrapper
86 } // End namespace otb
87 
88 #endif
This class represents a band parameter selected from a raster file for the wrapper framework.
ParameterType GetType() const override
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
void SetRasterData(std::string rasterData)
void operator=(const BandParameter &)=delete
const std::string & GetRasterData() const
BandParameter(const BandParameter &)=delete
~BandParameter() override=default
This class represent a ListWidget parameter for the wrapper framework.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.