#include <TeGeometry.h>

Definition at line 748 of file TeGeometry.h.
Public Types | |
| typedef TeComposite < TeNode >::iterator | iterator |
| An Iterator that enables forward traversal of a TeGeomComposite. | |
| typedef TeComposite < TeNode > ::reverse_iterator | reverse_iterator |
| An Iterator that enables backward traversal of a TeGeomComposite. | |
| typedef TeNode | value_type |
| The type of the value obtained by dereferencing a TeGeomComposite iterator. | |
Public Member Functions | |
| void | add (const TeNode &elem) |
| Adds a new component. | |
| TeComposite< TeNode > ::iterator const | begin () const |
| The iterator to the first position in the TeGeomComposite. | |
| TeComposite< TeNode > ::iterator | begin () |
| The iterator to the first position in the TeGeomComposite. | |
| TeBox & | box () |
| Returns the bounding box. | |
| const TeBox & | box () const |
| Returns the constant bounding box. | |
| void | clear () |
| Removes all elements. | |
| void | copyElements (const TeGeomComposite &other) |
| Copy two composites, duplicating elements (breaking handle/body idiom). | |
| TeGeomRep | elemType () const |
| Returns the basic geometry in a set of geometries structure. | |
| bool | empty () const |
| Returns TRUE if composite is empty. | |
| TeComposite< TeNode > ::iterator const | end () const |
| The iterator to the last plus one position in the TeGeomComposite. | |
| TeComposite< TeNode > ::iterator | end () |
| The iterator to the last plus one position in the TeGeomComposite. | |
| TeComposite< TeNode > ::iterator | erase (typename TeComposite< TeNode >::iterator it) |
| Removes the element pointed by an interator. | |
| bool | erase (TeNode &object) |
| Removes an element. | |
| bool | erase (int i) |
| Removes the i-th component. | |
| TeNode & | first () const |
| Returns the first element. | |
| void | geomId (int id) |
| Sets the geometryId. | |
| int | geomId () const |
| Returns the geometry Id. | |
| virtual bool | isRing () const |
| Returns TRUE if a geometry is a closed ring. | |
| TeNode & | last () const |
| Returns the i-th element. | |
| virtual void | objectId (const string &id) |
| Sets the objectId. | |
| virtual void | objectId (const string &id) |
| Sets the identification of the object associated to this geometry. | |
| virtual string | objectId () const |
| Returns the identification of the object associated to this geometry. | |
| ostream & | operator<< (ostream &os) |
| Outputs the geometical identification to an output stream. | |
| bool | operator== (const TeGeomComposite &other) const |
| Returns TRUE if two composites have exactly the same elements. | |
| TeNode & | operator[] (int i) const |
| Returns the i-th element. | |
| TeComposite< TeNode > ::reverse_iterator | rbegin () |
| The iterator to the first position in the TeGeomComposite in reverse order. | |
| TeComposite< TeNode > ::reverse_iterator | rend () |
| The iterator to the last plus one position in the TeGeomComposite in reverse order. | |
| void | reserve (int nelem) |
| Reserves space for a given number of elements (reserve is available for vectors). | |
| void | setBox (const TeBox &box) |
| Sets the bounding box for the object. | |
| unsigned int | size () const |
| Returns the size of the composite. | |
| virtual void | srid (const int &srid) |
| Sets the srid. | |
| virtual int | srid () const |
| Return the srid. | |
Protected Attributes | |
| TeBox | box_ |
| The bounding box of the geometry. | |
| int | geomId_ |
| The unique geometry identification. | |
| string | objectId_ |
| The unique object identification associated to a geometry. | |
| TeComposite< TeNode > * | pImpl_ |
| Pointer to the implementation of a composite<T>. | |
| int | srid_ |
| The srid associated to the geometry. | |
typedef TeComposite<TeNode >::iterator TeGeomComposite< TeNode >::iterator [inherited] |
Definition at line 409 of file TeGeometry.h.
typedef TeComposite<TeNode >::reverse_iterator TeGeomComposite< TeNode >::reverse_iterator [inherited] |
Definition at line 432 of file TeGeometry.h.
typedef TeNode TeGeomComposite< TeNode >::value_type [inherited] |
Definition at line 413 of file TeGeometry.h.
| void TeGeomComposite< TeNode >::add | ( | const TeNode & | elem | ) | [inline, inherited] |
| TeComposite<TeNode >::iterator const TeGeomComposite< TeNode >::begin | ( | void | ) | const [inline, inherited] |
| TeComposite<TeNode >::iterator TeGeomComposite< TeNode >::begin | ( | void | ) | [inline, inherited] |
| TeBox& TeGeometry::box | ( | ) | [inline, inherited] |
| const TeBox& TeGeometry::box | ( | ) | const [inline, inherited] |
Definition at line 81 of file TeGeometry.h.
Referenced by TeLayer::addCells(), TeLayer::addLines(), TeLayer::addPoints(), TeLayer::addPolygons(), TeLayer::addText(), TeRaster::begin(), TeTin::calculateGradient(), calculateLabelPosition(), TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), TeTin::createTIN(), TeTin::defineInterLinesColumns(), TeTin::duplicateTriangle(), TeTin::dupNeighTriangle(), TeCoverage< T >::evaluate(), TePDIBatchGeoMosaic::extractCloserRasterNode(), TePostGISPortal::fetchGeometry(), TeOracleSpatialPortal::fetchGeometry(), TeMultiGeometry::getBox(), TePolygonSetProperties::getPolygonLength(), TePolygonSetProperties::getPolygonRectangularFit(), TePolygonSetProperties::getPolygonWidth(), TePolygonSetProperties::getRasterInPolygon(), TePostgreSQL::insertCell(), TePostGIS::insertCell(), TeOracleSpatial::insertCell(), TeOCIOracle::insertCell(), TeMySQL::insertCell(), TeFirebird::insertCell(), TeOracle::insertCell(), TeAdo::insertCell(), TeSQLite::insertLine(), TePostgreSQL::insertLine(), TeOCIOracle::insertLine(), TeMySQL::insertLine(), TeFirebird::insertLine(), TeSqlServer::insertLine(), TeOracle::insertLine(), TeAdo::insertLine(), TeMySQL::insertLineSet(), TeOracle::insertLineSet(), TePostgreSQL::insertNode(), TeTin::insertPoint(), TePostgreSQL::insertPoint(), TeSQLite::insertPolygon(), TePostgreSQL::insertPolygon(), TeOCIOracle::insertPolygon(), TeMySQL::insertPolygon(), TeFirebird::insertPolygon(), TeOracle::insertPolygon(), TeMySQL::insertPolygonSet(), TeTin::linearInterpolation(), TeDXFDriver::loadData(), TeTin::loadTIN(), main(), TeText::operator=(), PGBoxFromPolygon(), TeQtCanvas::plotArc(), TeQtCanvas::plotCell(), TeQtCanvas::plotLine(), TeQtCanvas::plotPolygon(), TeTin::quinticInterpolation(), Relation(), TePDIUtils::reprojectRaster(), TePDITPMosaic::RunImplementation(), TePDIRaster2Vector::RunImplementation(), TePDIGeoMosaic::RunImplementation(), TeCoverageDecoderDatabase< T >::selectBlocks(), TeCoverageDecoderCacheLRU< T >::selectBlocks(), TeFileTheme::setRasterFile(), TeOracleSpatial::spatialRelation(), TeTin::swapEdges(), TeCellInterpolate(), TeCoveredBy(), TeCrosses(), TeDisjoint(), TeEquals(), TeExportMIFCellSet(), TeExportQuerierToSPRING(), TeFillCellNonSpatialRasterOperation(), TeFindCentroid(), TeFindCentroidConcavePolygon(), TeGeoOpOverlayDifference(), TeGeoOpOverlayIntersection(), TeGeoOpOverlayUnion(), TeGetArea(), TeGetBuffer(), TeGetLength(), TeGetOverlay(), TeImportSPR(), TeINTERSECTOR2::TeIntersects(), TeIsOnLine(), TeINTERSECTOR2::TeIsSimple(), TeMask(), TeMemoryZonal(), TeOVERLAY::TeMergeFragments(), TeMergeFragmentsFB(), TeOVERLAY::TeMountTopology(), TeNearest(), TeNearestByPoints(), TeOverlaps(), TeOverlay(), TePlotSelectedObjects(), TePolygonSetMemoryZonal(), TeRelation(), TeINTERSECTOR2::TeSafeIntersections(), TeSAM::TeSafeIntersectionsGrid(), TeSHPPolygonDecode(), testCoverage(), TeText::TeText(), TeTopologicalRelation(), TeTouches(), TeOVERLAY::TeUnion(), TeVectorRemap(), TeWithin(), TeWithinOrCoveredByOrEquals(), TopologicRelation(), TeTin::twoNewTriangles(), updateBox(), TePostgreSQL::updateCell(), TePostGIS::updateCell(), TeOracleSpatial::updateCell(), TeDatabase::updateCell(), TeLayer::updateCells(), TeSQLite::updateLine(), TePostgreSQL::updateLine(), TeOCIOracle::updateLine(), TeMySQL::updateLine(), TeFirebird::updateLine(), TeAdo::updateLine(), TeLayer::updateLines(), TePostgreSQL::updateNode(), TePostgreSQL::updatePoint(), TeLayer::updatePoints(), TeSQLite::updatePolygon(), TePostgreSQL::updatePolygon(), TeOCIOracle::updatePolygon(), TeMySQL::updatePolygon(), TeFirebird::updatePolygon(), TeAdo::updatePolygon(), TeLayer::updatePolygons(), TeLayer::updateText(), and TeDatabase::zonal().
00082 { return box_; }
| void TeGeomComposite< TeNode >::clear | ( | void | ) | [inline, inherited] |
Definition at line 378 of file TeGeometry.h.
00379 { 00380 pImpl_->clear (); // remove all elements 00381 box_ = TeBox(TeMAXFLOAT, TeMAXFLOAT,-TeMAXFLOAT,-TeMAXFLOAT); // invalidates its box 00382 }
| void TeGeomComposite< TeNode >::copyElements | ( | const TeGeomComposite< TeNode > & | other | ) | [inline, inherited] |
| TeGeomRep TeNodeSet::elemType | ( | ) | const [inline, virtual] |
Reimplemented from TeGeometry.
Definition at line 753 of file TeGeometry.h.
References TeNODES.
00753 { return TeNODES; }
| bool TeGeomComposite< TeNode >::empty | ( | ) | const [inline, inherited] |
| TeComposite<TeNode >::iterator const TeGeomComposite< TeNode >::end | ( | void | ) | const [inline, inherited] |
| TeComposite<TeNode >::iterator TeGeomComposite< TeNode >::end | ( | void | ) | [inline, inherited] |
| TeComposite<TeNode >::iterator TeGeomComposite< TeNode >::erase | ( | typename TeComposite< TeNode >::iterator | it | ) | [inline, inherited] |
Definition at line 368 of file TeGeometry.h.
00369 { 00370 typename TeComposite<T>::iterator res = pImpl_->erase(it); 00371 box_ = TeBox(TeMAXFLOAT, TeMAXFLOAT,-TeMAXFLOAT,-TeMAXFLOAT); 00372 for (unsigned int j = 0; j < pImpl_->size(); j++) 00373 updateBox(box_,pImpl_->operator[](j)); 00374 return res; 00375 }
| bool TeGeomComposite< TeNode >::erase | ( | TeNode & | object | ) | [inline, inherited] |
Definition at line 355 of file TeGeometry.h.
00356 { 00357 bool status = pImpl_->erase ( object ); 00358 if (status) // recalculates the box 00359 { 00360 box_ = TeBox(TeMAXFLOAT, TeMAXFLOAT,-TeMAXFLOAT,-TeMAXFLOAT); 00361 for (unsigned int j = 0; j < pImpl_->size(); j++) 00362 updateBox(box_,pImpl_->operator[](j)); 00363 } 00364 return status; 00365 }
| bool TeGeomComposite< TeNode >::erase | ( | int | i | ) | [inline, inherited] |
Definition at line 341 of file TeGeometry.h.
00342 { 00343 bool status = pImpl_->erase (i); 00344 00345 if (status) // recalculates the box 00346 { 00347 box_ = TeBox(TeMAXFLOAT, TeMAXFLOAT,-TeMAXFLOAT,-TeMAXFLOAT); 00348 for (unsigned int j = 0; j < pImpl_->size(); j++) 00349 updateBox(box_,pImpl_->operator[](j)); 00350 } 00351 return status; 00352 }
| TeNode & TeGeomComposite< TeNode >::first | ( | ) | const [inline, inherited] |
| void TeGeometry::geomId | ( | int | id | ) | [inline, inherited] |
| int TeGeometry::geomId | ( | ) | const [inline, inherited] |
Definition at line 89 of file TeGeometry.h.
Referenced by TeSTEventSet::buildKdTree(), TePolygonSet::copyElements(), TePolygon::copyElements(), TeLineSet::copyElements(), TeSQLitePortal::fetchGeometry(), TePostgreSQLPortal::fetchGeometry(), TePostGISPortal::fetchGeometry(), TeOracleSpatialPortal::fetchGeometry(), TeOCIOraclePortal::fetchGeometry(), TeMySQLPortal::fetchGeometry(), TeFirebirdPortal::fetchGeometry(), TeDatabasePortal::fetchGeometry(), TeSqlServerSpatialPortal::fetchGeometry(), TeAdoPortal::fetchGeometry(), TePostgreSQLPortal::getLinearRing(), TeOCIOraclePortal::getLinearRing(), TeMySQLPortal::getLinearRing(), TeFirebirdPortal::getLinearRing(), TeAdoPortal::getLinearRing(), TeAppTheme::getTextVisual(), TePostgreSQL::insertArc(), TeOracleSpatial::insertArc(), TeOCIOracle::insertArc(), TeMySQL::insertArc(), TeFirebird::insertArc(), TeOracle::insertArc(), TeAdo::insertArc(), TeAdo::insertArcSet(), TePostgreSQL::insertCell(), TePostGIS::insertCell(), TeMySQL::insertCell(), TeFirebird::insertCell(), TeOracle::insertCell(), TeAdo::insertCell(), TeAdo::insertCellSet(), TeSQLite::insertLine(), TePostgreSQL::insertLine(), TePostGIS::insertLine(), TeOCIOracle::insertLine(), TeNetwork::insertLine(), TeGraphNetwork::insertLine(), TeMySQL::insertLine(), TeFirebird::insertLine(), TeSqlServer::insertLine(), TeAdo::insertLine(), TeMySQL::insertLineSet(), TeSqlServerSpatial::insertLineSet(), TeSqlServer::insertLineSet(), TeAdo::insertLineSet(), TePostgreSQL::insertNode(), TePostGIS::insertNode(), TeMySQL::insertNode(), TeFirebird::insertNode(), TeOracle::insertNode(), TeAdo::insertNode(), TeAdo::insertNodeSet(), TeSQLite::insertPoint(), TePostgreSQL::insertPoint(), TePostGIS::insertPoint(), TeMySQL::insertPoint(), TeFirebird::insertPoint(), TeSqlServer::insertPoint(), TeOracle::insertPoint(), TeAdo::insertPoint(), TeSqlServerSpatial::insertPointSet(), TeSqlServer::insertPointSet(), TeAdo::insertPointSet(), TeSQLite::insertPolygon(), TePostgreSQL::insertPolygon(), TePostGIS::insertPolygon(), TeOCIOracle::insertPolygon(), TeMySQL::insertPolygon(), TeFirebird::insertPolygon(), TeSqlServer::insertPolygon(), TeOracle::insertPolygon(), TeAdo::insertPolygon(), TeMySQL::insertPolygonSet(), TeSqlServerSpatial::insertPolygonSet(), TeSqlServer::insertPolygonSet(), TeAdo::insertPolygonSet(), TePostgreSQL::insertText(), TeMySQL::insertText(), TeFirebird::insertText(), TeSqlServer::insertText(), TeOracle::insertText(), TeAdo::insertText(), TeSqlServerSpatial::insertTextSet(), TeSqlServer::insertTextSet(), TeAdo::insertTextSet(), TeShapefileDriver::loadData(), main(), TeTin::onIsolineSegment(), operator<<(), printGeom(), TeQtMultiTextEdit::push(), TeFindCentroidConcavePolygon(), TeImportSPR(), TeNetwork::TeNetwork(), TeReadCSVFile(), TeOVERLAY::TeSplitRing(), TeOVERLAY::TeValidPolygonHoles(), TeDatabase::updateArc(), TePostgreSQL::updateCell(), TePostGIS::updateCell(), TeOracleSpatial::updateCell(), TeDatabase::updateCell(), TeSQLite::updateLine(), TePostgreSQL::updateLine(), TePostGIS::updateLine(), TeOracleSpatial::updateLine(), TeOCIOracle::updateLine(), TeMySQL::updateLine(), TeFirebird::updateLine(), TeAdo::updateLine(), TePostgreSQL::updateNode(), TePostGIS::updateNode(), TeOracleSpatial::updateNode(), TeDatabase::updateNode(), TeAdo::updateNode(), TePostgreSQL::updatePoint(), TePostGIS::updatePoint(), TeOracleSpatial::updatePoint(), TeDatabase::updatePoint(), TeAdo::updatePoint(), updatePointLocation(), TeSQLite::updatePolygon(), TePostgreSQL::updatePolygon(), TePostGIS::updatePolygon(), TeOracleSpatial::updatePolygon(), TeOCIOracle::updatePolygon(), TeMySQL::updatePolygon(), TeFirebird::updatePolygon(), TeAdo::updatePolygon(), and TeDatabase::updateText().
00090 { return geomId_; }
| virtual bool TeGeometry::isRing | ( | ) | const [inline, virtual, inherited] |
| TeNode & TeGeomComposite< TeNode >::last | ( | ) | const [inline, inherited] |
| virtual void TeGeometry::objectId | ( | const string & | id | ) | [inline, virtual, inherited] |
Reimplemented in TeGeomComposite< T >, TeLine2D, and TePoint.
Definition at line 101 of file TeGeometry.h.
| virtual void TeGeomComposite< TeNode >::objectId | ( | const string & | id | ) | [inline, virtual, inherited] |
Definition at line 299 of file TeGeometry.h.
00300 { 00301 objectId_ = id; 00302 typename TeComposite<T>::iterator it = pImpl_->begin(); 00303 while (it != pImpl_->end()) 00304 { 00305 it->objectId(id); 00306 ++it; 00307 } 00308 }
| virtual string TeGeomComposite< TeNode >::objectId | ( | ) | const [inline, virtual, inherited] |
Reimplemented from TeGeometry.
Definition at line 295 of file TeGeometry.h.
00296 { return objectId_; }
| ostream& TeGeometry::operator<< | ( | ostream & | os | ) | [inline, inherited] |
| bool TeGeomComposite< TeNode >::operator== | ( | const TeGeomComposite< TeNode > & | other | ) | const [inline, inherited] |
Definition at line 321 of file TeGeometry.h.
00322 { 00323 if ( this->size() != other.size() ) 00324 return false; 00325 00326 for (unsigned int i = 0; i < other.pImpl_->size(); i++) 00327 if ( ! ( pImpl_->operator[]( i ) == other.pImpl_->operator[]( i ) ) ) 00328 return false; 00329 00330 return true; 00331 }
| TeNode & TeGeomComposite< TeNode >::operator[] | ( | int | i | ) | const [inline, inherited] |
| TeComposite<TeNode >::reverse_iterator TeGeomComposite< TeNode >::rbegin | ( | void | ) | [inline, inherited] |
| TeComposite<TeNode >::reverse_iterator TeGeomComposite< TeNode >::rend | ( | void | ) | [inline, inherited] |
| void TeGeomComposite< TeNode >::reserve | ( | int | nelem | ) | [inline, inherited] |
| void TeGeometry::setBox | ( | const TeBox & | box | ) | [inline, inherited] |
Definition at line 77 of file TeGeometry.h.
Referenced by TeTin::borderUp(), TeTin::createInitialTriangles(), TePDIRaster2Vector::detectEdge(), TeTin::duplicateTriangle(), TeTin::dupNeighTriangle(), TePostgreSQLPortal::fetchGeometry(), TePostGISPortal::fetchGeometry(), TeOracleSpatialPortal::fetchGeometry(), TeMySQLPortal::fetchGeometry(), TeDatabasePortal::fetchGeometry(), TeAdoPortal::fetchGeometry(), TeOCIOraclePortal::getLinearRing(), TeMySQLPortal::getLinearRing(), TeFirebirdPortal::getLinearRing(), TeAdoPortal::getLinearRing(), TeCoverage< T >::init(), TeTin::loadTIN(), TeText::operator=(), PGLine_decode(), PGPolygon_decode(), TeText::setLocation(), TeTin::swapEdges(), TeCell::TeCell(), TeMakePolygon(), TeOVERLAY::TeMergeFragments(), TeMergeFragmentsFB(), TePoint::TePoint(), TeText::TeText(), TeTinVertex::TeTinVertex(), TeVectorRemap(), and TeTin::twoNewTriangles().
00078 { box_ = box; }
| unsigned int TeGeomComposite< TeNode >::size | ( | void | ) | const [inline, virtual, inherited] |
| virtual void TeGeometry::srid | ( | const int & | srid | ) | [inline, virtual, inherited] |
| virtual int TeGeometry::srid | ( | ) | const [inline, virtual, inherited] |
Definition at line 105 of file TeGeometry.h.
Referenced by TeLayer::addCells(), TeLayer::addLines(), TeLayer::addPoints(), TeLayer::addPolygons(), TeLayer::addText(), TePGRecordset::getWKBLine(), TePGRecordset::getWKBMultiLine(), TePGRecordset::getWKBMultiPoint(), TePGRecordset::getWKBMultiPolygon(), TePGRecordset::getWKBPoint(), TePGRecordset::getWKBPolygon(), TePostGIS::insertCell(), TeLine2DToWKBLineString(), TePointToWKBPoint(), TePolygonToWKBPolygon(), TeLayer::updateCells(), TeLayer::updateLines(), TeLayer::updatePoints(), TeLayer::updatePolygons(), and TeLayer::updateText().
00106 { return srid_; }
TeBox TeGeometry::box_ [protected, inherited] |
Definition at line 133 of file TeGeometry.h.
Referenced by TeGeomComposite< TeCoord2D >::add(), TeGeomSingle< TeCoord2D >::add(), TeGeomComposite< TeCoord2D >::clear(), TeGeomComposite< TeCoord2D >::erase(), TeRaster::init(), TeGeomComposite< TeCoord2D >::operator=(), TeGeomSingle< TeCoord2D >::operator=(), TeRaster::setDecoder(), TeGeomComposite< TeCoord2D >::TeGeomComposite(), TeGeometry::TeGeometry(), TeGeomSingle< TeCoord2D >::TeGeomSingle(), TeRaster::TeRaster(), and TeRaster::updateParams().
int TeGeometry::geomId_ [protected, inherited] |
Definition at line 134 of file TeGeometry.h.
Referenced by TeGeomComposite< TeCoord2D >::copyElements(), TePolygonSet::copyElements(), TePolygon::copyElements(), TeLineSet::copyElements(), TeText::operator=(), TeGeomComposite< TeCoord2D >::operator=(), TeGeomSingle< TeCoord2D >::operator=(), TeText::operator==(), TeGeomComposite< TeCoord2D >::TeGeomComposite(), TeGeometry::TeGeometry(), TeGeomSingle< TeCoord2D >::TeGeomSingle(), and TeText::TeText().
string TeGeometry::objectId_ [protected, inherited] |
Definition at line 135 of file TeGeometry.h.
Referenced by TeGeomComposite< TeCoord2D >::copyElements(), TePolygonSet::copyElements(), TePolygon::copyElements(), TeLineSet::copyElements(), TeGeomComposite< TeCoord2D >::objectId(), TeText::operator=(), TeGeomComposite< TeCoord2D >::operator=(), TeGeomSingle< TeCoord2D >::operator=(), TeText::operator==(), TeGeomComposite< TeCoord2D >::TeGeomComposite(), TeGeometry::TeGeometry(), TeGeomSingle< TeCoord2D >::TeGeomSingle(), and TeText::TeText().
TeComposite<TeNode >* TeGeomComposite< TeNode >::pImpl_ [protected, inherited] |
Definition at line 445 of file TeGeometry.h.
int TeGeometry::srid_ [protected, inherited] |
1.5.3