OTB  9.0.0
Orfeo Toolbox
otbWrapperBandParameter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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 
51  itkTypeMacro(BandParameter, ListViewParameter);
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
otb::Wrapper::BandParameter
This class represents a band parameter selected from a raster file for the wrapper framework.
Definition: otbWrapperBandParameter.h:38
otb::Wrapper::BandParameter::m_RasterData
std::string m_RasterData
Definition: otbWrapperBandParameter.h:77
otb::Wrapper::ListViewParameter
This class represent a ListWidget parameter for the wrapper framework.
Definition: otbWrapperListViewParameter.h:41
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Wrapper::BandParameter::Superclass
ListViewParameter Superclass
Definition: otbWrapperBandParameter.h:43
otb::Wrapper::ParameterType_Band
@ ParameterType_Band
Definition: otbWrapperTypes.h:62
otbWrapperListViewParameter.h
otb::Wrapper::BandParameter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbWrapperBandParameter.h:45
otb::Wrapper::BandParameter::Self
BandParameter Self
Definition: otbWrapperBandParameter.h:42
otb::Wrapper::BandParameter::GetType
ParameterType GetType() const override
Definition: otbWrapperBandParameter.h:53
otb::Wrapper::BandParameter::SetRasterData
void SetRasterData(std::string rasterData)
Definition: otbWrapperBandParameter.h:59
otb::Wrapper::BandParameter::GetRasterData
const std::string & GetRasterData() const
Definition: otbWrapperBandParameter.h:65
otb::Wrapper::BandParameter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWrapperBandParameter.h:44
otb::Wrapper::ParameterType
ParameterType
Definition: otbWrapperTypes.h:37