TerraLib 4.1
TeGeometry Class Reference

A basic class for handling geometries in TerraLib. More...

#include <TeGeometry.h>

Inheritance diagram for TeGeometry:
TeCoverage< T > TeGeometryNone TeRaster TeTinEdge TeTinTriangle TeVector TeArc TeCell TeGeomComposite< T > TeGeomComposite< TeArc > TeGeomComposite< TeCell > TeGeomComposite< TeContourLine > TeGeomComposite< TeCoord2D > TeGeomComposite< TeLine2D > TeGeomComposite< TeLinearRing > TeGeomComposite< TeNode > TeGeomComposite< TePoint > TeGeomComposite< TePolygon > TeGeomComposite< TeSample > TeGeomComposite< TeText > TeGeomComposite< TeTinEdge > TeGeomComposite< TeTinTriangle > TeGeomComposite< TeTinVertex > TeGeomSingle< T > TeGeomSingle< TeCoord2D >

List of all members.

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 TeBoxbox () const
 Returns the constant bounding box.
TeBoxbox ()
 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.

Detailed Description

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

Note:
The Geometry classes in TerraLib use the Composite and the Visitor patterns
See also:
TeBox TeGeomComposite, TeGeomSingle

Constructor & Destructor Documentation

TeGeometry::TeGeometry ( ) [inline]

Empty constructor.

TeGeometry::TeGeometry ( const TeGeometry other) [inline]

Copy Constructor.

virtual TeGeometry::~TeGeometry ( ) [inline, virtual]

Destructor.


Member Function Documentation

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.

Examples:
databaseQuery.cpp, and databaseSQLQuery.cpp.
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.

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 int TeGeometry::srid ( ) const [inline, virtual]

Return the srid.

virtual void TeGeometry::srid ( const int &  srid) [inline, virtual]

Sets the srid.


Member Data Documentation

TeBox TeGeometry::box_ [protected]

The bounding box of the geometry.

int TeGeometry::geomId_ [protected]

The unique geometry identification.

The unique object identification associated to a geometry.

int TeGeometry::srid_ [protected]

The srid associated to the geometry.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines