![]() |
TerraLib 4.1
|
A basic class for handling geometries in TerraLib. More...
#include <TeGeometry.h>
Public Member Functions | |
| TeGeometry () | |
| Empty constructor. | |
| TeGeometry (const TeGeometry &other) | |
| Copy Constructor. | |
| virtual | ~TeGeometry () |
| Destructor. | |
| void | setBox (const TeBox &box) |
| Sets the bounding box for the object. | |
| const TeBox & | box () const |
| Returns the constant bounding box. | |
| TeBox & | box () |
| Returns the bounding box. | |
| int | geomId () const |
| Returns the geometry Id. | |
| void | geomId (int id) |
| Sets the geometryId. | |
| virtual string | objectId () const |
| Returns the object unique identification. | |
| virtual void | objectId (const string &id) |
| Sets the objectId. | |
| virtual int | srid () const |
| Return the srid. | |
| virtual void | srid (const int &srid) |
| Sets the srid. | |
| virtual unsigned int | size () const |
| Return the geometry size. | |
| ostream & | operator<< (ostream &os) |
| Outputs the geometical identification to an output stream. | |
| virtual bool | isRing () const |
| Returns TRUE if a geometry is a closed ring. | |
| virtual TeGeomRep | elemType () const |
| Returns the basic geometry type in a set of geometries structure. | |
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. | |
| int | srid_ |
| The srid associated to the geometry. | |
A basic class for handling geometries in TerraLib.
All geometric classes of TerraLib are derived from TeGeometry. This class keep track of a geometryId and of a bounding box for the geometry
| TeGeometry::TeGeometry | ( | ) | [inline] |
Empty constructor.
| TeGeometry::TeGeometry | ( | const TeGeometry & | other | ) | [inline] |
Copy Constructor.
| virtual TeGeometry::~TeGeometry | ( | ) | [inline, virtual] |
Destructor.
| const TeBox& TeGeometry::box | ( | ) | const [inline] |
Returns the constant bounding box.
| TeBox& TeGeometry::box | ( | ) | [inline] |
Returns the bounding box.
| virtual TeGeomRep TeGeometry::elemType | ( | ) | const [inline, virtual] |
Returns the basic geometry type in a set of geometries structure.
Reimplemented in TeGeometryNone, TeLine2D, TeLineSet, TePolygon, TePolygonSet, TePoint, TePointSet, TeText, TeTextSet, TeNode, TeNodeSet, TeArc, TeArcSet, TeSample, TeSampleSet, TeContourLineSet, TeCell, and TeCellSet.
| int TeGeometry::geomId | ( | ) | const [inline] |
Returns the geometry Id.
| void TeGeometry::geomId | ( | int | id | ) | [inline] |
Sets the geometryId.
| virtual bool TeGeometry::isRing | ( | ) | const [inline, virtual] |
Returns TRUE if a geometry is a closed ring.
Reimplemented in TeLine2D.
| virtual string TeGeometry::objectId | ( | ) | const [inline, virtual] |
Returns the object unique identification.
Reimplemented in TeGeomComposite< T >, TeLine2D, TePoint, TeGeomComposite< TeArc >, TeGeomComposite< TePoint >, TeGeomComposite< TeTinEdge >, TeGeomComposite< TeText >, TeGeomComposite< TeTinTriangle >, TeGeomComposite< TeSample >, TeGeomComposite< TeContourLine >, TeGeomComposite< TePolygon >, TeGeomComposite< TeLine2D >, TeGeomComposite< TeLinearRing >, TeGeomComposite< TeCell >, TeGeomComposite< TeTinVertex >, TeGeomComposite< TeNode >, and TeGeomComposite< TeCoord2D >.
| virtual void TeGeometry::objectId | ( | const string & | id | ) | [inline, virtual] |
Sets the objectId.
Reimplemented in TeGeomComposite< T >, TeLine2D, TePoint, TeGeomComposite< TeArc >, TeGeomComposite< TePoint >, TeGeomComposite< TeTinEdge >, TeGeomComposite< TeText >, TeGeomComposite< TeTinTriangle >, TeGeomComposite< TeSample >, TeGeomComposite< TeContourLine >, TeGeomComposite< TePolygon >, TeGeomComposite< TeLine2D >, TeGeomComposite< TeLinearRing >, TeGeomComposite< TeCell >, TeGeomComposite< TeTinVertex >, TeGeomComposite< TeNode >, and TeGeomComposite< TeCoord2D >.
| ostream& TeGeometry::operator<< | ( | ostream & | os | ) | [inline] |
Outputs the geometical identification to an output stream.
Reimplemented in TeNode.
| void TeGeometry::setBox | ( | const TeBox & | box | ) | [inline] |
Sets the bounding box for the object.
| virtual unsigned int TeGeometry::size | ( | ) | const [inline, virtual] |
Return the geometry size.
Reimplemented in TeGeomComposite< T >, TeGeomComposite< TeArc >, TeGeomComposite< TePoint >, TeGeomComposite< TeTinEdge >, TeGeomComposite< TeText >, TeGeomComposite< TeTinTriangle >, TeGeomComposite< TeSample >, TeGeomComposite< TeContourLine >, TeGeomComposite< TePolygon >, TeGeomComposite< TeLine2D >, TeGeomComposite< TeLinearRing >, TeGeomComposite< TeCell >, TeGeomComposite< TeTinVertex >, TeGeomComposite< TeNode >, and TeGeomComposite< TeCoord2D >.
| virtual int TeGeometry::srid | ( | ) | const [inline, virtual] |
Return the srid.
| virtual void TeGeometry::srid | ( | const int & | srid | ) | [inline, virtual] |
Sets the srid.
TeBox TeGeometry::box_ [protected] |
The bounding box of the geometry.
int TeGeometry::geomId_ [protected] |
The unique geometry identification.
string TeGeometry::objectId_ [protected] |
The unique object identification associated to a geometry.
int TeGeometry::srid_ [protected] |
The srid associated to the geometry.