/usr/include/ossim/base/ossimNadconGridHeader.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 | //**************************************************************************
// Copyright (C) 2003 Storage Area Networks, Inc.
//
// Written by: Kenneth Melero <kmelero@sanz.com>
//
//**************************************************************************
#ifndef ossimNadconGridHeader_HEADER
#define ossimNadconGridHeader_HEADER
#include <iostream>
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimDrect.h>
class ossimNadconGridHeader
{
public:
friend std::ostream& operator <<(std::ostream& out, const ossimNadconGridHeader& rhs);
ossimNadconGridHeader()
:theCols(0),
theRows(0),
theZ(0),
theMinX(0),
theDx(0),
theMinY(0),
theDy(0)
{
}
bool readHeader(const ossimFilename& file);
bool readHeader(std::istream& in);
int getStartOffset()const
{
return (theCols+2)*4;
}
int getBytesPerRow()const
{
return (theCols+1)*4;
}
int getNumberOfRows()const
{
return theRows;
}
int getNumberOfCols()const
{
return theCols;
}
double getDeltaX()const
{
return (double)theDx;
}
double getDeltaY()const
{
return (double)theDy;
}
ossimDrect getBoundingRect()const
{
return ossimDrect(theMinX,
theMinY + (theRows)*theDy,
theMinX + (theCols)*theDx,
theMinY,
OSSIM_RIGHT_HANDED);
}
double getMinX()const
{
return theMinX;
}
double getMinY()const
{
return theMinY;
}
ossimDpt getSpacing()const
{
return ossimDpt(theDx, theDy);
}
protected:
int* theCharBuf[64];
int theCols;
int theRows;
int theZ;
double theMinX;
double theDx;
double theMinY;
double theDy;
};
#endif
|