![]() |
VPTissue Reference Manual
|
Class of a cell tiling with regular polygons. More...
#include <RegularTiling.h>


Public Member Functions | |
| RegularTiling (Tile *seed, const QRectF &rect, QGraphicsItem *parent=nullptr) | |
| Constructor. More... | |
| virtual | ~RegularTiling () |
| Destructor. | |
| std::list< QPolygonF > | GetPolygons () const |
| Get the polygons associated with this tiling. More... | |
| void | SetRectangle (const QRectF &rect) |
| The rectangle the tiling should overlay. More... | |
Protected Member Functions | |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Class of a cell tiling with regular polygons.
Definition at line 34 of file RegularTiling.h.
| SimPT_Editor::RegularTiling::RegularTiling | ( | Tile * | seed, |
| const QRectF & | rect, | ||
| QGraphicsItem * | parent = nullptr |
||
| ) |
Constructor.
| seed | The initial tile to start with (the tiling takes ownership) |
| rect | The initial rectangle (see SetRectangle()) |
| parent | The QGraphicsItem parent |
Definition at line 29 of file RegularTiling.cpp.
| std::list< QPolygonF > SimPT_Editor::RegularTiling::GetPolygons | ( | ) | const |
Get the polygons associated with this tiling.
Definition at line 50 of file RegularTiling.cpp.
Referenced by SimPT_Editor::RegularGeneratorDialog::GetGeneratedPolygons().

| void SimPT_Editor::RegularTiling::SetRectangle | ( | const QRectF & | rect | ) |
The rectangle the tiling should overlay.
| rect | The rectangle (in the coordinates of the parent of this item) |
Definition at line 43 of file RegularTiling.cpp.