OTB  9.0.0
Orfeo Toolbox
otbSarDefaultImageMetadataInterface.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 otbSarDefaultImageMetadataInterface_h
22 #define otbSarDefaultImageMetadataInterface_h
23 
24 
25 #include "otbMacro.h"
26 
28 
29 namespace otb
30 {
39 {
40 public:
43  typedef itk::SmartPointer<Self> Pointer;
44  typedef itk::SmartPointer<const Self> ConstPointer;
45 
47  itkNewMacro(Self);
48 
51 
52  typedef Superclass::ImageType ImageType;
53  typedef ImageType::IndexType IndexType;
54  typedef std::array<int, 2> ArrayIndexType;
55  typedef Superclass::MetaDataDictionaryType MetaDataDictionaryType;
58  typedef itk::PointSet<double, 2> PointSetType;
59  typedef PointSetType::Pointer PointSetPointer;
60  typedef double RealType;
61  typedef PointSetType::PointType PointType;
62 
64  {
65  itkExceptionMacro("GetRadiometricCalibrationAntennaPatternNewGain() not implemented in SarDefaultImageMetadataInterface, no captor type found");
66  }
67 
69  {
70  itkExceptionMacro("GetRadiometricCalibrationAntennaPatternOldGain() not implemented in SarDefaultImageMetadataInterface, no captor type found");
71  }
72 
74  {
75  itkExceptionMacro("GetRadiometricCalibrationIncidenceAngle(const MetadataSupplierInterface&) not implemented in SarDefaultImageMetadataInterface, no captor type found");
76  }
77 
79  {
80  itkExceptionMacro("GetRadiometricCalibrationRangeSpreadLoss() not implemented in SarDefaultImageMetadataInterface, no captor type found");
81  }
82 
84  {
85  itkExceptionMacro("GetRadiometricCalibrationNoise(const MetadataSupplierInterface&) not implemented in SarDefaultImageMetadataInterface, no captor type found");
86  }
87 
89  {
90  itkExceptionMacro(
91  "GetRadiometricCalibrationAntennaPatternNewGainPolynomialDegree() not implemented in SarDefaultImageMetadataInterface, no captor type found");
92  }
93 
95  {
96  itkExceptionMacro(
97  "GetRadiometricCalibrationAntennaPatternOldGainPolynomialDegree() not implemented in SarDefaultImageMetadataInterface, no captor type found");
98  }
99 
101  {
102  itkExceptionMacro("GetRadiometricCalibrationIncidenceAnglePolynomialDegree() not implemented in SarDefaultImageMetadataInterface, no captor type found");
103  }
104 
106  {
107  itkExceptionMacro("GetRadiometricCalibrationRangeSpreadLossPolynomialDegree() not implemented in SarDefaultImageMetadataInterface, no captor type found");
108  }
109 
111  {
112  itkExceptionMacro("GetRadiometricCalibrationNoisePolynomialDegree() not implemented in SarDefaultImageMetadataInterface, no captor type found");
113  }
114 
117  {
118  itkExceptionMacro("GetCenterIncidenceAngle not implemented in SarDefaultImageMetadataInterface, no captor type found");
119  }
120 
121  void ParseGdal(ImageMetadata &) override
122  {
123  itkExceptionMacro("ParseGdal not implemented in SarDefaultImageMetadataInterface, no captor type found");
124  }
125 
126  void ParseGeom(ImageMetadata &) override
127  {
128  itkExceptionMacro("ParseGeom not implemented in SarDefaultImageMetadataInterface, no captor type found");
129  }
130 
131 
132 protected:
134  ~SarDefaultImageMetadataInterface() override = default;
135 
136 private:
137  SarDefaultImageMetadataInterface(const Self&) = delete;
138  void operator=(const Self&) = delete;
139 };
140 
141 } // end namespace otb
142 
143 #endif
otb::SarDefaultImageMetadataInterface
Creation of an "otb" DefaultImageMetadataInterface that gets metadata.
Definition: otbSarDefaultImageMetadataInterface.h:38
otb::SarDefaultImageMetadataInterface::Self
SarDefaultImageMetadataInterface Self
Definition: otbSarDefaultImageMetadataInterface.h:41
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationIncidenceAngle
PointSetPointer GetRadiometricCalibrationIncidenceAngle(const MetadataSupplierInterface &) const override
Definition: otbSarDefaultImageMetadataInterface.h:73
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationNoise
PointSetPointer GetRadiometricCalibrationNoise(const MetadataSupplierInterface &, const ImageMetadata &, const std::string &) const override
Definition: otbSarDefaultImageMetadataInterface.h:83
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationIncidenceAnglePolynomialDegree
ArrayIndexType GetRadiometricCalibrationIncidenceAnglePolynomialDegree() const override
Definition: otbSarDefaultImageMetadataInterface.h:100
otb::SarDefaultImageMetadataInterface::MetaDataDictionaryType
Superclass::MetaDataDictionaryType MetaDataDictionaryType
Definition: otbSarDefaultImageMetadataInterface.h:55
otb::SarDefaultImageMetadataInterface::ArrayIndexType
std::array< int, 2 > ArrayIndexType
Definition: otbSarDefaultImageMetadataInterface.h:54
otb::SarDefaultImageMetadataInterface::VectorType
Superclass::VectorType VectorType
Definition: otbSarDefaultImageMetadataInterface.h:56
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::MetaDataKey::VectorType
std::vector< double > VectorType
Definition: otbMetaDataKey.h:119
otbMacro.h
otb::SarDefaultImageMetadataInterface::GetCenterIncidenceAngle
double GetCenterIncidenceAngle(const MetadataSupplierInterface &) const override
Definition: otbSarDefaultImageMetadataInterface.h:116
otb::MetaDataKey::VariableLengthVectorType
itk::VariableLengthVector< double > VariableLengthVectorType
Definition: otbMetaDataKey.h:121
otb::SarDefaultImageMetadataInterface::ParseGdal
void ParseGdal(ImageMetadata &) override
Definition: otbSarDefaultImageMetadataInterface.h:121
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationRangeSpreadLossPolynomialDegree
ArrayIndexType GetRadiometricCalibrationRangeSpreadLossPolynomialDegree() const override
Definition: otbSarDefaultImageMetadataInterface.h:105
otb::SarDefaultImageMetadataInterface::PointSetType
itk::PointSet< double, 2 > PointSetType
Definition: otbSarDefaultImageMetadataInterface.h:58
otb::SarDefaultImageMetadataInterface::IndexType
ImageType::IndexType IndexType
Definition: otbSarDefaultImageMetadataInterface.h:53
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationAntennaPatternNewGainPolynomialDegree
ArrayIndexType GetRadiometricCalibrationAntennaPatternNewGainPolynomialDegree() const override
Definition: otbSarDefaultImageMetadataInterface.h:88
otb::MetadataSupplierInterface
Base class to access metadata information in files/images.
Definition: otbMetadataSupplierInterface.h:40
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationAntennaPatternOldGainPolynomialDegree
ArrayIndexType GetRadiometricCalibrationAntennaPatternOldGainPolynomialDegree() const override
Definition: otbSarDefaultImageMetadataInterface.h:94
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationRangeSpreadLoss
PointSetPointer GetRadiometricCalibrationRangeSpreadLoss() const override
Definition: otbSarDefaultImageMetadataInterface.h:78
otb::SarDefaultImageMetadataInterface::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbSarDefaultImageMetadataInterface.h:44
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationNoisePolynomialDegree
ArrayIndexType GetRadiometricCalibrationNoisePolynomialDegree() const override
Definition: otbSarDefaultImageMetadataInterface.h:110
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationAntennaPatternOldGain
PointSetPointer GetRadiometricCalibrationAntennaPatternOldGain() const override
Definition: otbSarDefaultImageMetadataInterface.h:68
otb::SarDefaultImageMetadataInterface::VariableLengthVectorType
Superclass::VariableLengthVectorType VariableLengthVectorType
Definition: otbSarDefaultImageMetadataInterface.h:57
otb::SarDefaultImageMetadataInterface::GetRadiometricCalibrationAntennaPatternNewGain
PointSetPointer GetRadiometricCalibrationAntennaPatternNewGain() const override
Definition: otbSarDefaultImageMetadataInterface.h:63
otb::SarDefaultImageMetadataInterface::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbSarDefaultImageMetadataInterface.h:43
otb::ImageMetadataInterfaceBase
Base class for captor metadata reading.
Definition: otbImageMetadataInterfaceBase.h:44
otb::SarDefaultImageMetadataInterface::Superclass
SarImageMetadataInterface Superclass
Definition: otbSarDefaultImageMetadataInterface.h:42
otb::ImageMetadata
Generic class containing image metadata used in OTB.
Definition: otbImageMetadata.h:270
otb::SarDefaultImageMetadataInterface::PointSetPointer
PointSetType::Pointer PointSetPointer
Definition: otbSarDefaultImageMetadataInterface.h:59
otb::SarDefaultImageMetadataInterface::RealType
double RealType
Definition: otbSarDefaultImageMetadataInterface.h:60
otb::SarImageMetadataInterface
Class for SAR captor metadata reading.
Definition: otbSarImageMetadataInterface.h:42
otb::SarDefaultImageMetadataInterface::PointType
PointSetType::PointType PointType
Definition: otbSarDefaultImageMetadataInterface.h:61
otb::SarDefaultImageMetadataInterface::ParseGeom
void ParseGeom(ImageMetadata &) override
Definition: otbSarDefaultImageMetadataInterface.h:126
otbSarImageMetadataInterface.h
otb::SarDefaultImageMetadataInterface::ImageType
Superclass::ImageType ImageType
Definition: otbSarDefaultImageMetadataInterface.h:50