26#ifndef __TERRALIB_GEOMETRY_INTERNAL_LINE_H
27#define __TERRALIB_GEOMETRY_INTERNAL_LINE_H
141 using LineString::intersection;
159 void setCoord(
int index,
double x,
double y,
double z = 0.,
double m = 0.);
164 using LineString::distance;
#define TE_DEFINE_VISITABLE
LineString is a curve with linear interpolation between points.
A base class for values that can be retrieved from the data access module.
An Envelope defines a 2D rectangular region.
LineString is a curve with linear interpolation between points.
A Line is LineString with 2 points.
void setCoord(int index, double x, double y, double z=0., double m=0.)
Line(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the line with the specified spatial reference system id and envelope.
Line(const Point &first, const Point &second, GeomType t, int srid=0, Envelope *mbr=0)
It initializes the linestring with the specified spatial reference system id and envelope.
double distance(te::gm::Point p)
Line(const Line &rhs)
Copy constructor.
te::dt::AbstractData * clone() const
It clones the line.
bool intersection(const Line &line, Point &coord) const
~Line()
Virtual destructor.
Line & operator=(const Line &rhs)
Assignment operator.
A point with x and y coordinate values.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.