VPTissue Reference Manual
RectangularTile.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_RECTANGULAR_TILE_H_INCLUDED
2 #define SIMPT_EDITOR_RECTANGULAR_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 RectangularTile : public Tile
32 {
33 public:
38 
42  virtual ~RectangularTile();
43 
51  virtual RectangularTile *Left() const;
52 
60  virtual RectangularTile *Right() const;
61 
69  virtual RectangularTile *Up() const;
70 
78  virtual RectangularTile *Down() const;
79 
80 private:
81  RectangularTile(const QPolygonF &polygon, QGraphicsItem *parentItem);
82 
83  static const double g_side_length;
84  static const QPolygonF g_start_polygon;
85 };
86 
87 } // namespace
88 
89 #endif // end-of-include-guard
Interface for Tile.
virtual RectangularTile * 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 RectangularTile * Left() const
Creates a new tile to the left of this tile (should normally be the opposite of Tile::Right()) Parent...
virtual ~RectangularTile()
Destructor.
Abstract base class for cell pattern tiles.
Definition: Tile.h:29
virtual RectangularTile * Right() const
Creates a new tile to the right of this tile (should normally be the opposite of Tile::Left()) Parent...
virtual RectangularTile * 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