OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimShapeFile.h>
Public Member Functions | |
ossimShapeObject () | |
~ossimShapeObject () | |
void | setShape (SHPObject *obj) |
bool | isLoaded () const |
long | getIndex () const |
long | getId () const |
bool | loadShape (const ossimShapeFile &shapeFile, long shapeRecord) |
ossim_uint32 | getNumberOfParts () const |
ossim_uint32 | getNumberOfVertices () const |
void | getBounds (double &minX, double &minY, double &minZ, double &minM, double &maxX, double &maxY, double &maxZ, double &maxM) const |
void | getBounds (double &minX, double &minY, double &maxX, double &maxY) const |
void | getBoundingRect (ossimDrect &result, ossimCoordSysOrientMode orient=OSSIM_RIGHT_HANDED) const |
ossimDrect | getBoundingRect (ossimCoordSysOrientMode orient=OSSIM_RIGHT_HANDED) const |
int | getType () const |
ossimString | getTypeByName () const |
int | getPartType (ossim_uint32 partIndex) const |
ossimString | getPartByName (ossim_uint32 partIndex) const |
SHPObject * | getShapeObject () |
const SHPObject * | getShapeObject () const |
Protected Attributes | |
SHPObject * | theShape |
long | theIndex |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimShapeObject &rhs) |
Definition at line 28 of file ossimShapeFile.h.
ossimShapeObject::ossimShapeObject | ( | ) |
Definition at line 69 of file ossimShapeFile.cpp.
ossimShapeObject::~ossimShapeObject | ( | ) |
Definition at line 75 of file ossimShapeFile.cpp.
References SHPDestroyObject(), and theShape.
void ossimShapeObject::getBoundingRect | ( | ossimDrect & | result, |
ossimCoordSysOrientMode | orient = OSSIM_RIGHT_HANDED |
||
) | const |
Definition at line 84 of file ossimShapeFile.cpp.
References getBounds(), ossimDrect::makeNan(), OSSIM_RIGHT_HANDED, and theShape.
Referenced by getBoundingRect().
ossimDrect ossimShapeObject::getBoundingRect | ( | ossimCoordSysOrientMode | orient = OSSIM_RIGHT_HANDED | ) | const |
Definition at line 220 of file ossimShapeFile.cpp.
References getBoundingRect().
void ossimShapeObject::getBounds | ( | double & | minX, |
double & | minY, | ||
double & | minZ, | ||
double & | minM, | ||
double & | maxX, | ||
double & | maxY, | ||
double & | maxZ, | ||
double & | maxM | ||
) | const |
Definition at line 181 of file ossimShapeFile.cpp.
References SHPObject::dfMMax, SHPObject::dfMMin, SHPObject::dfXMax, SHPObject::dfXMin, SHPObject::dfYMax, SHPObject::dfYMin, SHPObject::dfZMax, SHPObject::dfZMin, ossim::nan(), and theShape.
Referenced by getBoundingRect(), and operator<<().
void ossimShapeObject::getBounds | ( | double & | minX, |
double & | minY, | ||
double & | maxX, | ||
double & | maxY | ||
) | const |
Definition at line 203 of file ossimShapeFile.cpp.
References SHPObject::dfXMax, SHPObject::dfXMin, SHPObject::dfYMax, SHPObject::dfYMin, ossim::nan(), and theShape.
long ossimShapeObject::getId | ( | ) | const |
Definition at line 130 of file ossimShapeFile.cpp.
References SHPObject::nShapeId, and theShape.
Referenced by ossimEsriShapeFileFilter::loadArc(), ossimEsriShapeFileFilter::loadPoint(), ossimEsriShapeFileFilter::loadPolygon(), and operator<<().
long ossimShapeObject::getIndex | ( | ) | const |
ossim_uint32 ossimShapeObject::getNumberOfParts | ( | ) | const |
Definition at line 161 of file ossimShapeFile.cpp.
References SHPObject::nParts, and theShape.
Referenced by getPartByName(), getPartType(), ossimEsriShapeFileFilter::loadArc(), ossimEsriShapeFileFilter::loadPolygon(), and operator<<().
ossim_uint32 ossimShapeObject::getNumberOfVertices | ( | ) | const |
Definition at line 171 of file ossimShapeFile.cpp.
References SHPObject::nVertices, and theShape.
Referenced by ossimEsriShapeFileFilter::loadPoint(), and operator<<().
ossimString ossimShapeObject::getPartByName | ( | ossim_uint32 | partIndex | ) | const |
Definition at line 259 of file ossimShapeFile.cpp.
References getNumberOfParts(), SHPObject::panPartType, SHPP_INNERRING, SHPP_OUTERRING, SHPP_RING, SHPP_TRIFAN, SHPP_TRISTRIP, and theShape.
Referenced by ossimEsriShapeFileFilter::loadArc(), and ossimEsriShapeFileFilter::loadPolygon().
int ossimShapeObject::getPartType | ( | ossim_uint32 | partIndex | ) | const |
Definition at line 248 of file ossimShapeFile.cpp.
References getNumberOfParts(), SHPObject::panPartType, and theShape.
Referenced by ossimEsriShapeFileFilter::loadArc(), and ossimEsriShapeFileFilter::loadPolygon().
SHPObject * ossimShapeObject::getShapeObject | ( | ) |
Definition at line 296 of file ossimShapeFile.cpp.
References theShape.
Referenced by ossimEsriShapeFileFilter::loadArc(), ossimEsriShapeFileFilter::loadPoint(), and ossimEsriShapeFileFilter::loadPolygon().
const SHPObject * ossimShapeObject::getShapeObject | ( | ) | const |
int ossimShapeObject::getType | ( | ) | const |
Definition at line 230 of file ossimShapeFile.cpp.
References SHPObject::nSHPType, SHPT_NULL, and theShape.
ossimString ossimShapeObject::getTypeByName | ( | ) | const |
Definition at line 239 of file ossimShapeFile.cpp.
References SHPObject::nSHPType, SHPTypeName(), and theShape.
Referenced by ossimEsriShapeFileFilter::loadArc(), ossimEsriShapeFileFilter::loadPolygon(), and operator<<().
bool ossimShapeObject::isLoaded | ( | ) | const |
bool ossimShapeObject::loadShape | ( | const ossimShapeFile & | shapeFile, |
long | shapeRecord | ||
) |
Definition at line 140 of file ossimShapeFile.cpp.
References ossimShapeFile::getHandle(), ossimShapeFile::isOpen(), SHPDestroyObject(), SHPReadObject(), theIndex, and theShape.
Referenced by ossimEsriShapeFileFilter::loadShapeFile(), and ossimShapeFile::print().
void ossimShapeObject::setShape | ( | SHPObject * | obj | ) |
Definition at line 109 of file ossimShapeFile.cpp.
References SHPDestroyObject(), and theShape.
|
friend |
Definition at line 18 of file ossimShapeFile.cpp.
|
protected |
Definition at line 74 of file ossimShapeFile.h.
Referenced by getIndex(), and loadShape().
|
protected |
Definition at line 73 of file ossimShapeFile.h.
Referenced by getBoundingRect(), getBounds(), getId(), getNumberOfParts(), getNumberOfVertices(), getPartByName(), getPartType(), getShapeObject(), getType(), getTypeByName(), isLoaded(), loadShape(), operator<<(), setShape(), and ~ossimShapeObject().