VPTissue Reference Manual
TriangularTile.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_TRIANGULAR_TILE_H_INCLUDED
2 #define SIMPT_EDITOR_TRIANGULAR_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 TriangularTile : public Tile
32 {
33 public:
38 
42  virtual ~TriangularTile();
43 
51  virtual TriangularTile* Left() const;
52 
60  virtual TriangularTile* Right() const;
61 
69  virtual TriangularTile* Up() const;
70 
78  virtual TriangularTile* Down() const;
79 
80 private:
81  TriangularTile(const QPolygonF &polygon, bool odd, QGraphicsItem *parentItem);
82 
83 private:
84  bool m_odd;
85 
86 private:
87  static const double g_side_length;
88  static const double g_height;
89  static const QPolygonF g_start_polygon;
90 };
91 
92 } // namespace
93 
94 #endif // end-of-include-guard
Interface for Tile.
virtual TriangularTile * Left() const
Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent...
virtual TriangularTile * Up() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Down()) Paren...
Namespace for SimPT tissue editor package.
Definition: Cell.h:32
virtual ~TriangularTile()
Destructor.
virtual TriangularTile * Down() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Up()) Parent ...
Abstract base class for cell pattern tiles.
Definition: Tile.h:29
virtual TriangularTile * Right() const
Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent...
see the online Qt documentation