|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimUnitConversionTool.h>
Public Member Functions | |
| 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 Member Functions | |
| double | computeMeters () const |
Protected Attributes | |
| double | theValue |
| ossimUnitType | theUnitType |
| ossimGpt | theOrigin |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ossimUnitConversionTool &data) |
Definition at line 18 of file ossimUnitConversionTool.h.
| ossimUnitConversionTool::ossimUnitConversionTool | ( | double | value = 1.0, |
| ossimUnitType | unitType = OSSIM_METERS |
||
| ) |
Definition at line 33 of file ossimUnitConversionTool.cpp.
| ossimUnitConversionTool::ossimUnitConversionTool | ( | const ossimGpt & | origin, |
| double | value, | ||
| ossimUnitType | unitType = OSSIM_METERS |
||
| ) |
Definition at line 41 of file ossimUnitConversionTool.cpp.
|
protected |
Definition at line 377 of file ossimUnitConversionTool.cpp.
References DEG_PER_RAD, FT_PER_MILE, ossimGpt::metersPerDegree(), MTRS_PER_FT, ossim::nan(), OSSIM_DEGREES, OSSIM_FEET, OSSIM_METERS, OSSIM_MICRONS, OSSIM_MILES, OSSIM_MILLIMETERS, OSSIM_MINUTES, OSSIM_NAUTICAL_MILES, OSSIM_RADIANS, OSSIM_SECONDS, OSSIM_US_SURVEY_FEET, theOrigin, theUnitType, theValue, US_METERS_PER_FT, ossimDpt::x, and ossimDpt::y.
Referenced by getCentimeters(), getDegrees(), getFeet(), getKilometers(), getMeters(), getMicrons(), getMiles(), getMillimeters(), getNauticalMiles(), getUsSurveyFeet(), and getYards().
| double ossimUnitConversionTool::getCentimeters | ( | ) | const |
Definition at line 338 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_KILOMETERS, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getDegrees | ( | ) | const |
Definition at line 237 of file ossimUnitConversionTool.cpp.
References computeMeters(), DEG_PER_RAD, ossimGpt::metersPerDegree(), OSSIM_DEGREES, OSSIM_MINUTES, OSSIM_RADIANS, OSSIM_SECONDS, theOrigin, theUnitType, theValue, ossimDpt::x, and ossimDpt::y.
Referenced by getMinutes(), getRadians(), getSeconds(), getValue(), operator<<(), and ossimMapProjection::snapTiePointTo().
| double ossimUnitConversionTool::getFeet | ( | ) | const |
Definition at line 292 of file ossimUnitConversionTool.cpp.
References computeMeters(), FT_PER_MTRS, OSSIM_FEET, theUnitType, and theValue.
Referenced by getInches(), getValue(), and operator<<().
| double ossimUnitConversionTool::getInches | ( | ) | const |
Definition at line 358 of file ossimUnitConversionTool.cpp.
References getFeet(), OSSIM_INCHES, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getKilometers | ( | ) | const |
Definition at line 368 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_KILOMETERS, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getMeters | ( | ) | const |
Definition at line 218 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_METERS, theUnitType, and theValue.
Referenced by ossimPointCloudGeometry::convertPos(), ossimLasReader::convertToMeters(), getValue(), operator<<(), ossimTiffWorld::saveToOssimGeom(), and ossimMapProjection::snapTiePointTo().
| double ossimUnitConversionTool::getMicrons | ( | ) | const |
Definition at line 329 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_MICRONS, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getMiles | ( | ) | const |
Definition at line 311 of file ossimUnitConversionTool.cpp.
References computeMeters(), FT_PER_MILE, FT_PER_MTRS, OSSIM_MILES, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getMillimeters | ( | ) | const |
Definition at line 320 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_MILLIMETERS, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getMinutes | ( | ) | const |
Definition at line 265 of file ossimUnitConversionTool.cpp.
References getDegrees(), OSSIM_MINUTES, theUnitType, and theValue.
Referenced by getValue(), and operator<<().
| double ossimUnitConversionTool::getNauticalMiles | ( | ) | const |
Definition at line 301 of file ossimUnitConversionTool.cpp.
References computeMeters(), ossimGpt::metersPerDegree(), OSSIM_NAUTICAL_MILES, theOrigin, theUnitType, theValue, and ossimDpt::y.
Referenced by getValue(), and operator<<().
| ossimGpt ossimUnitConversionTool::getOrigin | ( | ) | const |
| void ossimUnitConversionTool::getOrigin | ( | ossimGpt & | result | ) | const |
| double ossimUnitConversionTool::getRadians | ( | ) | const |
Definition at line 228 of file ossimUnitConversionTool.cpp.
References getDegrees(), OSSIM_RADIANS, RAD_PER_DEG, theUnitType, and theValue.
Referenced by getValue().
| double ossimUnitConversionTool::getSeconds | ( | ) | const |
Definition at line 274 of file ossimUnitConversionTool.cpp.
References getDegrees(), OSSIM_SECONDS, theUnitType, and theValue.
Referenced by getValue(), and operator<<().
| double ossimUnitConversionTool::getUsSurveyFeet | ( | ) | const |
Definition at line 283 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_US_SURVEY_FEET, theUnitType, theValue, and US_METERS_PER_FT.
Referenced by getValue(), and operator<<().
| double ossimUnitConversionTool::getValue | ( | ossimUnitType | unitType = OSSIM_METERS | ) | const |
Definition at line 72 of file ossimUnitConversionTool.cpp.
References getCentimeters(), getDegrees(), getFeet(), getInches(), getKilometers(), getMeters(), getMicrons(), getMiles(), getMillimeters(), getMinutes(), getNauticalMiles(), getRadians(), getSeconds(), getUsSurveyFeet(), getYards(), ossim::nan(), OSSIM_CENTIMETERS, OSSIM_DEGREES, OSSIM_FEET, OSSIM_INCHES, OSSIM_KILOMETERS, OSSIM_METERS, OSSIM_MICRONS, OSSIM_MILES, OSSIM_MILLIMETERS, OSSIM_MINUTES, OSSIM_NAUTICAL_MILES, OSSIM_RADIANS, OSSIM_SECONDS, OSSIM_US_SURVEY_FEET, and OSSIM_YARDS.
Referenced by ossimOgcWktTranslator::fromOssimKwl(), ossimTilingRect::getPaddingSize(), ossimGeoAnnotationEllipseObject::getWidthHeightInPixels(), ossimMapProjection::lineSampleHeightToWorld(), ossimGdalOgrVectorAnnotation::loadOmdFile(), ossimGdalOgrVectorAnnotation::loadState(), ossimMapProjection::loadState(), ossimEsriShapeFileFilter::loadState(), ossimMapProjection::updateFromTransform(), and ossimMapProjection::worldToLineSample().
| double ossimUnitConversionTool::getYards | ( | ) | const |
Definition at line 348 of file ossimUnitConversionTool.cpp.
References computeMeters(), OSSIM_INCHES, theUnitType, and theValue.
Referenced by getValue().
| void ossimUnitConversionTool::setCentimeters | ( | double | value | ) |
Definition at line 198 of file ossimUnitConversionTool.cpp.
References OSSIM_CENTIMETERS, and setValue().
| void ossimUnitConversionTool::setDegrees | ( | double | value | ) |
Definition at line 153 of file ossimUnitConversionTool.cpp.
References OSSIM_DEGREES, and setValue().
| void ossimUnitConversionTool::setFeet | ( | double | value | ) |
Definition at line 173 of file ossimUnitConversionTool.cpp.
References OSSIM_FEET, and setValue().
| void ossimUnitConversionTool::setInches | ( | double | value | ) |
Definition at line 208 of file ossimUnitConversionTool.cpp.
References OSSIM_INCHES, and setValue().
| void ossimUnitConversionTool::setKilometers | ( | double | value | ) |
Definition at line 213 of file ossimUnitConversionTool.cpp.
References OSSIM_KILOMETERS, and setValue().
| void ossimUnitConversionTool::setMeters | ( | double | value | ) |
Definition at line 143 of file ossimUnitConversionTool.cpp.
References OSSIM_METERS, and setValue().
| void ossimUnitConversionTool::setMicrons | ( | double | value | ) |
Definition at line 193 of file ossimUnitConversionTool.cpp.
References OSSIM_MICRONS, and setValue().
| void ossimUnitConversionTool::setMiles | ( | double | value | ) |
Definition at line 183 of file ossimUnitConversionTool.cpp.
References OSSIM_MILES, and setValue().
| void ossimUnitConversionTool::setMillimeters | ( | double | value | ) |
Definition at line 188 of file ossimUnitConversionTool.cpp.
References OSSIM_MILLIMETERS, and setValue().
| void ossimUnitConversionTool::setMinutes | ( | double | value | ) |
Definition at line 158 of file ossimUnitConversionTool.cpp.
References OSSIM_MINUTES, and setValue().
| void ossimUnitConversionTool::setNauticalMiles | ( | double | value | ) |
Definition at line 178 of file ossimUnitConversionTool.cpp.
References OSSIM_NAUTICAL_MILES, and setValue().
| void ossimUnitConversionTool::setOrigin | ( | const ossimGpt & | gpt | ) |
Definition at line 50 of file ossimUnitConversionTool.cpp.
References theOrigin.
Referenced by ossimMapProjection::snapTiePointTo().
| void ossimUnitConversionTool::setRadians | ( | double | value | ) |
Definition at line 148 of file ossimUnitConversionTool.cpp.
References OSSIM_RADIANS, and setValue().
| void ossimUnitConversionTool::setSeconds | ( | double | value | ) |
Definition at line 163 of file ossimUnitConversionTool.cpp.
References OSSIM_SECONDS, and setValue().
| void ossimUnitConversionTool::setUsSurveyFeet | ( | double | value | ) |
Definition at line 168 of file ossimUnitConversionTool.cpp.
References OSSIM_US_SURVEY_FEET, and setValue().
| void ossimUnitConversionTool::setValue | ( | double | value, |
| ossimUnitType | unitType = OSSIM_METERS |
||
| ) |
Definition at line 65 of file ossimUnitConversionTool.cpp.
References theUnitType, and theValue.
Referenced by ossimLasReader::convertToMeters(), ossimOgcWktTranslator::fromOssimKwl(), ossimTilingRect::getConvertedDistance(), ossimTiling::getConvertedTilingDistance(), ossimTiling::getDeltaPerPixel(), ossimTilingRect::getPaddingSize(), ossimGeoAnnotationEllipseObject::getWidthHeightInPixels(), ossimMapProjection::lineSampleHeightToWorld(), ossimMapProjection::loadState(), setCentimeters(), setDegrees(), setFeet(), setInches(), setKilometers(), setMeters(), setMicrons(), setMiles(), setMillimeters(), setMinutes(), setNauticalMiles(), setRadians(), setSeconds(), setUsSurveyFeet(), setYards(), ossimMapProjection::snapTiePointTo(), ossimMapProjection::updateFromTransform(), and ossimMapProjection::worldToLineSample().
| void ossimUnitConversionTool::setYards | ( | double | value | ) |
Definition at line 203 of file ossimUnitConversionTool.cpp.
References OSSIM_YARDS, and setValue().
|
friend |
Definition at line 18 of file ossimUnitConversionTool.cpp.
|
protected |
Definition at line 75 of file ossimUnitConversionTool.h.
Referenced by computeMeters(), getDegrees(), getNauticalMiles(), getOrigin(), and setOrigin().
|
protected |
Definition at line 74 of file ossimUnitConversionTool.h.
Referenced by computeMeters(), getCentimeters(), getDegrees(), getFeet(), getInches(), getKilometers(), getMeters(), getMicrons(), getMiles(), getMillimeters(), getMinutes(), getNauticalMiles(), getRadians(), getSeconds(), getUsSurveyFeet(), getYards(), and setValue().
|
protected |
Definition at line 73 of file ossimUnitConversionTool.h.
Referenced by computeMeters(), getCentimeters(), getDegrees(), getFeet(), getInches(), getKilometers(), getMeters(), getMicrons(), getMiles(), getMillimeters(), getMinutes(), getNauticalMiles(), getRadians(), getSeconds(), getUsSurveyFeet(), getYards(), and setValue().
1.8.14