/usr/include/ossim/elevation/ossimElevCellHandler.h is in libossim-dev 1.8.16-4ubuntu1.
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | //*****************************************************************************
// FILE: ossimElevCellHandler.h
//
// License: See top level LICENSE.txt file.
//
// DESCRIPTION:
// Contains declaration of class osimElevHandler. This class provides a
// base-class interface for the various DEM file formats.
//
// SOFTWARE HISTORY:
//>
// 13Apr2001 Oscar Kramer
// Initial coding.
//<
//*****************************************************************************
// $Id: ossimElevCellHandler.h 21210 2012-07-03 13:11:20Z gpotts $
#ifndef ossimElevCellHandler_HEADER
#define ossimElevCellHandler_HEADER
#include <ossim/base/ossimConstants.h>
#include <ossim/elevation/ossimElevSource.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimIpt.h>
class ossimGpt;
/******************************************************************************
*
* CLASS: ossimElevCellHandler
*
*****************************************************************************/
class OSSIM_DLL ossimElevCellHandler : public ossimElevSource
{
public:
/**
* Constructors:
*/
ossimElevCellHandler (const char* elev_filename);
ossimElevCellHandler (const ossimElevCellHandler& src);
const ossimElevCellHandler& operator=(const ossimElevCellHandler& rhs);
virtual ossimFilename getFilename() const;
/**
* METHOD: getSizeOfElevCell
* Returns the number of post in the cell.
* Note: x = longitude, y = latitude
*/
virtual ossimIpt getSizeOfElevCell() const = 0;
/**
* METHOD: getPostValue
* Returns the value at a given grid point as a double.
*/
virtual double getPostValue(const ossimIpt& gridPt) const = 0;
/**
* METHOD: meanSpacingMeters()
* Implements pure virtual for. This method is used for deterrming
* preferred DEM among multiple overlapping elev sources:
*/
virtual double getMeanSpacingMeters() const;
/**
* METHOD: pointIsInsideRect()
* Method to check if the ground point elevation is defined:
*/
virtual bool pointHasCoverage(const ossimGpt&) const;
virtual bool getAccuracyInfo(ossimElevationAccuracyInfo& info, const ossimGpt& gpt) const;
/**
* METHODS: accuracyLE90(), accuracyCE90()
* Returns the vertical and horizontal accuracy (90% confidence):
*/
// virtual double getAccuracyLE90(const ossimGpt&) const;
// virtual double getAccuracyCE90(const ossimGpt&) const;
bool canConnectMyInputTo(ossim_int32 inputIndex,
const ossimConnectableObject* object)const;
virtual void close(){}
virtual bool open(const ossimFilename&, bool=false){return false;}
protected:
ossimElevCellHandler ();
virtual ~ossimElevCellHandler();
/**
* Virtual method for reading
*/
ossimFilename theFilename;
double theMeanSpacing; // meters
double theAbsLE90;
double theAbsCE90;
TYPE_DATA
};
inline bool ossimElevCellHandler::pointHasCoverage(const ossimGpt& gpt) const
{
return theGroundRect.pointWithin(gpt);
}
#endif
|