VPTissue Reference Manual
SimPT_Editor::RegularTiling Class Reference

Class of a cell tiling with regular polygons. More...

#include <RegularTiling.h>

Inheritance diagram for SimPT_Editor::RegularTiling:
Inheritance graph
Collaboration diagram for SimPT_Editor::RegularTiling:
Collaboration graph

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)
 

Detailed Description

Class of a cell tiling with regular polygons.

Definition at line 34 of file RegularTiling.h.

Constructor & Destructor Documentation

SimPT_Editor::RegularTiling::RegularTiling ( Tile seed,
const QRectF &  rect,
QGraphicsItem parent = nullptr 
)

Constructor.

Parameters
seedThe initial tile to start with (the tiling takes ownership)
rectThe initial rectangle (see SetRectangle())
parentThe QGraphicsItem parent

Definition at line 29 of file RegularTiling.cpp.

Member Function Documentation

std::list< QPolygonF > SimPT_Editor::RegularTiling::GetPolygons ( ) const

Get the polygons associated with this tiling.

Returns
The polygons of all the tiles mapped to the coordinate system of the parent.

Definition at line 50 of file RegularTiling.cpp.

Referenced by SimPT_Editor::RegularGeneratorDialog::GetGeneratedPolygons().

Here is the caller graph for this function:

void SimPT_Editor::RegularTiling::SetRectangle ( const QRectF &  rect)

The rectangle the tiling should overlay.

Parameters
rectThe rectangle (in the coordinates of the parent of this item)

Definition at line 43 of file RegularTiling.cpp.


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