VPTissue Reference Manual
HexagonalTile.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_HEXAGONAL_TILE_H_INCLUDED
2 #define SIMPT_EDITOR_HEXAGONAL_TILE_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "generator/tiles/Tile.h"
23 
24 #include <QTransform>
25 
26 namespace SimPT_Editor {
27 
31 class HexagonalTile : public Tile
32 {
33 public:
37  HexagonalTile();
38 
42  virtual ~HexagonalTile();
43 
51  virtual HexagonalTile *Left() const;
52 
60  virtual HexagonalTile *Right() const;
61 
69  virtual HexagonalTile *Up() const;
70 
78  virtual HexagonalTile *Down() const;
79 
80 private:
81  HexagonalTile(const QPolygonF &polygon, QGraphicsItem *parentItem);
82 
83  static const double g_side_length;
84  static const double g_half_height;
85  static const QPolygonF g_start_polygon;
86 };
87 
88 } // namespace
89 
90 #endif // end-of-include-guard
Interface for Tile.
Namespace for SimPT tissue editor package.
Definition: Cell.h:32
virtual HexagonalTile * Left() const
Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent...
virtual ~HexagonalTile()
Destructor.
A hexagonal tile.
Definition: HexagonalTile.h:31
virtual HexagonalTile * Right() const
Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent...
virtual HexagonalTile * Up() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Down()) Paren...
Abstract base class for cell pattern tiles.
Definition: Tile.h:29
virtual HexagonalTile * Down() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Up()) Parent ...
see the online Qt documentation