|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Generic geoid source which uses a image handler for reading the grid. More...
#include <ossimGeoidImage.h>
Public Member Functions | |
| ossimGeoidImage () | |
| default constructor More... | |
| virtual | ~ossimGeoidImage () |
| destructor More... | |
| virtual bool | open (const ossimFilename &file, ossimByteOrder byteOrder=OSSIM_BIG_ENDIAN) |
| open method More... | |
| virtual ossimString | getShortName () const |
| void | setShortName (const std::string &geoidTypeName) |
| Sets the geoid type name string. More... | |
| bool | getMemoryMapFlag () const |
| Gets the memory map flag. More... | |
| void | setMemoryMapFlag (bool flag) |
| Set the memory map flag. More... | |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| Method to save the state of the object to a keyword list. More... | |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| Method to the load (recreate) the state of the object from a keyword list. More... | |
| virtual double | offsetFromEllipsoid (const ossimGpt &gpt) |
| bool | getEnableFlag () const |
| void | setEnableFlag (bool flag) |
Public Member Functions inherited from ossimGeoid | |
| ossimGeoid () | |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () 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 std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| 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 |
Public Member Functions inherited from ossimErrorStatusInterface | |
| 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 |
| virtual std::ostream & | print (std::ostream &out) const |
| Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
Protected Member Functions | |
| template<class T > | |
| double | offsetFromEllipsoidTemplate (T dummy, const ossimGpt &gpt) |
Protected Member Functions inherited from ossimGeoid | |
| virtual | ~ossimGeoid () |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| ossimRefPtr< ossimImageGeometry > | m_geom |
| ossimRefPtr< ossimImageHandler > | m_handler |
| ossimRefPtr< ossimImageData > | m_cacheTile |
| std::string | m_connectionString |
| ossimString | m_geoidTypeName |
| bool | m_memoryMapFlag |
| bool | m_enabledFlag |
| ossimIrect | m_imageRect |
| ossimScalarType | m_scalarType |
Protected Attributes inherited from ossimErrorStatusInterface | |
| ossimErrorCode | theErrorStatus |
Generic geoid source which uses a image handler for reading the grid.
The settable keyword "geoid.type", e.g. "egm2008" is used to attach a given geoid to an elevation source.
The keyword "type" is fixed for this object as "geoid_image".
Definition at line 35 of file ossimGeoidImage.h.
| ossimGeoidImage::ossimGeoidImage | ( | ) |
default constructor
Definition at line 28 of file ossimGeoidImage.cpp.
|
virtual |
destructor
Definition at line 39 of file ossimGeoidImage.cpp.
References m_cacheTile, m_geom, and m_handler.
| bool ossimGeoidImage::getEnableFlag | ( | ) | const |
| bool ossimGeoidImage::getMemoryMapFlag | ( | ) | const |
Gets the memory map flag.
Definition at line 137 of file ossimGeoidImage.cpp.
References m_memoryMapFlag.
|
virtual |
Reimplemented from ossimObject.
Definition at line 127 of file ossimGeoidImage.cpp.
References m_geoidTypeName.
|
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 ossimObject.
Definition at line 178 of file ossimGeoidImage.cpp.
References ossimKeywordNames::ENABLED_KW, ossimKeywordlist::findKey(), m_connectionString, m_enabledFlag, m_geoidTypeName, m_memoryMapFlag, open(), ossimString::toBool(), and ossimKeywordNames::TYPE_KW.
|
virtual |
Implements ossimGeoid.
Definition at line 218 of file ossimGeoidImage.cpp.
References ossimLookUpTable::getEntryString(), ossimScalarTypeLut::instance(), m_cacheTile, m_enabledFlag, m_geom, m_handler, m_memoryMapFlag, m_scalarType, ossim::nan(), offsetFromEllipsoidTemplate(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SINT16, ossimNotify(), ossimNotifyLevel_WARN, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 271 of file ossimGeoidImage.cpp.
References ossimGpt::changeDatum(), ossimImageData::getBuf(), ossimImageData::getNullPix(), ossimImageData::getOrigin(), ossimImageSource::getTile(), ossimImageData::getWidth(), ossimIrect::height(), ossimDatumFactory::instance(), m_cacheTile, m_geom, m_handler, m_imageRect, m_memoryMapFlag, ossim::nan(), ossimIrect::pointWithin(), ossimRefPtr< T >::valid(), ossimIrect::width(), ossimImageGeometry::worldToLocal(), ossimGpt::wrap(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by offsetFromEllipsoid().
|
virtual |
open method
| file | This can be any image that ossim can open and get geometry info for. |
| byteOrder | Not used by this object. |
Implements ossimGeoid.
Definition at line 46 of file ossimGeoidImage.cpp.
References ossimImageHandler::close(), ossimImageHandler::getImageGeometry(), ossimImageHandler::getImageRectangle(), ossimImageSource::getOutputScalarType(), ossimImageGeometry::getProjection(), ossimImageSource::getTile(), ossimImageHandlerRegistry::instance(), m_cacheTile, m_geom, m_handler, m_imageRect, m_memoryMapFlag, m_scalarType, ossimImageHandlerRegistry::open(), ossimNotify(), ossimNotifyLevel_WARN, ossimRefPtr< T >::valid(), and ossimException::what().
Referenced by loadState().
|
virtual |
Method to save the state of the object to a keyword list.
Return true if ok or false on error.
Reimplemented from ossimObject.
Definition at line 147 of file ossimGeoidImage.cpp.
References ossimKeywordlist::addPair(), ossimKeywordNames::ENABLED_KW, m_connectionString, m_enabledFlag, m_geoidTypeName, m_memoryMapFlag, ossimString::string(), true, and ossimKeywordNames::TYPE_KW.
| void ossimGeoidImage::setEnableFlag | ( | bool | flag | ) |
| void ossimGeoidImage::setMemoryMapFlag | ( | bool | flag | ) |
Set the memory map flag.
Definition at line 142 of file ossimGeoidImage.cpp.
References m_memoryMapFlag.
| void ossimGeoidImage::setShortName | ( | const std::string & | geoidTypeName | ) |
Sets the geoid type name string.
Definition at line 132 of file ossimGeoidImage.cpp.
References m_geoidTypeName.
|
protected |
Definition at line 107 of file ossimGeoidImage.h.
Referenced by offsetFromEllipsoid(), offsetFromEllipsoidTemplate(), open(), and ~ossimGeoidImage().
|
protected |
Definition at line 108 of file ossimGeoidImage.h.
Referenced by loadState(), and saveState().
|
protected |
Definition at line 111 of file ossimGeoidImage.h.
Referenced by loadState(), offsetFromEllipsoid(), and saveState().
|
protected |
Definition at line 109 of file ossimGeoidImage.h.
Referenced by getShortName(), loadState(), saveState(), and setShortName().
|
protected |
Definition at line 105 of file ossimGeoidImage.h.
Referenced by offsetFromEllipsoid(), offsetFromEllipsoidTemplate(), open(), and ~ossimGeoidImage().
|
protected |
Definition at line 106 of file ossimGeoidImage.h.
Referenced by offsetFromEllipsoid(), offsetFromEllipsoidTemplate(), open(), and ~ossimGeoidImage().
|
protected |
Definition at line 112 of file ossimGeoidImage.h.
Referenced by offsetFromEllipsoidTemplate(), and open().
|
protected |
Definition at line 110 of file ossimGeoidImage.h.
Referenced by getMemoryMapFlag(), loadState(), offsetFromEllipsoid(), offsetFromEllipsoidTemplate(), open(), saveState(), and setMemoryMapFlag().
|
protected |
Definition at line 113 of file ossimGeoidImage.h.
Referenced by offsetFromEllipsoid(), and open().
1.8.14