26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_POINT_H
27 #define __TERRALIB_GEOMETRY_INTERNAL_POINT_H
71 Point(
const double& x,
const double& y,
int srid = 0,
Envelope* mbr = 0);
81 Point(
int srid = 0,
Envelope* mbr = 0);
88 Point(
const Point& rhs);
97 virtual Point& operator=(
const Point& rhs);
136 const double&
getX()
const {
return m_x; }
143 void setX(
const double& x) { m_x = x; }
150 const double&
getY()
const {
return m_y; }
157 void setY(
const double& y) { m_y = y; }
164 virtual const double&
getZ()
const {
return sm_notNumber; }
171 virtual void setZ(
const double& z);
178 virtual const double&
getM()
const {
return sm_notNumber; }
185 virtual void setM(
const double& m);
223 Point(
GeomType t,
int srid,
Envelope* mbr,
const double& x,
const double& y);
239 #endif // __TERRALIB_GEOMETRY_INTERNAL_POINT_H
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...
TEDATAACCESSEXPORT te::da::Expression * operator<(const te::da::Expression &e1, const te::da::Expression &e2)
virtual const double & getM() const
It returns the Point m-coordinate value, if it has one or DoubleNotANumber otherwise.
static const double sm_notNumber
Just a special value to return in the case of a invalid Geometry.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
virtual const double & getZ() const
It returns the Point z-coordinate value, if it has one or DoubleNotANumber otherwise.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
const double & getY() const
It returns the Point y-coordinate value.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
virtual ~Point()
Virtual destructor.
A base class for values that can be retrieved from the data access module.
#define TE_DEFINE_VISITABLE
double m_y
The Point y-coordinate value.
void setX(const double &x)
It sets the Point x-coordinate value.
void setY(const double &y)
It sets the Point y-coordinate value.
static const std::string sm_typeName
Geometry type name for Point.
double m_x
The Point x-coordinate value.
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...
const double & getX() const
It returns the Point x-coordinate value.