/usr/include/ossim/util/ossimRpfUtil.h is in libossim-dev 2.2.2-1.
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 | //----------------------------------------------------------------------------
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description: ossimRpfUtil.h
//
// Utility class to stuff with rpf files.
//
//----------------------------------------------------------------------------
// $Id$
#ifndef ossimRpfUtil_HEADER
#define ossimRpfUtil_HEADER 1
#include <ossim/base/ossimReferenced.h>
#include <ossim/imaging/ossimImageGeometry.h>
class ossimFilename;
class ossimGpt;
class ossimRpfToc;
class ossimRpfTocEntry;
class OSSIM_DLL ossimRpfUtil : public ossimReferenced
{
public:
/** @brief default constructor */
ossimRpfUtil();
/**
* @brief Write dot rpf file(s) to output directory from a.toc file.
*
* This creates a dot rpf file for each entry.
*
* @param aDotFile The a.toc file.
*
* @param outputDir Directory to write dot rpf file(s) to.
*
* throws ossimException on error.
*/
void writeDotRpfFiles( const ossimFilename& aDotTocFile,
const ossimFilename& outputDir);
void writeDotRpfFile( const ossimRpfToc* toc,
const ossimRpfTocEntry* tocEntry,
const ossimFilename& outputDir,
ossim_uint32 entry);
protected:
/**
* @brief protected virtual destructor
*
* Do not call directly. Use as a ref ptr.
*/
virtual ~ossimRpfUtil();
private:
/**
* @brief Method to test for 360 spread, 180.0 <--> 180.00 and set
* leftLon to -180 if both left and right are 180.0 degrees.
*
* This adds a small tolerance to the test.
*
* @param left Left hand side of scene. This is the value
* that will be flipped to -180 if test is true.
*
* @param right Right hand side of scene.
*/
void checkLongitude(ossimGpt& left, ossimGpt& right) const;
/** @brief Method to get the file for entry. */
void getDotRfpFilenameForEntry(const ossimFilename& outputDir,
ossim_uint32 entry,
ossimFilename& outFile) const;
}; // Matches: class ossimRpfUtil
#endif /* #ifndef ossimRpfUtil_HEADER */
|