Triangle is a polygon with 3 distinct, non-collinear vertices and no interior boundary. More...
#include <Triangle.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const=0 |
| It call the visit method from the guest object. | |
Re-Implementation from AbstractData | |
Methods re-Implementated from AbstractData. | |
| virtual te::dt::AbstractData * | clone () const |
| It clones the linestring. | |
CurvePolygon Specific Methods | |
Specific methods for a CurvePolygon. | |
| Curve * | getExteriorRing () const |
| It returns the exterior ring of this CurvePolygon. | |
| std::size_t | getNumInteriorRings () const |
| It returns the number of interior rings in this CurvePolygon. | |
| std::size_t | getNumRings () const |
| It returns the number of rings in this CurvePolygon. | |
| void | setNumRings (std::size_t size) |
| It sets the number of rings in this curve polygon. | |
| Curve * | getInteriorRingN (std::size_t i) const |
| It returns the n-th interior ring for this curve polygon as a curve. | |
| Curve * | getRingN (std::size_t i) const |
| It returns the n-th ring for this curve polygon as a curve. | |
| Curve * | operator[] (std::size_t i) const |
| It returns the n-th ring. | |
| Curve * | operator[] (std::size_t i) |
| It returns the n-th ring. | |
| void | setRingN (std::size_t i, Curve *r) |
| It sets the informed position ring to the new one. | |
| void | removeRingN (std::size_t i) |
| It removes the n-th ring in this CurvePolygon. | |
| void | add (Curve *ring) |
| It adds the ring to the curve polygon. | |
| void | push_back (Curve *ring) |
| It adds the curve to the curve polygon. | |
| void | clear () |
| It deletes all the rings of the CurvePolygon and clear it. | |
| std::vector< Curve * > & | getRings () |
| It returns the polygon rings. | |
| const std::vector< Curve * > & | getRings () const |
| It returns the polygon rings. | |
Surface Specific Methods | |
Specific methods for a Surface. | |
| double | getArea () const |
| It returns the area of this surface, as measured in the spatial reference system of this surface. | |
| Point * | getCentroid () const |
| It returns the mathematical centroid for this surface as a point. | |
| Coord2D * | getCentroidCoord () const |
| It returns the mathematical centroid for this surface as a coordinate. | |
| Point * | getPointOnSurface () const |
| It returns a point guaranteed to be on this surface. | |
| Coord2D * | getCoordOnSurface () const |
| It returns a coordinate guaranteed to be on this surface. | |
| double | getPerimeter () const |
| It returns the length of the boundary for the surface. | |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
| Dimensionality | getDimension () const throw () |
| Surfaces are 2-dimensional objects. | |
Basic Geometry Methods | |
Basic methods on geometric objects. | |
| int | getCoordinateDimension () const _NOEXCEPT_OP(true) |
| It returns the number of measurements or axes needed to describe a position in a coordinate system. | |
| GeomType | getGeomTypeId () const _NOEXCEPT_OP(true) |
| It returns the geometry subclass type identifier. | |
| virtual const std::string | get2DGeometryType () const _NOEXCEPT_OP(true) |
| It returns the name of 2D geometry subclass. | |
| virtual GeomType | get2DGeomTypeId () const _NOEXCEPT_OP(true) |
| It returns the 2D geometry subclass type identifier. | |
| int | getSRID () const _NOEXCEPT_OP(true) |
| It returns the Spatial Reference System ID associated to this geometric object. | |
| virtual void | transform (const int &srid) _NOEXCEPT_OP(false) |
| It converts the coordinate values of the geometry to the new spatial reference system. | |
| Geometry * | getEnvelope () const _NOEXCEPT_OP(true) |
| It returns the minimum bounding rectangle (MBR) for the geometry. | |
| const Envelope * | getMBR () const _NOEXCEPT_OP(true) |
| It returns the minimum bounding rectangle for the geometry in an internal representation. | |
| std::string | asText () const _NOEXCEPT_OP(true) |
| It returns an string with the Well-Known Text Representation for the geometry. | |
| char * | asBinary (std::size_t &size) const _NOEXCEPT_OP(false) |
| It serializes the geometric object to a Well-known Binary Representation (WKB). | |
| std::size_t | getWkbSize () const _NOEXCEPT_OP(true) |
| It returns the size required by a WKB representation for this geometric object. | |
| void | getWkb (char *wkb, te::common::MachineByteOrder byteOrder) const _NOEXCEPT_OP(false) |
| It serializes the geometry to a WKB representation into the specified buffer. | |
| virtual bool | isEmpty () const _NOEXCEPT_OP(false) |
| It returns true if this geometric object is the empty Geometry. | |
| virtual bool | isSimple () const _NOEXCEPT_OP(false) |
| It returns true if this geometric object has no anomalous points, such as self intersection or self tangency. | |
| virtual bool | isValid () const _NOEXCEPT_OP(false) |
| It tells if the geometry is well formed. | |
| bool | is3D () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object has z coordinate values. | |
| bool | isMeasured () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object has m coordinate values. | |
| bool | isCollection () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object is a collection. | |
| virtual Geometry * | getBoundary () const _NOEXCEPT_OP(false) |
| It returns the geometry boundary. | |
Spatial Relations | |
Methods for testing spatial relations between geometric objects. Please, see OGC specification for a in depth definition of each spatial operation. | |
| virtual bool | equals (const Geometry *const rhs, const bool exact=false) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially equal to rhs geometry. | |
| virtual bool | disjoint (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially disjoint from rhs geometry. | |
| virtual bool | intersects (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially intersects rhs geometry. | |
| virtual bool | touches (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially touches rhs geometry. | |
| virtual bool | crosses (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially crosses rhs geometry. | |
| virtual bool | within (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially within rhs geometry. | |
| virtual bool | contains (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially contains rhs geometry. | |
| virtual bool | overlaps (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially overlaps rhs geometry. | |
| virtual bool | relate (const Geometry *const rhs, const std::string &matrix) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object is spatially related to rhs geometry according to the pattern expressed by the intersection matrix. | |
| virtual std::string | relate (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns the spatial relation between this geometry object and the rhs geometry. | |
| virtual bool | covers (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially covers the rhs geometry. | |
| virtual bool | coveredBy (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object is spatially covered by rhs geometry. | |
| virtual Geometry * | locateAlong (const double &mValue) const _NOEXCEPT_OP(false) |
| It returns a derived GeometryCollection value according to the specified coordinate value. | |
| virtual Geometry * | locateBetween (const double &mStart, const double &mEnd) const _NOEXCEPT_OP(false) |
| It returns a derived geometry collection value according to the range of coordinate values inclusively. | |
Spatial Analysis | |
Methods that support spatial analysis. | |
| virtual double | distance (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns the shortest distance between any two points in the two geometry objects. | |
| virtual Geometry * | buffer (const double &distance) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | buffer (const double &distance, int quadrantSegments) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | buffer (const double &distance, int quadrantSegments, BufferCapStyle endCapStyle) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | convexHull () const _NOEXCEPT_OP(false) |
| This method calculates the Convex Hull of a geometry. | |
| virtual Geometry * | intersection (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set intersection with another geometry. | |
| virtual Geometry * | Union (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set union with another geometry. | |
| virtual Geometry * | difference (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set difference with another geometry. | |
| virtual Geometry * | symDifference (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set symetric difference with another geometry. | |
| virtual bool | dWithin (const Geometry *const rhs, const double &distance) const _NOEXCEPT_OP(false) |
| It returns true if the geometries are within the specified distance. | |
Static Public Member Functions | |
Auxiliary Methods | |
Auxiliary Methods. | |
| static GeomType | getGeomTypeId (const std::string >ype) |
| It returns the TerraLib geometry type id given a type string (the type string must be in capital letters). | |
| static std::string | getGeomTypeString (const int &gId) |
| It returns the TerraLib geometry type string given a type id. | |
| static bool | isGeomType (const std::string &stype) |
| It tells if the given string is a geometry data type. | |
| static void | loadGeomTypeId () |
| It loads the internal MAP of geometry type names to geometry type ids. | |
Initializer methods on geometric objects | |
Methods for initializing a geometric object. | |
| std::size_t | number_of_children |
| number of children of the triangle | |
| std::size_t | number_of_parents |
| number of parents of the triangle | |
| std::vector< Triangle > | children |
| references to the children of the triangle | |
| Triangle * | adjacent [3] |
| references to the adjacentof the triangle | |
| Triangle * | parents [2] |
| references to the parents of the triangle | |
| int | triangle_index |
| triangle index in vector | |
| double | xc |
| double | yc |
| circumcenter coordinates of the circunference defined from the 3 points of the triangle | |
| double | r |
| circunference radius | |
| bool | processed |
| bool | visited |
| flags | |
| Triangle (std::size_t nRings, GeomType t, int srid=0, Envelope *mbr=0) | |
| It initializes the Geometry with the specified spatial reference system id and envelope. | |
| Triangle (GeomType t, int srid=0, Envelope *mbr=0) | |
| It initializes the Geometry with the specified spatial reference system id and envelope. | |
| Triangle (const Triangle &rhs) | |
| Copy constructor. | |
| ~Triangle () | |
| Destructor. | |
| Triangle & | operator= (const Triangle &rhs) |
| Assignment operator. | |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
| virtual const std::string & | getGeometryType () const throw () |
| It returns the name of the instantiable subtype of Geometry of which this geometric object is an instantiable member. | |
| static const std::string | sm_typeName |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
| void | setSRID (int srid) throw () |
| It sets the Spatial Reference System ID of the geometry and all its parts if it is a GeometryCollection (or a Multi). | |
| void | convert (te::srs::Converter *converter) override |
| It converts the coordinate values of the geometry to the new spatial reference system. | |
| void | computeMBR (bool cascade) const throw () |
| It computes the minimum bounding rectangle for the curve polygon. | |
| std::size_t | getNPoints () const throw () |
| it returns the number of points (vertexes) in the geometry. | |
| std::vector< Curve * > | m_rings |
| An array with the ring list. | |
AbstractData Re-implementation | |
Methods re-implemneted from AbstractData. | |
| int | getTypeCode () const |
| It returns the data type code associated to the data value. | |
| std::string | toString () const |
| It returns the data value in a WKT representation. | |
| GeomType | m_gType |
| Internal geometry type. | |
| int | m_srid |
| The Spatial Reference System code associated to the Geometry. | |
| Envelope * | m_mbr |
| The geometry minimum bounding rectangle. | |
| static std::map< std::string, GeomType > | sm_geomTypeMap |
| A set of geometry type names (in UPPER CASE). | |
Triangle is a polygon with 3 distinct, non-collinear vertices and no interior boundary.
Definition at line 50 of file Triangle.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
It initializes the Geometry with the specified spatial reference system id and envelope.
| nRings | The number of rings forming the triangle. |
| t | The internal type of the Geometry. |
| srid | The Spatial Reference System ID associated to the Geometry. |
| mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). It may be a NULL value. |
Referenced by operator=(), and Triangle().
It initializes the Geometry with the specified spatial reference system id and envelope.
| t | The internal type of the Geometry. |
| srid | The Spatial Reference System ID associated to the Geometry. |
| mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). |
| te::gm::Triangle::Triangle | ( | const Triangle & | rhs | ) |
|
inline |
Destructor.
Definition at line 95 of file Triangle.h.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
|
inherited |
It adds the ring to the curve polygon.
| ring | The ring to be added. |
|
inherited |
It serializes the geometric object to a Well-known Binary Representation (WKB).
| size | The size in bytes of the returned WKB. |
| Exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and asBinary().
Referenced by asBinary().
|
inherited |
It returns an string with the Well-Known Text Representation for the geometry.
References _NOEXCEPT_OP, and asText().
Referenced by asText(), and toString().
|
virtualinherited |
This method calculates the buffer of a geometry.
| distance | Distance value. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
virtualinherited |
This method calculates the buffer of a geometry.
| distance | Distance value. |
| quadrantSegments | A specified number of segments used to approximate the curves. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
virtualinherited |
This method calculates the buffer of a geometry.
As in GEOS, the quadrantSegments argument allows controlling the accuracy of the approximation by specifying the number of line segments used to represent a quadrant of a circle.
| distance | Distance value. |
| quadrantSegments | A specified number of segments used to approximate the curves. |
| endCapStyle | It specifies the shape used at the ends of linestrings. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
inherited |
It deletes all the rings of the CurvePolygon and clear it.
|
virtualinherited |
It clones the linestring.
Reimplemented from te::gm::CurvePolygon.
|
virtualinherited | |||||||||||||
It computes the minimum bounding rectangle for the curve polygon.
| cascade | If true, it will update the MBR of its parts. |
Implements te::gm::Geometry.
References computeMBR().
Referenced by computeMBR().
|
virtualinherited |
It returns true if this geometry object spatially contains rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, contains(), and Geometry().
Referenced by contains().
|
overridevirtualinherited |
It converts the coordinate values of the geometry to the new spatial reference system.
After calling this method the geometry will be associated to the new SRID.
| converter | The converter containing all the information related to the new Spatial Reference System ID used to transform the coordinates of the geometry. |
| Exception | It will throw an exception if it can not do the transformation. |
Implements te::gm::Geometry.
References convert().
Referenced by convert().
|
virtualinherited |
This method calculates the Convex Hull of a geometry.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and Geometry().
Referenced by te::rp::GetTPConvexHullArea().
|
virtualinherited |
It returns true if this geometry object is spatially covered by rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, coveredBy(), and Geometry().
Referenced by coveredBy().
|
virtualinherited |
It returns true if this geometry object spatially covers the rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, covers(), and Geometry().
Referenced by covers().
|
virtualinherited |
It returns true if the geometry object spatially crosses rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, crosses(), and Geometry().
Referenced by crosses().
It returns a geometric object that represents the point set difference with another geometry.
| rhs | Another geometry whose difference with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, difference(), and Geometry().
Referenced by difference().
|
virtualinherited |
It returns true if the geometry object is spatially disjoint from rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, disjoint(), and Geometry().
Referenced by disjoint(), and te::rst::PolygonIterator< T >::getBBOXIntersectionRanges().
|
virtualinherited |
It returns the shortest distance between any two points in the two geometry objects.
| rhs | The other geometry. |
| std::exception | It will throw an exception if the operation could not be performed. |
References Geometry().
Referenced by buffer(), buffer(), buffer(), dWithin(), and te::gm::Line::setCoord().
|
virtualinherited |
It returns true if the geometries are within the specified distance.
| rhs | The other geometry whose symetric difference with this geometry will be calculated. |
| distance | The distance. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, distance(), dWithin(), and Geometry().
Referenced by dWithin().
|
virtualinherited |
It returns true if the geometry object is spatially equal to rhs geometry.
| rhs | The another geometry to be compared. |
| exact | If true checks if this geometric object has the same vertexes in the same order of rhs geometry. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, equals(), and Geometry().
Referenced by equals().
|
virtualinherited |
It returns the name of 2D geometry subclass.
The name of the 2D geometry subclass may be one of the following:
References _NOEXCEPT_OP.
|
virtualinherited |
It returns the 2D geometry subclass type identifier.
References _NOEXCEPT_OP, and get2DGeomTypeId().
Referenced by get2DGeomTypeId().
|
virtualinherited |
It returns the area of this surface, as measured in the spatial reference system of this surface.
Implements te::gm::Surface.
|
virtualinherited |
It returns the geometry boundary.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and getBoundary().
Referenced by getBoundary().
|
virtualinherited |
It returns the mathematical centroid for this surface as a point.
Implements te::gm::Surface.
|
virtualinherited |
It returns the mathematical centroid for this surface as a coordinate.
Implements te::gm::Surface.
|
inherited |
It returns the number of measurements or axes needed to describe a position in a coordinate system.
It returns:
References _NOEXCEPT_OP, and getCoordinateDimension().
Referenced by getCoordinateDimension().
|
virtualinherited |
It returns a coordinate guaranteed to be on this surface.
Implements te::gm::Surface.
|
virtualinherited | ||||||||||||
|
inherited |
It returns the minimum bounding rectangle (MBR) for the geometry.
As one can notice, the mbr is returned as a geometry, actually a polygon defined by the corner points of the bounding box [(MINX, MINY), (MAXX, MINY), (MAXX, MAXY), (MINX, MAXY), (MINX, MINY)].
References _NOEXCEPT_OP, and Geometry().
|
inherited |
It returns the exterior ring of this CurvePolygon.
|
virtualinherited | ||||||||||||
It returns the name of the instantiable subtype of Geometry of which this geometric object is an instantiable member.
The name of the Geometry subtype for Polygons is: Polygon.
Reimplemented from te::gm::CurvePolygon.
|
inlineinherited |
It returns the geometry subclass type identifier.
Definition at line 182 of file Geometry.h.
References _NOEXCEPT_OP, getGeomTypeId(), and m_gType.
Referenced by getGeomTypeId(), and getGeomTypeId().
|
staticinherited |
It returns the TerraLib geometry type id given a type string (the type string must be in capital letters).
| gtype | The geometry type name. |
References getGeomTypeId().
|
staticinherited |
It returns the TerraLib geometry type string given a type id.
| gId | The geometry type id. |
References getGeomTypeString().
Referenced by getGeomTypeString().
|
inherited |
It returns the n-th interior ring for this curve polygon as a curve.
| i | The ring index. |
|
inherited |
It returns the minimum bounding rectangle for the geometry in an internal representation.
The mbr can be constructed when reading a geometry from a database or it can be computed internally. So, if the mbr is not already set it will compute it just when this method is called. Successive calls to this method will not compute the mbr anymore.
References _NOEXCEPT_OP, and getMBR().
Referenced by getMBR().
|
virtualinherited | ||||||||||||
it returns the number of points (vertexes) in the geometry.
Implements te::gm::Geometry.
References getNPoints().
Referenced by getNPoints().
|
inherited |
It returns the number of interior rings in this CurvePolygon.
|
inlineinherited |
It returns the number of rings in this CurvePolygon.
Definition at line 153 of file CurvePolygon.h.
References m_rings.
|
virtualinherited |
It returns the length of the boundary for the surface.
Implements te::gm::Surface.
|
virtualinherited |
It returns a point guaranteed to be on this surface.
Implements te::gm::Surface.
|
inlineinherited |
It returns the n-th ring for this curve polygon as a curve.
| i | The ring index. |
Definition at line 193 of file CurvePolygon.h.
References m_rings.
|
inlineinherited |
It returns the polygon rings.
Definition at line 294 of file CurvePolygon.h.
References m_rings.
|
inlineinherited |
It returns the polygon rings.
Definition at line 305 of file CurvePolygon.h.
References m_rings.
|
inlineinherited |
It returns the Spatial Reference System ID associated to this geometric object.
This value can be used to identify the associated Spatial Reference System.
Definition at line 242 of file Geometry.h.
References _NOEXCEPT_OP, getSRID(), and m_srid.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), getSRID(), te::rst::PolygonIterator< T >::initialize(), and te::rst::LineIterator< T >::LineIterator().
|
virtualinherited |
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
References getTypeCode().
Referenced by getTypeCode().
|
inherited |
It serializes the geometry to a WKB representation into the specified buffer.
The wkb parameter must have at least getWkbSize() in order to be used. Don't pass a NULL pointer or a buffer smaller than the size needed. Note that the WKB will be on the specified byte order.
| wkb | The buffer where the Geometry will be serialized. |
| byteOrder | The byte order used to store/serialize the geometry. |
| Exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and getWkb().
Referenced by getWkb().
|
inherited |
It returns the size required by a WKB representation for this geometric object.
This is the preferred method for creating a WKB. First of all, it gives you the possibility to use a pre-allocated buffer. So, this method can be used in conjunction with the getWkb method.
References _NOEXCEPT_OP, and getWkbSize().
Referenced by getWkbSize().
|
virtualinherited |
It returns a geometric object that represents the point set intersection with another geometry.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and intersection().
Referenced by te::gm::Line::clone(), intersection(), and te::rst::LineIterator< T >::LineIterator().
|
virtualinherited |
It returns true if the geometry object spatially intersects rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and intersects().
Referenced by intersects().
|
inherited |
It returns true if this geometric object has z coordinate values.
References _NOEXCEPT_OP, and is3D().
Referenced by is3D().
|
inherited |
It returns true if this geometric object is a collection.
References _NOEXCEPT_OP, and isCollection().
Referenced by isCollection().
|
virtualinherited |
It returns true if this geometric object is the empty Geometry.
If true, then this geometric object represents the empty point set for the coordinate space.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isEmpty().
Referenced by isEmpty().
|
staticinherited |
It tells if the given string is a geometry data type.
| stype | The geometry type to be checked. |
References isGeomType().
Referenced by isGeomType().
|
inherited |
It returns true if this geometric object has m coordinate values.
References _NOEXCEPT_OP, and isMeasured().
Referenced by isMeasured().
|
virtualinherited |
It returns true if this geometric object has no anomalous points, such as self intersection or self tangency.
See the ISO and OGC documentation for an explanation about specific conditions of each type of geometry to be considered not simple.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isSimple().
Referenced by isSimple().
|
virtualinherited |
It tells if the geometry is well formed.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isValid().
Referenced by isValid().
|
staticinherited |
It loads the internal MAP of geometry type names to geometry type ids.
References loadGeomTypeId().
Referenced by loadGeomTypeId().
|
inlinevirtualinherited |
It returns a derived GeometryCollection value according to the specified coordinate value.
| mValue | The coordinate value. |
| Exception | It will throw an exception if the operation could not be performed. |
Definition at line 695 of file Geometry.h.
References _NOEXCEPT_OP, Geometry(), locateAlong(), and locateBetween().
Referenced by locateAlong().
|
virtualinherited |
It returns a derived geometry collection value according to the range of coordinate values inclusively.
| mStart | The initial coordinate value. |
| mEnd | The final coordinate value. |
| Exception | It will throw an exception if the operation could not be performed. |
Reimplemented in te::gm::CircularString, te::gm::CompoundCurve, te::gm::LineString, te::gm::MultiLineString, and te::gm::MultiPoint.
References Geometry().
Referenced by locateAlong().
Assignment operator.
| rhs | The other geometry. |
References Triangle().
|
inlineinherited |
It returns the n-th ring.
| i | The coordinate index. |
Definition at line 223 of file CurvePolygon.h.
References m_rings.
|
inlineinherited |
It returns the n-th ring.
| i | The coordinate index. |
Definition at line 208 of file CurvePolygon.h.
References m_rings.
|
virtualinherited |
It returns true if this geometry object spatially overlaps rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and overlaps().
Referenced by overlaps().
|
inherited |
It adds the curve to the curve polygon.
| ring | The ring to be added. |
|
virtualinherited |
It returns the spatial relation between this geometry object and the rhs geometry.
| rhs | The another geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and relate().
|
virtualinherited |
It returns true if this geometry object is spatially related to rhs geometry according to the pattern expressed by the intersection matrix.
It does this by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the matrix.
| rhs | The other geometry to be compared. |
| matrix | The intersection matrix. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and relate().
|
inherited |
It removes the n-th ring in this CurvePolygon.
| i | The index of the ring we want to remove. |
|
inherited |
It sets the number of rings in this curve polygon.
If the new size is less than the old it will drop the geometries.
| size | The new number of rings for the curve polygon. |
|
inherited |
It sets the informed position ring to the new one.
| i | The ring index. |
| r | The new ring to be placed in the informed position. |
|
virtualinherited | |||||||||||||
It sets the Spatial Reference System ID of the geometry and all its parts if it is a GeometryCollection (or a Multi).
| srid | The Spatial Reference System ID to be associated to the geometric object. |
Implements te::gm::Geometry.
References setSRID().
Referenced by setSRID().
|
virtualinherited |
It returns a geometric object that represents the point set symetric difference with another geometry.
| rhs | The other geometry whose symetric difference with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and symDifference().
Referenced by symDifference().
|
inlinevirtualinherited |
It returns the data value in a WKT representation.
Implements te::dt::AbstractData.
Definition at line 953 of file Geometry.h.
References asText(), and toString().
Referenced by toString().
|
virtualinherited |
It returns true if the geometry object spatially touches rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and touches().
Referenced by touches().
|
virtualinherited |
It converts the coordinate values of the geometry to the new spatial reference system.
After calling this method the geometry will be associated to the new SRID.
| srid | The new Spatial Reference System ID used to transform the coordinates of the geometry. |
| Exception | It will throw an exception if it can not do the transformation. |
It returns a geometric object that represents the point set union with another geometry.
| rhs | Another geometry whose union with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and Union().
Referenced by Union().
|
virtualinherited |
It returns true if the geometry object is spatially within rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and within().
Referenced by within().
| Triangle* te::gm::Triangle::adjacent[3] |
references to the adjacentof the triangle
Definition at line 112 of file Triangle.h.
| std::vector<Triangle> te::gm::Triangle::children |
references to the children of the triangle
Definition at line 111 of file Triangle.h.
|
protectedinherited |
|
mutableprotectedinherited |
The geometry minimum bounding rectangle.
Definition at line 961 of file Geometry.h.
|
privateinherited |
An array with the ring list.
Definition at line 433 of file CurvePolygon.h.
Referenced by getNumRings(), getRingN(), getRings(), getRings(), operator[](), and operator[]().
|
protectedinherited |
The Spatial Reference System code associated to the Geometry.
Definition at line 960 of file Geometry.h.
Referenced by getSRID().
| std::size_t te::gm::Triangle::number_of_children |
number of children of the triangle
Definition at line 109 of file Triangle.h.
| std::size_t te::gm::Triangle::number_of_parents |
number of parents of the triangle
Definition at line 110 of file Triangle.h.
| Triangle* te::gm::Triangle::parents[2] |
references to the parents of the triangle
Definition at line 113 of file Triangle.h.
| bool te::gm::Triangle::processed |
Definition at line 117 of file Triangle.h.
| double te::gm::Triangle::r |
circunference radius
Definition at line 116 of file Triangle.h.
|
staticprotectedinherited |
A set of geometry type names (in UPPER CASE).
Definition at line 963 of file Geometry.h.
|
staticprivateinherited |
| int te::gm::Triangle::triangle_index |
triangle index in vector
Definition at line 114 of file Triangle.h.
| bool te::gm::Triangle::visited |
flags
Definition at line 117 of file Triangle.h.
| double te::gm::Triangle::xc |
Definition at line 115 of file Triangle.h.
| double te::gm::Triangle::yc |
circumcenter coordinates of the circunference defined from the 3 points of the triangle
Definition at line 115 of file Triangle.h.