LCOV - code coverage report
Current view: top level - frmts/pcidsk/sdk - pcidsk_poly.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 0 1 0.0 %
Date: 2024-05-04 12:52:34 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Purpose: Interface representing access to a PCIDSK Polynomial Segment
       4             :  *
       5             :  ******************************************************************************
       6             :  * Copyright (c) 2009
       7             :  * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada.
       8             :  *
       9             :  * Permission is hereby granted, free of charge, to any person obtaining a
      10             :  * copy of this software and associated documentation files (the "Software"),
      11             :  * to deal in the Software without restriction, including without limitation
      12             :  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
      13             :  * and/or sell copies of the Software, and to permit persons to whom the
      14             :  * Software is furnished to do so, subject to the following conditions:
      15             :  *
      16             :  * The above copyright notice and this permission notice shall be included
      17             :  * in all copies or substantial portions of the Software.
      18             :  *
      19             :  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
      20             :  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      21             :  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
      22             :  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      23             :  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
      24             :  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
      25             :  * DEALINGS IN THE SOFTWARE.
      26             :  ****************************************************************************/
      27             : #ifndef INCLUDE_PCIDSK_PCIDSK_POLY_H
      28             : #define INCLUDE_PCIDSK_PCIDSK_POLY_H
      29             : 
      30             : #include <vector>
      31             : #include <string>
      32             : 
      33             : namespace PCIDSK {
      34             : //! Interface to PCIDSK Polynomial segment.
      35             :     class PCIDSKPolySegment
      36             :     {
      37             :     public:
      38             :         //Get the coefficients
      39             :         virtual std::vector<double> GetXForwardCoefficients() const=0;
      40             :         virtual std::vector<double> GetYForwardCoefficients() const=0;
      41             :         virtual std::vector<double> GetXBackwardCoefficients() const=0;
      42             :         virtual std::vector<double> GetYBackwardCoefficients() const=0;
      43             : 
      44             :         //Set the coefficients
      45             :         virtual void SetCoefficients(const std::vector<double>& oXForward,
      46             :                                      const std::vector<double>& oYForward,
      47             :                                      const std::vector<double>& oXBackward,
      48             :                                      const std::vector<double>& oYBackward) =0;
      49             : 
      50             :         // Get the number of lines
      51             :         virtual unsigned int GetLines() const=0;
      52             :         // Get the number of pixels
      53             :         virtual unsigned int GetPixels() const=0;
      54             :         // Set the number of lines/pixels
      55             :         virtual void SetRasterSize(unsigned int nLines,unsigned int nPixels) =0;
      56             : 
      57             :         // Get the Geosys String
      58             :         virtual std::string GetGeosysString() const=0;
      59             :         // Set the Geosys string
      60             :         virtual void SetGeosysString(const std::string& oGeosys) =0;
      61             : 
      62             :         //Get the projection information
      63             :         virtual std::vector<double> GetProjParamInfo() const=0;
      64             :         //Set the projection information
      65             :         virtual void SetProjParamInfo(const std::vector<double>& oInfo) =0;
      66             : 
      67             :         // Virtual destructor
      68           0 :         virtual ~PCIDSKPolySegment() {}
      69             :     };
      70             : }
      71             : 
      72             : #endif // INCLUDE_PCIDSK_PCIDSK_POLY_H

Generated by: LCOV version 1.14