VPTissue Reference Manual
SimPT_Editor::Tile Class Referenceabstract

Abstract base class for cell pattern tiles. More...

#include <Tile.h>

Inheritance diagram for SimPT_Editor::Tile:
Inheritance graph
Collaboration diagram for SimPT_Editor::Tile:
Collaboration graph

Public Member Functions

 Tile (const QPolygonF &polygon, const QPainterPath &path)
 Constructor. More...
 
virtual ~Tile ()
 (Virtual) Destructor
 
virtual TileDown () const =0
 Creates a new tile on the row under this tile (should normally be the opposite of Tile::Up()) Parent is set to parent of this tile. More...
 
const QPolygonF & GetPolygon () const
 Returns to the polygon of this tile. More...
 
virtual TileLeft () const =0
 Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent is set to parent of this tile. More...
 
virtual TileRight () const =0
 Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent is set to parent of this tile. More...
 
virtual TileUp () const =0
 Creates a new tile on the row under this tile (should normally be the opposite of Tile::Down()) Parent is set to parent of this tile. More...
 

Protected Attributes

const QPolygonF m_polygon
 

Detailed Description

Abstract base class for cell pattern tiles.

Definition at line 29 of file Tile.h.

Constructor & Destructor Documentation

SimPT_Editor::Tile::Tile ( const QPolygonF &  polygon,
const QPainterPath &  path 
)
inline

Constructor.

Parameters
polygonThe polygon of the full tile
pathThe path to draw the polygon

Definition at line 38 of file Tile.h.

Member Function Documentation

virtual Tile* SimPT_Editor::Tile::Down ( ) const
pure virtual

Creates a new tile on the row under this tile (should normally be the opposite of Tile::Up()) Parent is set to parent of this tile.

Returns
Tile* A new tile to below this one (ownership is returned with pointer)

Implemented in SimPT_Editor::DiamondTile, SimPT_Editor::HexagonalTile, SimPT_Editor::RectangularTile, and SimPT_Editor::TriangularTile.

const QPolygonF& SimPT_Editor::Tile::GetPolygon ( ) const
inline

Returns to the polygon of this tile.

Returns
polygon A const reference to the tile polygon

Definition at line 51 of file Tile.h.

virtual Tile* SimPT_Editor::Tile::Left ( ) const
pure virtual

Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent is set to parent of this tile.

Returns
Tile* A new tile to the left of this one (ownership is returned with pointer)

Implemented in SimPT_Editor::DiamondTile, SimPT_Editor::HexagonalTile, SimPT_Editor::RectangularTile, and SimPT_Editor::TriangularTile.

virtual Tile* SimPT_Editor::Tile::Right ( ) const
pure virtual

Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent is set to parent of this tile.

Returns
Tile* A new tile to the right of this one (ownership is returned with pointer)

Implemented in SimPT_Editor::DiamondTile, SimPT_Editor::HexagonalTile, SimPT_Editor::RectangularTile, and SimPT_Editor::TriangularTile.

virtual Tile* SimPT_Editor::Tile::Up ( ) const
pure virtual

Creates a new tile on the row under this tile (should normally be the opposite of Tile::Down()) Parent is set to parent of this tile.

Returns
Tile* A new tile to below this one (ownership is returned with pointer)

Implemented in SimPT_Editor::DiamondTile, SimPT_Editor::HexagonalTile, SimPT_Editor::RectangularTile, and SimPT_Editor::TriangularTile.


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