VPTissue Reference Manual
DiamondTile.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_DIAMOND_TILE_H_INCLUDED
2 #define SIMPT_EDITOR_DIAMOND_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 "Tile.h"
23 
24 #include <QTransform>
25 
26 namespace SimPT_Editor {
27 
31 class DiamondTile : public Tile
32 {
33 public:
37  DiamondTile();
38 
42  virtual ~DiamondTile();
43 
44 
52  virtual DiamondTile *Left() const;
53 
61  virtual DiamondTile *Right() const;
62 
70  virtual DiamondTile *Up() const;
71 
79  virtual DiamondTile *Down() const;
80 
81 private:
82  DiamondTile(const QPolygonF &polygon, QGraphicsItem *parentItem);
83 
84 private:
85  static const double g_diagonal_length;
86  static const QPolygonF g_start_polygon;
87 };
88 
89 } // namespace
90 
91 #endif // end-of-include-guard
A diamond shaped tile.
Definition: DiamondTile.h:31
Interface for Tile.
Namespace for SimPT tissue editor package.
Definition: Cell.h:32
virtual DiamondTile * Up() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Down()) Paren...
Definition: DiamondTile.cpp:61
virtual DiamondTile * Down() const
Creates a new tile on the row under this tile (should normally be the opposite of Tile::Up()) Parent ...
Definition: DiamondTile.cpp:66
virtual ~DiamondTile()
Destructor.
Definition: DiamondTile.cpp:47
DiamondTile()
Constructor.
Definition: DiamondTile.cpp:42
virtual DiamondTile * Right() const
Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent...
Definition: DiamondTile.cpp:56
virtual DiamondTile * Left() const
Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent...
Definition: DiamondTile.cpp:51
Abstract base class for cell pattern tiles.
Definition: Tile.h:29
see the online Qt documentation