OTB  10.0.0
Orfeo Toolbox
otbLabelToSimulationParametersBase.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 
22 #ifndef otbLabelToSimulationParametersBase_h
23 #define otbLabelToSimulationParametersBase_h
24 
25 
26 #include "itkProcessObject.h"
27 #include "itkArray.h"
28 
29 namespace otb
30 {
31 
62 
63 template <class TLabel>
64 class ITK_EXPORT LabelToSimulationParametersBase : public itk::ProcessObject
65 {
66 public:
69  typedef itk::ProcessObject Superclass;
70  typedef itk::SmartPointer<Self> Pointer;
71  typedef itk::SmartPointer<const Self> ConstPointer;
72 
74  typedef TLabel LabelType;
75  typedef double ParametersValueType;
76  typedef itk::Array<ParametersValueType> ParametersType;
77 
78 
80  itkTypeMacro(LabelToSimulationParametersBase, ProcessObject);
81 
82  itkSetMacro(Label, LabelType);
83  itkGetMacro(Label, LabelType);
84 
85  itkSetMacro(Step1Parameters, ParametersType);
86  itkGetMacro(Step1Parameters, ParametersType);
87 
88  itkSetMacro(Step2Parameters, ParametersType);
89  itkGetMacro(Step2Parameters, ParametersType);
90 
91  // virtual const ParametersType & GetStep1Parameters() = 0;
92  // virtual const ParametersType & GetStep2Parameters() = 0;
93 
94 protected:
97  {
98  }
99 
100 
101 private:
103  void operator=(const Self&) = delete;
104 
108 };
109 
110 } // end namespace otb
111 
112 #ifndef OTB_MANUAL_INSTANTIATION
113 #endif
114 
115 #endif
Base class for all classes that take a label and outputs two set of parameters for two steps (step1,...
LabelToSimulationParametersBase(const Self &)=delete
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.