/usr/include/ossim/projection/ossimQuadProjection.h is in libossim-dev 1.7.21-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//********************************************************************
// $Id: ossimQuadProjection.h 11805 2007-10-05 14:54:28Z dburken $
#ifndef ossimQuadProjection_HEADER
#define ossimQuadProjection_HEADER
#include <ossim/projection/ossimProjection.h>
#include <ossim/base/ossimIrect.h>
#include <ossim/base/ossimDblGrid.h>
class ossimQuadProjection : public ossimProjection
{
public:
ossimQuadProjection();
ossimQuadProjection(const ossimQuadProjection& rhs);
ossimQuadProjection(const ossimIrect& rect,
const ossimGpt& ulg,
const ossimGpt& urg,
const ossimGpt& lrg,
const ossimGpt& llg);
virtual ~ossimQuadProjection();
virtual ossimObject *dup()const;
virtual ossimGpt origin()const;
virtual void worldToLineSample(const ossimGpt& worldPoint,
ossimDpt& lineSampPt) const;
/*!
* METHOD: lineSampleToWorld()
* Performs the inverse projection from line, sample to ground (world):
*/
virtual void lineSampleToWorld(const ossimDpt& lineSampPt,
ossimGpt& worldPt) const;
/*!
* METHOD: lineSampleHeightToWorld
* This is the pure virtual that projects the image point to the given
* elevation above ellipsoid, thereby bypassing reference to a DEM. Useful
* for projections that are sensitive to elevation (such as sensor models).
*/
virtual void lineSampleHeightToWorld(const ossimDpt& lineSampPt,
const double& heightAboveEllipsoid,
ossimGpt& worldPt) const;
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=0)const;
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=0);
virtual bool operator==(const ossimProjection& projection) const;
virtual ossimDpt getMetersPerPixel() const;
/**
* @brief Implementation of pure virtual
* ossimProjection::isAffectedByElevation method.
* @return false.
*/
virtual bool isAffectedByElevation() const { return false; }
protected:
ossimIrect theInputRect;
ossimGpt theUlg;
ossimGpt theUrg;
ossimGpt theLrg;
ossimGpt theLlg;
ossimDblGrid theLatGrid;
ossimDblGrid theLonGrid;
void initializeGrids();
ossimGpt extrapolate(const ossimDpt& imagePoint,
const double& height) const;
TYPE_DATA
};
#endif /* #ifndef ossimQuadProjection_HEADER */
|