VPTissue Reference Manual
SimPT_Editor::RegularGeneratorDialog Class Reference

Dialog for generating regular patterns in a cell. More...

#include <RegularGeneratorDialog.h>

Inheritance diagram for SimPT_Editor::RegularGeneratorDialog:
Inheritance graph
Collaboration diagram for SimPT_Editor::RegularGeneratorDialog:
Collaboration graph

Public Member Functions

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

Detailed Description

Dialog for generating regular patterns in a cell.

Definition at line 42 of file RegularGeneratorDialog.h.

Constructor & Destructor Documentation

SimPT_Editor::RegularGeneratorDialog::RegularGeneratorDialog ( 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 75 of file RegularGeneratorDialog.cpp.

Member Function Documentation

std::list< QPolygonF > SimPT_Editor::RegularGeneratorDialog::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

Definition at line 86 of file RegularGeneratorDialog.cpp.

References SimPT_Editor::PolygonUtils::ClipPolygon(), SimPT_Editor::PolygonUtils::Counterclockwise(), SimPT_Editor::RegularTiling::GetPolygons(), and SimPT_Editor::PolygonUtils::OpenPolygon().

Here is the call graph for this function:


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