OTB  9.0.0
Orfeo Toolbox
otbReliefColormapFunctor.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 otbReliefColormapFunctor_h
22 #define otbReliefColormapFunctor_h
23 
24 #include "itkColormapFunction.h"
25 
26 namespace otb
27 {
28 
29 namespace Functor
30 {
31 
45 template <class TScalar, class TRGBPixel>
46 class ITK_EXPORT ReliefColormapFunctor : public itk::Function::ColormapFunction<TScalar, TRGBPixel>
47 {
48 public:
50  typedef itk::Function::ColormapFunction<TScalar, TRGBPixel> Superclass;
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
55  itkNewMacro(Self);
56 
57  typedef typename Superclass::RGBPixelType RGBPixelType;
58  typedef typename Superclass::ScalarType ScalarType;
59  typedef typename Superclass::RealType RealType;
60 
61  RGBPixelType operator()(const TScalar&) const override;
62 
63 protected:
66  {
67  }
68 
69 private:
70  ReliefColormapFunctor(const Self&) = delete;
71  void operator=(const Self&) = delete;
72 };
73 
74 } // end namespace functor
75 
76 } // end namespace otb
77 
78 #ifndef OTB_MANUAL_INSTANTIATION
80 #endif
81 
82 #endif
otb::Functor::ReliefColormapFunctor::ReliefColormapFunctor
ReliefColormapFunctor()
Definition: otbReliefColormapFunctor.h:64
otb::Functor::ReliefColormapFunctor::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbReliefColormapFunctor.h:51
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Functor::ReliefColormapFunctor::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbReliefColormapFunctor.h:52
otb::Functor::ReliefColormapFunctor::ScalarType
Superclass::ScalarType ScalarType
Definition: otbReliefColormapFunctor.h:58
otb::Functor::ReliefColormapFunctor
Function object which maps a scalar value into an RGB colormap value for relief representation.
Definition: otbReliefColormapFunctor.h:46
otb::Functor::ReliefColormapFunctor::Superclass
itk::Function::ColormapFunction< TScalar, TRGBPixel > Superclass
Definition: otbReliefColormapFunctor.h:50
otb::Functor::ReliefColormapFunctor::RealType
Superclass::RealType RealType
Definition: otbReliefColormapFunctor.h:59
otb::Functor::ReliefColormapFunctor::~ReliefColormapFunctor
~ReliefColormapFunctor() override
Definition: otbReliefColormapFunctor.h:65
otb::Functor::ReliefColormapFunctor::Self
ReliefColormapFunctor Self
Definition: otbReliefColormapFunctor.h:49
otbReliefColormapFunctor.hxx
otb::Functor::ReliefColormapFunctor::RGBPixelType
Superclass::RGBPixelType RGBPixelType
Definition: otbReliefColormapFunctor.h:55