VPTissue Reference Manual
|
Graphics item for Voronoi tesselation of a polygon. More...
#include <VoronoiTesselation.h>
Public Member Functions | |
VoronoiTesselation (const QPolygonF &boundaryPolygon, QGraphicsItem *parent=nullptr) | |
Constructor. More... | |
virtual | ~VoronoiTesselation () |
Destructor. | |
std::list< QPolygonF > | GetCellPolygons () |
Returns the polygons of cell of the Voronoi tesselation. More... | |
Protected Member Functions | |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
Reimplementation of QGraphicsItem::mouseDoubleClickEvent to add a point to the tesselation. | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
Reimplementation of QGraphicsItem::mousePressEvent to remove a point from the tesselation. | |
Graphics item for Voronoi tesselation of a polygon.
Definition at line 42 of file VoronoiTesselation.h.
SimPT_Editor::VoronoiTesselation::VoronoiTesselation | ( | const QPolygonF & | boundaryPolygon, |
QGraphicsItem * | parent = nullptr |
||
) |
Constructor.
boundaryPolygon | The polygon inside which to generate the cell complex |
parent | The QGraphicsItem parent |
Definition at line 46 of file VoronoiTesselation.cpp.
std::list< QPolygonF > SimPT_Editor::VoronoiTesselation::GetCellPolygons | ( | ) |
Returns the polygons of cell of the Voronoi tesselation.
Definition at line 56 of file VoronoiTesselation.cpp.
References SimPT_Editor::PolygonUtils::ClipPolygon().
Referenced by SimPT_Editor::VoronoiGeneratorDialog::GetGeneratedPolygons().