![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
a polygon vertex to be used with CGAL::Polygon_2. Derives from CGAL::Point_2 but is convertible to an from QPoint (which is used troughout the rest of the program). Also stores the index of the polygon vertex.
Please note that CGAL uses a coordinate system different from Qt.
In most cases this doesn't matter much, but sometimes you have to know this (e.g. when deciding if a polygon is oriented clock-wise or not).
Definition at line 43 of file poly_utils.h.
#include <poly_utils.h>
Inherits Point_2< Kernel >.
Public Types | |
typedef CGAL::Point_2< Kernel > | super |
Public Member Functions | |
CgalPoint () | |
empty constructor More... | |
CgalPoint (const QPointF &p, int i=-1) | |
default constructor from point More... | |
CgalPoint (double x, double y, int i=-1) | |
default constructor from coordinates. assumes CGAL coordinate plane (0,0 on BOTTOM left). More... | |
CgalPoint & | operator= (const QPointF &p) |
assignment operator from QPointF More... | |
operator QPointF () const | |
conversion operator to QPointF More... | |
Public Attributes | |
int | i |
index of polygon vertex (-1 if not available) More... | |
bool | erase |
used by PolgonUtilities::simplify to mark vertexes for deletion More... | |
typedef CGAL::Point_2<Kernel> frechet::poly::CgalPoint::super |
Definition at line 46 of file poly_utils.h.
CgalPoint::CgalPoint | ( | ) |
empty constructor
Definition at line 313 of file poly_utils.cpp.
CgalPoint::CgalPoint | ( | const QPointF & | p, |
int | i = -1 |
||
) |
default constructor from point
p | point in the plane. assumes Qt coordinate plane (0,0 on TOP left) |
i | index of polygon vertex (optional) |
Definition at line 317 of file poly_utils.cpp.
CgalPoint::CgalPoint | ( | double | x, |
double | y, | ||
int | i = -1 |
||
) |
default constructor from coordinates. assumes CGAL coordinate plane (0,0 on BOTTOM left).
x | x-coordinate of point |
y | y-coordinate of point |
i | index of polygon vertex (optional) |
Definition at line 321 of file poly_utils.cpp.
CgalPoint::operator QPointF | ( | ) | const |
conversion operator to QPointF
Definition at line 332 of file poly_utils.cpp.
CgalPoint & CgalPoint::operator= | ( | const QPointF & | p | ) |
assignment operator from QPointF
p | a point |
Definition at line 325 of file poly_utils.cpp.
|
mutable |
used by PolgonUtilities::simplify to mark vertexes for deletion
Definition at line 50 of file poly_utils.h.
int frechet::poly::CgalPoint::i |
index of polygon vertex (-1 if not available)
Definition at line 48 of file poly_utils.h.