LCOV - code coverage report
Current view: top level - frmts/pcidsk/sdk - pcidsk_rpc.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 0 1 0.0 %
Date: 2024-11-25 13:07:18 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Purpose: Interface representing access to a PCIDSK RPC Segment
       4             :  *
       5             :  ******************************************************************************
       6             :  * Copyright (c) 2009
       7             :  * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada.
       8             :  *
       9             :  * SPDX-License-Identifier: MIT
      10             :  ****************************************************************************/
      11             : #ifndef INCLUDE_PCIDSK_PCIDSK_RPC_H
      12             : #define INCLUDE_PCIDSK_PCIDSK_RPC_H
      13             : 
      14             : #include <vector>
      15             : #include <string>
      16             : 
      17             : namespace PCIDSK {
      18             : //! Interface to PCIDSK RPC segment.
      19             :     class PCIDSKRPCSegment
      20             :     {
      21             :     public:
      22             : 
      23             :         // Get the X and Y RPC coefficients
      24             :         virtual std::vector<double> GetXNumerator(void) const = 0;
      25             :         virtual std::vector<double> GetXDenominator(void) const = 0;
      26             :         virtual std::vector<double> GetYNumerator(void) const = 0;
      27             :         virtual std::vector<double> GetYDenominator(void) const = 0;
      28             : 
      29             :         // Set the X and Y RPC Coefficients
      30             :         virtual void SetCoefficients(const std::vector<double>& xnum,
      31             :             const std::vector<double>& xdenom, const std::vector<double>& ynum,
      32             :             const std::vector<double>& ydenom) = 0;
      33             : 
      34             :         // Get the RPC offset/scale Coefficients
      35             :         virtual void GetRPCTranslationCoeffs(double& xoffset, double& xscale,
      36             :             double& yoffset, double& yscale, double& zoffset, double& zscale,
      37             :             double& pixoffset, double& pixscale, double& lineoffset, double& linescale) const = 0;
      38             : 
      39             :         // Set the RPC offset/scale Coefficients
      40             :         virtual void SetRPCTranslationCoeffs(const double xoffset, const double xscale,
      41             :             const double yoffset, const double yscale,
      42             :             const double zoffset, const double zscale,
      43             :             const double pixoffset, const double pixscale,
      44             :             const double lineoffset, const double linescale) = 0;
      45             : 
      46             :         // Get the adjusted X values
      47             :         virtual std::vector<double> GetAdjXValues(void) const = 0;
      48             :         // Get the adjusted Y values
      49             :         virtual std::vector<double> GetAdjYValues(void) const = 0;
      50             : 
      51             :         // Set the adjusted X/Y values
      52             :         virtual void SetAdjCoordValues(const std::vector<double>& xcoord,
      53             :             const std::vector<double>& ycoord) = 0;
      54             : 
      55             :         // Get whether or not this is a user-generated RPC model
      56             :         virtual bool IsUserGenerated(void) const = 0;
      57             :         // Set whether or not this is a user-generated RPC model
      58             :         virtual void SetUserGenerated(bool usergen) = 0;
      59             : 
      60             :         // Get whether the model has been adjusted
      61             :         virtual bool IsNominalModel(void) const = 0;
      62             :         // Set whether the model has been adjusted
      63             :         virtual void SetIsNominalModel(bool nominal) = 0;
      64             : 
      65             :         // Get sensor name
      66             :         virtual std::string GetSensorName(void) const = 0;
      67             :         // Set sensor name
      68             :         virtual void SetSensorName(const std::string& name) = 0;
      69             : 
      70             :         // Output projection information of RPC Model
      71             :         // Get the Geosys String
      72             :         virtual void GetMapUnits(std::string& map_units, std::string& proj_parms) const = 0;
      73             :         // Set the Geosys string
      74             :         virtual void SetMapUnits(std::string const& map_units, std::string const& proj_parms) = 0;
      75             : 
      76             :         // Get the number of lines
      77             :         virtual unsigned int GetLines(void) const = 0;
      78             : 
      79             :         // Get the number of pixels
      80             :         virtual unsigned int GetPixels(void) const = 0;
      81             : 
      82             :         // Set the number of lines/pixels
      83             :         virtual void SetRasterSize(const unsigned int lines, const unsigned int pixels) = 0;
      84             : 
      85             :         // Set/get the downsample factor
      86             :         virtual void SetDownsample(const unsigned int downsample) = 0;
      87             :         virtual unsigned int GetDownsample(void) const = 0;
      88             : 
      89             :         // TODO: Setting/getting detailed projection params (just GCTP params?)
      90             : 
      91             :         // Virtual destructor
      92           0 :         virtual ~PCIDSKRPCSegment() {}
      93             :     };
      94             : }
      95             : 
      96             : #endif // INCLUDE_PCIDSK_PCIDSK_RPC_H

Generated by: LCOV version 1.14