|
| Point () |
| Empty point constructor.
|
|
| Point (const Coordinate &coordinate) |
| Constructor with Coordinate.
|
|
| Point (const Kernel::FT &x, const Kernel::FT &y) |
| XY Constructor with exact coordinates.
|
|
| Point (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z, const double &m=NaN()) |
| XY Constructor with exact coordinates.
|
|
| Point (const double &x, const double &y) |
| XY constructor.
|
|
| Point (const double &x, const double &y, const double &z) |
| XYZ constructor.
|
|
| Point (const double &x, const double &y, const double &z, const double &m) |
| XYZM constructor.
|
|
| Point (const Kernel::Point_2 &other) |
| Constructor from CGAL::Point_2<K>
|
|
| Point (const Kernel::Point_3 &other) |
| Constructor from CGAL::Point_3<K>
|
|
| Point (const Point &other) |
| copy constructor
|
|
Point & | operator= (const Point &other) |
| assign operator
|
|
| ~Point () |
| destructor
|
|
virtual Point * | clone () const |
| Get a deep copy of the geometry.
|
|
virtual std::string | geometryType () const |
| [OGC/SFA]returns the geometry type
|
|
virtual GeometryType | geometryTypeId () const |
| Returns a code corresponding to the type.
|
|
virtual int | dimension () const |
| [OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...)
|
|
virtual int | coordinateDimension () const |
| [OGC/SFA]returns the dimension of the coordinates
|
|
virtual bool | isEmpty () const |
| [OGC/SFA]test if geometry is empty
|
|
virtual bool | is3D () const |
| [OGC/SFA]test if geometry is 3d
|
|
virtual bool | isMeasured () const |
| [OGC/SFA]test if geometry is measured (has an m)
|
|
Kernel::RT | x () const |
| Returns the x value as a double throw for empty Point.
|
|
Kernel::RT | y () const |
| Returns the y value as a double throw for empty Point.
|
|
Kernel::RT | z () const |
| Returns the z value (zero for 2D) throw for empty Point.
|
|
double | m () const |
| Returns the m value (NaN is not defined)
|
|
void | setM (const double &m) |
| Sets the m value.
|
|
bool | operator< (const Point &other) const |
| compare two points
|
|
bool | operator== (const Point &other) const |
| compare with an other point
|
|
bool | operator!= (const Point &other) const |
| compare with an other point
|
|
bool | almostEqual (const Point &other, const double tolerance) const |
| absolute comparison with an other point
|
|
virtual void | accept (GeometryVisitor &visitor) |
| [visitor]dispatch visitor
|
|
virtual void | accept (ConstGeometryVisitor &visitor) const |
| [visitor]dispatch visitor
|
|
Kernel::Vector_2 | toVector_2 () const |
|
Kernel::Vector_3 | toVector_3 () const |
|
Kernel::Point_2 | toPoint_2 () const |
|
Kernel::Point_3 | toPoint_3 () const |
|
template<int D> |
detail::TypeForDimension< D >::Point | toPoint_d () const |
| Converts to CGAL::Point_2 or CGAL::Point_3.
|
|
Coordinate & | coordinate () |
|
const Coordinate & | coordinate () const |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int) |
| Serializer.
|
|
template<int Dim> |
auto | toPoint_d () const -> typename TypeForDimension< Dim >::Point |
|
| Geometry () |
| Default constructor.
|
|
| Geometry (const Geometry &)=default |
| Copy constructor.
|
|
Geometry & | operator= (const Geometry &other)=default |
| Copy assignemnt operator.
|
|
virtual | ~Geometry ()=default |
| Destructor.
|
|
void | forceValidityFlag (bool validity) |
| Force the state of the validity flag.
|
|
bool | hasValidityFlag () const |
| Returns the validity flag.
|
|
std::string | asText (const int &numDecimals=-1) const |
| [OGC/SFA]returns the WKT string
|
|
Envelope | envelope () const |
| [OGC/SFA]Returns a polygon representing the BBOX of the geometry
|
|
virtual std::unique_ptr< Geometry > | boundary () const |
| [OGC/SFA]Returns the boundary of the geometry
|
|
double | distance (const Geometry &other) const |
| Computes the distance to an other geometry.
|
|
double | distance3D (const Geometry &other) const |
| Computes the 3D distance to an other geometry.
|
|
void | round (const long &scale=1) |
| round the geometry with a corresponding scale factor
|
|
auto | almostEqual (const Geometry &, const double tolerance) const -> bool |
| Equality operator.
|
|
virtual size_t | numGeometries () const |
| [OGC/SFA]Gets the number of geometries in a collection of geometries
|
|
virtual const Geometry & | geometryN (size_t const &n) const |
| [OGC/SFA]Returns the n-th geometry
|
|
virtual Geometry & | geometryN (size_t const &n) |
| [OGC/SFA]Returns the n-th geometry
|
|
template<typename Derived > |
bool | is () const |
| Tests if geometry is of "Derived" type given as template parameter.
|
|
template<typename Derived > |
const Derived & | as () const |
| Downcast to a "Derived" class.
|
|
template<typename Derived > |
Derived & | as () |
| Downcast to a "Derived" class.
|
|
template<class Archive > |
void | serialize (Archive &, const unsigned int) |
| Serializer.
|
|
A point in SFA.
The x(),y(),z() interface is based on CGAL kernel requirements, taken from examples/Kernel_23/MyPointC2.h
- Todo
- strong typing on coordinate dimension?