VPTissue Reference Manual
SimPT_Editor::HexagonalTile Class Reference

A hexagonal tile. More...

#include <HexagonalTile.h>

Inheritance diagram for SimPT_Editor::HexagonalTile:
Inheritance graph
Collaboration diagram for SimPT_Editor::HexagonalTile:
Collaboration graph

Public Member Functions

 HexagonalTile ()
 Constructor.
 
virtual ~HexagonalTile ()
 Destructor.
 
virtual HexagonalTileDown () const
 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 Implementation of Tile::Down() More...
 
virtual HexagonalTileLeft () const
 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 Implementation of Tile::Left() More...
 
virtual HexagonalTileRight () const
 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 Implementation of Tile::Right() More...
 
virtual HexagonalTileUp () const
 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 Implementation of Tile::Up() More...
 
- Public Member Functions inherited from SimPT_Editor::Tile
 Tile (const QPolygonF &polygon, const QPainterPath &path)
 Constructor. More...
 
virtual ~Tile ()
 (Virtual) Destructor
 
const QPolygonF & GetPolygon () const
 Returns to the polygon of this tile. More...
 

Additional Inherited Members

- Protected Attributes inherited from SimPT_Editor::Tile
const QPolygonF m_polygon
 

Detailed Description

A hexagonal tile.

Definition at line 31 of file HexagonalTile.h.

Member Function Documentation

HexagonalTile * SimPT_Editor::HexagonalTile::Down ( ) const
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 Implementation of Tile::Down()

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

Implements SimPT_Editor::Tile.

Definition at line 68 of file HexagonalTile.cpp.

References HexagonalTile().

Here is the call graph for this function:

HexagonalTile * SimPT_Editor::HexagonalTile::Left ( ) const
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 Implementation of Tile::Left()

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

Implements SimPT_Editor::Tile.

Definition at line 53 of file HexagonalTile.cpp.

References HexagonalTile().

Here is the call graph for this function:

HexagonalTile * SimPT_Editor::HexagonalTile::Right ( ) const
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 Implementation of Tile::Right()

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

Implements SimPT_Editor::Tile.

Definition at line 58 of file HexagonalTile.cpp.

References HexagonalTile().

Here is the call graph for this function:

HexagonalTile * SimPT_Editor::HexagonalTile::Up ( ) const
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 Implementation of Tile::Up()

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

Implements SimPT_Editor::Tile.

Definition at line 63 of file HexagonalTile.cpp.

References HexagonalTile().

Here is the call graph for this function:


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