From acb91cf005acc13bd0a64d0c5f9cab1279d7b450 Mon Sep 17 00:00:00 2001
From: Julien Osman <julien.osman@csgroup.eu>
Date: Fri, 4 Sep 2020 16:22:10 +0200
Subject: [PATCH] DOC: Add deprecated notice to methodes related to RPC models

---
 Modules/Core/Transform/include/otbGenericRSTransform.h   | 8 ++++++--
 .../include/otbImageToGenericRSOutputParameters.h        | 4 +++-
 Modules/Core/Transform/include/otbSensorModelBase.h      | 1 +
 .../Projection/include/otbGenericRSResampleImageFilter.h | 9 ++++++---
 4 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/Modules/Core/Transform/include/otbGenericRSTransform.h b/Modules/Core/Transform/include/otbGenericRSTransform.h
index 9ffa943b83..e0ac8ba8eb 100644
--- a/Modules/Core/Transform/include/otbGenericRSTransform.h
+++ b/Modules/Core/Transform/include/otbGenericRSTransform.h
@@ -100,7 +100,9 @@ public:
   itkSetStringMacro(OutputProjectionRef);
   itkGetStringMacro(OutputProjectionRef);
 
-  /** Set/Get Dictionary*/
+  /** Set/Get Dictionary
+   * \deprecated
+   */
   const itk::MetaDataDictionary& GetInputDictionary() const
   {
     return m_InputDictionary;
@@ -123,7 +125,9 @@ public:
     this->Modified();
   }
 
-  /** Set/Get Keywordlist*/
+  /** Set/Get Keywordlist
+   * \deprecated
+   */
 
   itkGetMacro(InputKeywordList, ImageKeywordlist);
   void SetInputKeywordList(const ImageKeywordlist& kwl)
diff --git a/Modules/Core/Transform/include/otbImageToGenericRSOutputParameters.h b/Modules/Core/Transform/include/otbImageToGenericRSOutputParameters.h
index 9a8ea947b0..1a17eac31c 100644
--- a/Modules/Core/Transform/include/otbImageToGenericRSOutputParameters.h
+++ b/Modules/Core/Transform/include/otbImageToGenericRSOutputParameters.h
@@ -148,7 +148,9 @@ public:
     return m_Transform->GetOutputProjectionRef();
   }
 
-  /** Set/Get Input Keywordlist*/
+  /** Set/Get Input Keywordlist
+   * \deprecated
+   */
   void SetInputKeywordList(const ImageKeywordlist& kwl)
   {
     m_Transform->SetOutputKeywordList(kwl);
diff --git a/Modules/Core/Transform/include/otbSensorModelBase.h b/Modules/Core/Transform/include/otbSensorModelBase.h
index 3c223f8520..9071bce41f 100644
--- a/Modules/Core/Transform/include/otbSensorModelBase.h
+++ b/Modules/Core/Transform/include/otbSensorModelBase.h
@@ -73,6 +73,7 @@ public:
   /*
    * Set the Imagekeywordlist and affect the ossim projection ( m_Model)
    * Return false if not model found.
+   * \deprecated
    */
   virtual void SetImageGeometry(const ImageKeywordlist& image_kwl);
 
diff --git a/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.h b/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.h
index 0fd11cdabe..0bdf9b11d5 100644
--- a/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.h
+++ b/Modules/Filtering/Projection/include/otbGenericRSResampleImageFilter.h
@@ -141,7 +141,6 @@ public:
 
   /**
    * Set/Get input & output projections.
-   * Set/Get input & output keywordlist
    * The macro are not used here cause the input and the output are
    * inversed.
    */
@@ -167,7 +166,9 @@ public:
     return m_Transform->GetInputProjectionRef();
   }
 
-  /** Set/Get Input Keywordlist*/
+  /** Set/Get Input Keywordlist
+   * \deprecated
+   */
   void SetInputKeywordList(const ImageKeywordlist& kwl)
   {
     m_Transform->SetOutputKeywordList(kwl);
@@ -178,7 +179,9 @@ public:
     return m_Transform->GetOutputKeywordList();
   }
 
-  /** Set/Get output Keywordlist*/
+  /** Set/Get output Keywordlist
+   * \deprecated
+   */
   void SetOutputKeywordList(const ImageKeywordlist& kwl)
   {
     m_Transform->SetInputKeywordList(kwl);
-- 
GitLab