/usr/include/ossim/base/ossimUnitConversionTool.h is in libossim-dev 1.8.16-3+b1.
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 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimUnitConversionTool.h 10378 2007-01-26 14:27:21Z gpotts $
#ifndef ossimUnitConversionTool_HEADER
#define ossimUnitConversionTool_HEADER
#include <iostream>
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimGpt.h>
class OSSIM_DLL ossimUnitConversionTool
{
public:
friend std::ostream& operator<<(std::ostream& out,
const ossimUnitConversionTool& data);
ossimUnitConversionTool(double value=1.0,
ossimUnitType unitType=OSSIM_METERS);
ossimUnitConversionTool(const ossimGpt& origin,
double value,
ossimUnitType unitType=OSSIM_METERS);
void setOrigin(const ossimGpt& gpt);
ossimGpt getOrigin()const;
void getOrigin(ossimGpt& result)const;
void setValue(double value, ossimUnitType unitType=OSSIM_METERS);
double getValue(ossimUnitType unitType=OSSIM_METERS) const;
void setMeters(double value);
void setRadians(double value);
void setDegrees(double value);
void setMinutes(double value);
void setSeconds(double value);
void setUsSurveyFeet(double value);
void setFeet(double value);
void setNauticalMiles(double value);
void setMiles(double value);
void setMillimeters(double value);
void setMicrons(double value);
void setCentimeters(double value);
void setYards(double value);
void setInches(double value);
void setKilometers(double value);
double getMeters()const;
double getRadians()const;
double getDegrees()const;
double getMinutes()const;
double getSeconds()const;
double getUsSurveyFeet()const;
double getFeet()const;
double getNauticalMiles()const;
double getMiles()const;
double getMillimeters()const;
double getMicrons()const;
double getCentimeters()const;
double getYards()const;
double getInches()const;
double getKilometers()const;
protected:
double theValue;
ossimUnitType theUnitType;
ossimGpt theOrigin;
double computeMeters()const;
};
#endif
|