|
SFCGAL
2.3.0
|
A point in SFA. More...
#include <Point.h>
Inherits SFCGAL::GeometryImpl< Derived, Base >.
Public Member Functions | |
| Point () | |
| Empty point constructor. More... | |
| Point (const Coordinate &coordinate) | |
| Constructor with Coordinate. More... | |
| Point (const Kernel::FT &x, const Kernel::FT &y) | |
| XY Constructor with exact coordinates. More... | |
| Point (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z, const double &m=NaN()) | |
| XYZ Constructor with exact coordinates. More... | |
| Point (const double &x, const double &y) | |
| XY constructor. More... | |
| Point (const double &x, const double &y, const double &z) | |
| XYZ constructor. More... | |
| Point (const double &x, const double &y, const double &z, const double &m) | |
| XYZM constructor. More... | |
| Point (const double &x, const double &y, const double &z, const double &m, CoordinateType dim) | |
| Generic XYZM constructor determined by CoordinateType. More... | |
| Point (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z, const double &m, CoordinateType dim) | |
| Generic XYZM constructor determined by CoordinateType. More... | |
| Point (const Kernel::Point_2 &other) | |
| Constructor from CGAL::Point_2<K> More... | |
| Point (const Kernel::Point_3 &other) | |
| Constructor from CGAL::Point_3<K> More... | |
| Point (const Point &other) | |
| copy constructor More... | |
| auto | operator= (const Point &other) -> Point & |
| assign operator More... | |
| ~Point () override | |
| destructor More... | |
| auto | geometryType () const -> std::string override |
| Get the geometry type as string. More... | |
| auto | geometryTypeId () const -> GeometryType override |
| Get the geometry type identifier. More... | |
| auto | dimension () const -> int override |
| Get the dimension of the point. More... | |
| auto | coordinateDimension () const -> int override |
| Get the coordinate dimension. More... | |
| auto | isEmpty () const -> bool override |
| Check if the point is empty. More... | |
| auto | is3D () const -> bool override |
| Check if the point has 3D coordinates. More... | |
| auto | isMeasured () const -> bool override |
| Check if the point has measured coordinates. More... | |
| auto | dropZ () -> bool override |
| Drop Z coordinate. More... | |
| auto | dropM () -> bool override |
| Drop M coordinate. More... | |
| auto | swapXY () -> void override |
| Swap X and Y coordinates. More... | |
| auto | x () const -> Kernel::RT |
| Returns the x value as a double throw for empty Point. More... | |
| auto | y () const -> Kernel::RT |
| Returns the y value as a double throw for empty Point. More... | |
| auto | z () const -> Kernel::RT |
| Returns the z value (zero for 2D) throw for empty Point. More... | |
| auto | m () const -> double |
| Returns the m value (NaN is not defined) More... | |
| void | setM (const double &m) |
| Sets the m value. More... | |
| auto | operator< (const Point &other) const -> bool |
| compare two points More... | |
| auto | operator== (const Point &other) const -> bool |
| compare with an other point More... | |
| auto | operator!= (const Point &other) const -> bool |
| compare with an other point More... | |
| auto | almostEqual (const Point &other, double tolerance) const -> bool |
| absolute comparison with an other point More... | |
| void | accept (GeometryVisitor &visitor) override |
| Accept a geometry visitor. More... | |
| void | accept (ConstGeometryVisitor &visitor) const override |
| Accept a const geometry visitor. More... | |
| auto | toVector_2 () const -> Kernel::Vector_2 |
| Convert to CGAL 2D vector. More... | |
| auto | toVector_3 () const -> Kernel::Vector_3 |
| Convert to CGAL 3D vector. More... | |
| auto | toPoint_2 () const -> Kernel::Point_2 |
| Convert to CGAL 2D point. More... | |
| auto | toPoint_3 () const -> Kernel::Point_3 |
| Convert to CGAL 3D point. More... | |
| template<int Dim> | |
| auto | toPoint_d () const -> typename detail::TypeForDimension< Dim >::Point |
| Converts to CGAL::Point_2 or CGAL::Point_3. More... | |
| auto | coordinate () -> Coordinate & |
| Get reference to coordinate. More... | |
| auto | coordinate () const -> const Coordinate & |
| Get const reference to coordinate. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serializer. More... | |
A point in SFA.
The x(),y(),z() interface is based on CGAL kernel requirements, taken from examples/Kernel_23/MyPointC2.h
| SFCGAL::Point::Point | ( | ) |
Empty point constructor.
| SFCGAL::Point::Point | ( | const Coordinate & | coordinate | ) |
Constructor with Coordinate.
| coordinate | The coordinate to use for this point |
| SFCGAL::Point::Point | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y | ||
| ) |
XY Constructor with exact coordinates.
| x | The X coordinate |
| y | The Y coordinate |
| SFCGAL::Point::Point | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y, | ||
| const Kernel::FT & | z, | ||
| const double & | m = NaN() |
||
| ) |
XYZ Constructor with exact coordinates.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| m | The M coordinate (default NaN) |
| SFCGAL::Point::Point | ( | const double & | x, |
| const double & | y | ||
| ) |
XY constructor.
| x | The X coordinate |
| y | The Y coordinate |
| SFCGAL::Point::Point | ( | const double & | x, |
| const double & | y, | ||
| const double & | z | ||
| ) |
XYZ constructor.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| SFCGAL::Point::Point | ( | const double & | x, |
| const double & | y, | ||
| const double & | z, | ||
| const double & | m | ||
| ) |
XYZM constructor.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| m | The M coordinate |
| SFCGAL::Point::Point | ( | const double & | x, |
| const double & | y, | ||
| const double & | z, | ||
| const double & | m, | ||
| CoordinateType | dim | ||
| ) |
Generic XYZM constructor determined by CoordinateType.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| m | The M coordinate |
| dim | The coordinate type dimension |
| SFCGAL::Point::Point | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y, | ||
| const Kernel::FT & | z, | ||
| const double & | m, | ||
| CoordinateType | dim | ||
| ) |
Generic XYZM constructor determined by CoordinateType.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| m | The M coordinate |
| dim | The coordinate type dimension |
| SFCGAL::Point::Point | ( | const Kernel::Point_2 & | other | ) |
Constructor from CGAL::Point_2<K>
| other | The CGAL 2D point to copy |
| SFCGAL::Point::Point | ( | const Kernel::Point_3 & | other | ) |
Constructor from CGAL::Point_3<K>
| other | The CGAL 3D point to copy |
|
default |
copy constructor
| other | The point to copy from |
|
overridedefault |
destructor
|
override |
Accept a geometry visitor.
| visitor | Visitor to accept |
|
override |
Accept a const geometry visitor.
| visitor | Const visitor to accept |
| auto SFCGAL::Point::almostEqual | ( | const Point & | other, |
| double | tolerance | ||
| ) | const -> bool |
absolute comparison with an other point
| other | The point to compare with |
| tolerance | The tolerance for comparison |
|
inline |
Get reference to coordinate.
|
inline |
Get const reference to coordinate.
|
override |
Get the coordinate dimension.
|
override |
Get the dimension of the point.
|
override |
Drop M coordinate.
|
override |
Drop Z coordinate.
|
override |
Get the geometry type as string.
|
override |
Get the geometry type identifier.
|
override |
Check if the point has 3D coordinates.
|
override |
Check if the point is empty.
|
override |
Check if the point has measured coordinates.
|
inline |
Returns the m value (NaN is not defined)
| auto SFCGAL::Point::operator!= | ( | const Point & | other | ) | const -> bool |
compare with an other point
| other | The point to compare with |
| auto SFCGAL::Point::operator< | ( | const Point & | other | ) | const -> bool |
compare two points
| other | The point to compare with |
assign operator
| other | The point to assign from |
| auto SFCGAL::Point::operator== | ( | const Point & | other | ) | const -> bool |
compare with an other point
| other | The point to compare with |
|
inline |
Serializer.
| ar | Archive for serialization |
|
inline |
Sets the m value.
| m | The new M coordinate value |
|
override |
Swap X and Y coordinates.
|
inline |
|
inline |
| auto SFCGAL::Point::toPoint_d | ( | ) | const -> typename detail::TypeForDimension<Dim>::Point |
Converts to CGAL::Point_2 or CGAL::Point_3.
| Dim | The dimension (2 or 3) |
|
inline |
|
inline |
|
inline |
Returns the x value as a double throw for empty Point.
|
inline |
Returns the y value as a double throw for empty Point.
|
inline |
Returns the z value (zero for 2D) throw for empty Point.
1.8.10