VPTissue Reference Manual
SimPT_Editor::VoronoiGeneratorDialog Class Reference

Dialog for generating patterns in a cell using Voronoi tessellation. More...

#include <VoronoiGeneratorDialog.h>

Inheritance diagram for SimPT_Editor::VoronoiGeneratorDialog:
Inheritance graph
Collaboration diagram for SimPT_Editor::VoronoiGeneratorDialog:
Collaboration graph

Public Member Functions

 VoronoiGeneratorDialog (const QPolygonF &boundaryPolygon, double initialScale=1.0, QWidget *parent=nullptr)
 Constructor. More...
 
virtual ~VoronoiGeneratorDialog ()
 Destructor.
 
std::list< QPolygonF > GetGeneratedPolygons () const
 Retrieves the generated polygons after the dialog has successfully executed. More...
 

Detailed Description

Dialog for generating patterns in a cell using Voronoi tessellation.

Definition at line 38 of file VoronoiGeneratorDialog.h.

Constructor & Destructor Documentation

SimPT_Editor::VoronoiGeneratorDialog::VoronoiGeneratorDialog ( const QPolygonF &  boundaryPolygon,
double  initialScale = 1.0,
QWidget parent = nullptr 
)

Constructor.

Parameters
boundaryPolygonThe polygon inside which to generate the cell complex
initialScaleThe initial scale of the generator graphics view
parentThe parent of the dialog

Definition at line 45 of file VoronoiGeneratorDialog.cpp.

Member Function Documentation

std::list< QPolygonF > SimPT_Editor::VoronoiGeneratorDialog::GetGeneratedPolygons ( ) const

Retrieves the generated polygons after the dialog has successfully executed.

Returns
list<QPolygonF> The polygons of the generated cells The polygons are open, meaning that the first point and last point aren't equal The points of the polygons are also in counterclockwise order (in a standard right-handed coordinate system)

Definition at line 56 of file VoronoiGeneratorDialog.cpp.

References SimPT_Editor::PolygonUtils::Counterclockwise(), and SimPT_Editor::VoronoiTesselation::GetCellPolygons().

Here is the call graph for this function:


The documentation for this class was generated from the following files: