OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimQuadProjection.h>
Public Member Functions | |
ossimQuadProjection () | |
ossimQuadProjection (const ossimQuadProjection &rhs) | |
ossimQuadProjection (const ossimIrect &rect, const ossimGpt &ulg, const ossimGpt &urg, const ossimGpt &lrg, const ossimGpt &llg) | |
virtual ossimObject * | dup () const |
virtual ossimGpt | origin () const |
virtual void | worldToLineSample (const ossimGpt &worldPoint, ossimDpt &lineSampPt) const |
virtual void | lineSampleToWorld (const ossimDpt &lineSampPt, ossimGpt &worldPt) const |
virtual void | lineSampleHeightToWorld (const ossimDpt &lineSampPt, const double &heightAboveEllipsoid, ossimGpt &worldPt) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | operator== (const ossimProjection &projection) const |
virtual ossimDpt | getMetersPerPixel () const |
virtual bool | isAffectedByElevation () const |
Implementation of pure virtual ossimProjection::isAffectedByElevation method. More... | |
![]() | |
ossimProjection () | |
virtual | ~ossimProjection () |
virtual ossimDpt | forward (const ossimGpt &wp) const |
virtual ossimGpt | inverse (const ossimDpt &pp) const |
virtual void | getRoundTripError (const ossimDpt &imagePoint, ossimDpt &errorResult) const |
virtual void | getRoundTripError (const ossimGpt &groundPoint, ossimDpt &errorResult) const |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
virtual void | getGroundClipPoints (ossimGeoPolygon &gpts) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual bool | operator!= (const ossimProjection &projection) const |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
Protected Member Functions | |
virtual | ~ossimQuadProjection () |
void | initializeGrids () |
ossimGpt | extrapolate (const ossimDpt &imagePoint, const double &height) const |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimIrect | theInputRect |
ossimGpt | theUlg |
ossimGpt | theUrg |
ossimGpt | theLrg |
ossimGpt | theLlg |
ossimDblGrid | theLatGrid |
ossimDblGrid | theLonGrid |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 16 of file ossimQuadProjection.h.
ossimQuadProjection::ossimQuadProjection | ( | ) |
Definition at line 23 of file ossimQuadProjection.cpp.
References ossimGpt::makeNan(), ossimIrect::makeNan(), theInputRect, theLlg, theLrg, theUlg, and theUrg.
Referenced by dup().
ossimQuadProjection::ossimQuadProjection | ( | const ossimQuadProjection & | rhs | ) |
Definition at line 33 of file ossimQuadProjection.cpp.
ossimQuadProjection::ossimQuadProjection | ( | const ossimIrect & | rect, |
const ossimGpt & | ulg, | ||
const ossimGpt & | urg, | ||
const ossimGpt & | lrg, | ||
const ossimGpt & | llg | ||
) |
|
protectedvirtual |
Definition at line 59 of file ossimQuadProjection.cpp.
|
virtual |
Implements ossimProjection.
Definition at line 63 of file ossimQuadProjection.cpp.
References ossimQuadProjection().
|
protected |
Definition at line 455 of file ossimQuadProjection.cpp.
References ossimDpt::hasNans(), ossimGpt::hgt, ossim::isnan(), ossimGpt::lat, ossimDpt::length(), lineSampleHeightToWorld(), lineSampleToWorld(), ossimGpt::lon, ossimIrect::midPoint(), ossim::nan(), and theInputRect.
Referenced by lineSampleHeightToWorld().
|
virtual |
ACCESS METHODS:
Implements ossimProjection.
Definition at line 405 of file ossimQuadProjection.cpp.
References lineSampleToWorld(), ossimEcefVector::magnitude(), ossimIrect::midPoint(), theInputRect, and ossimDpt::x.
|
protected |
Definition at line 432 of file ossimQuadProjection.cpp.
References ossimIrect::height(), ossimDblGrid::initialize(), ossimGpt::latd(), ossimGpt::lond(), ossim::nan(), ossimDblGrid::setNode(), ossimDblGrid::setNullValue(), theInputRect, theLatGrid, theLlg, theLonGrid, theLrg, theUlg, theUrg, ossimIrect::ul(), ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
Referenced by loadState(), and ossimQuadProjection().
|
inlinevirtual |
Implementation of pure virtual ossimProjection::isAffectedByElevation method.
Implements ossimProjection.
Definition at line 62 of file ossimQuadProjection.h.
|
virtual |
METHOD: lineSampleHeightToWorld This is the pure virtual that projects the image point to the given elevation above ellipsoid, thereby bypassing reference to a DEM. Useful for projections that are sensitive to elevation (such as sensor models).
Implements ossimProjection.
Definition at line 107 of file ossimQuadProjection.cpp.
References ossimGpt::datum(), extrapolate(), ossimElevManager::getHeightAboveEllipsoid(), ossimIrect::hasNans(), ossimGpt::hgt, ossimElevManager::instance(), ossimGpt::isLatNan(), ossimGpt::isLonNan(), ossimGpt::lat, ossimGpt::lon, ossimGpt::makeNan(), ossimIrect::pointWithin(), theInputRect, theLatGrid, theLlg, theLonGrid, theLrg, theUlg, and theUrg.
Referenced by extrapolate(), and lineSampleToWorld().
|
virtual |
METHOD: lineSampleToWorld() Performs the inverse projection from line, sample to ground (world):
Implements ossimProjection.
Definition at line 98 of file ossimQuadProjection.cpp.
References lineSampleHeightToWorld(), and ossim::nan().
Referenced by extrapolate(), and getMetersPerPixel().
|
virtual |
Method to the load (recreate) the state of the object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimProjection.
Definition at line 269 of file ossimQuadProjection.cpp.
References ossimDatumFactory::create(), ossimGpt::datum(), ossimKeywordNames::DATUM_KW, ossimKeywordlist::find(), initializeGrids(), ossimDatumFactory::instance(), ossimGpt::latd(), ossimKeywordNames::LL_LAT_KW, ossimKeywordNames::LL_LON_KW, ossimProjection::loadState(), ossimGpt::lond(), ossimKeywordNames::LR_LAT_KW, ossimKeywordNames::LR_LON_KW, ossimIpt::makeNan(), ossimGpt::makeNan(), ossimIrect::makeNan(), ossim::nan(), theInputRect, theLlg, theLrg, theUlg, theUrg, ossimString::toDouble(), ossimString::toInt32(), ossimString::toUInt32(), ossimKeywordNames::UL_LAT_KW, ossimKeywordNames::UL_LON_KW, ossimKeywordNames::UL_X_KW, ossimKeywordNames::UL_Y_KW, ossimKeywordNames::UR_LAT_KW, ossimKeywordNames::UR_LON_KW, ossimIpt::x, and ossimIpt::y.
|
virtual |
OPERATOR: == Compares this instance with arg projection.
Implements ossimProjection.
Definition at line 400 of file ossimQuadProjection.cpp.
|
virtual |
METHOD: origin() Returns projection's ground point origin. That is the GP corresponding to line=0, sample=0.
Implements ossimProjection.
Definition at line 68 of file ossimQuadProjection.cpp.
References ossimGpt::datum(), ossimGpt::isLatNan(), ossimGpt::isLonNan(), ossimGpt::latd(), ossimGpt::lond(), ossimGpt::makeNan(), theLlg, theLrg, theUlg, and theUrg.
|
virtual |
METHODS: saveState, loadState Fulfills ossimObject base-class pure virtuals.
Reimplemented from ossimProjection.
Definition at line 141 of file ossimQuadProjection.cpp.
References ossimKeywordlist::add(), ossimDatum::code(), ossimGpt::datum(), ossimKeywordNames::DATUM_KW, ossimIrect::hasNans(), ossimIrect::height(), ossimGpt::isLatNan(), ossimGpt::isLonNan(), ossimGpt::latd(), ossimKeywordNames::LL_LAT_KW, ossimKeywordNames::LL_LON_KW, ossimGpt::lond(), ossimKeywordNames::LR_LAT_KW, ossimKeywordNames::LR_LON_KW, ossimProjection::saveState(), theInputRect, theLlg, theLrg, theUlg, theUrg, ossimIrect::ul(), ossimKeywordNames::UL_LAT_KW, ossimKeywordNames::UL_LON_KW, ossimKeywordNames::UL_X_KW, ossimKeywordNames::UL_Y_KW, ossimKeywordNames::UR_LAT_KW, ossimKeywordNames::UR_LON_KW, ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
|
virtual |
METHOD: worldToLineSample() Performs the forward projection from ground point to line, sample.
Implements ossimProjection.
Definition at line 92 of file ossimQuadProjection.cpp.
References ossimProjection::worldToLineSample().
|
protected |
Definition at line 67 of file ossimQuadProjection.h.
Referenced by extrapolate(), getMetersPerPixel(), initializeGrids(), lineSampleHeightToWorld(), loadState(), ossimQuadProjection(), and saveState().
|
protected |
Definition at line 73 of file ossimQuadProjection.h.
Referenced by initializeGrids(), and lineSampleHeightToWorld().
|
protected |
Definition at line 71 of file ossimQuadProjection.h.
Referenced by initializeGrids(), lineSampleHeightToWorld(), loadState(), origin(), ossimQuadProjection(), and saveState().
|
protected |
Definition at line 74 of file ossimQuadProjection.h.
Referenced by initializeGrids(), and lineSampleHeightToWorld().
|
protected |
Definition at line 70 of file ossimQuadProjection.h.
Referenced by initializeGrids(), lineSampleHeightToWorld(), loadState(), origin(), ossimQuadProjection(), and saveState().
|
protected |
Definition at line 68 of file ossimQuadProjection.h.
Referenced by initializeGrids(), lineSampleHeightToWorld(), loadState(), origin(), ossimQuadProjection(), and saveState().
|
protected |
Definition at line 69 of file ossimQuadProjection.h.
Referenced by initializeGrids(), lineSampleHeightToWorld(), loadState(), origin(), ossimQuadProjection(), and saveState().