OpenASIP  2.0
MachineCanvasLayoutConstraints.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file MachineCanvasLayoutConstraints.hh
26  *
27  * Declaration of MachineCanvasLayoutConstraints class.
28  *
29  * @author Ari Metsähalme 2003 (ari.metsahalme-no.spam-tut.fi)
30  * @note rating: yellow
31  * @note reviewed Jul 22 2004 by tr, ml, jm, am
32  */
33 
34 #ifndef TTA_MACHINE_CANVAS_LAYOUT_CONSTRAINTS_HH
35 #define TTA_MACHINE_CANVAS_LAYOUT_CONSTRAINTS_HH
36 
37 /**
38  * Defines some layout constraints used in visualizing the machine.
39  */
41 public:
42  /// Minimum unit width.
43  static const int UNIT_WIDTH;
44  /// Minimum unit height.
45  static const int UNIT_HEIGHT;
46  /// Space between units.
47  static const int UNIT_SPACE;
48  /// Maximun unit name width in pixels.
49  static const int MAX_UNIT_NAME_WIDTH;
50  /// Default Width of a port.
51  static const int PORT_WIDTH;
52  /// Minimum Width of a port.
53  static const int PORT_MIN_WIDTH;
54  /// Constant used for port width calculation
55  static const int PORT_BASE_WIDTH;
56  /// Space between ports.
57  static const int PORT_SPACE;
58  /// Width of a socket.
59  static const int SOCKET_WIDTH;
60  /// Height of a socket.
61  static const int SOCKET_HEIGHT;
62  /// Space dividing unconnected sockets.
63  static const int SOCKET_SPACE;
64  /// Space dividing connected sockets.
65  static const int SOCKET_MIN_SPACE;
66  /// Space dividing segments.
67  static const int SEGMENT_SPACE;
68  /// Height of a segment.
69  static const int SEGMENT_HEIGHT_BASE;
70  /// Minimum width of a bus.
71  static const int BUS_MIN_WIDTH;
72  /// Minimum height of a bus.
73  static const int BUS_MIN_HEIGHT;
74  /// Space between buses and bus chains.
75  static const int BUS_SPACE;
76  /// Width of a bridge.
77  static const int BRIDGE_WIDTH;
78  /// Height of a bridge.
79  static const int BRIDGE_HEIGHT;
80  /// Space dividing buses and bridges.
81  static const int BRIDGE_SPACE;
82  /// Top margin for the whole processor view.
83  static const int VIEW_MARGIN;
84  /// Left margin.
85  static const int VIEW_LEFT_MARGIN;
86  /// Space reserved for port-socket-connections.
87  static const int CONNECTIONS_SPACE;
88  /// Size of the sockets' direction triangle.
89  static const int TRIANGLE_HEIGHT;
90 };
91 
92 #endif
MachineCanvasLayoutConstraints::UNIT_WIDTH
static const int UNIT_WIDTH
Minimum unit width.
Definition: MachineCanvasLayoutConstraints.hh:43
MachineCanvasLayoutConstraints::BRIDGE_SPACE
static const int BRIDGE_SPACE
Space dividing buses and bridges.
Definition: MachineCanvasLayoutConstraints.hh:81
MachineCanvasLayoutConstraints
Definition: MachineCanvasLayoutConstraints.hh:40
MachineCanvasLayoutConstraints::UNIT_HEIGHT
static const int UNIT_HEIGHT
Minimum unit height.
Definition: MachineCanvasLayoutConstraints.hh:45
MachineCanvasLayoutConstraints::BUS_MIN_WIDTH
static const int BUS_MIN_WIDTH
Minimum width of a bus.
Definition: MachineCanvasLayoutConstraints.hh:71
MachineCanvasLayoutConstraints::PORT_BASE_WIDTH
static const int PORT_BASE_WIDTH
Constant used for port width calculation.
Definition: MachineCanvasLayoutConstraints.hh:55
MachineCanvasLayoutConstraints::SOCKET_SPACE
static const int SOCKET_SPACE
Space dividing unconnected sockets.
Definition: MachineCanvasLayoutConstraints.hh:63
MachineCanvasLayoutConstraints::SEGMENT_HEIGHT_BASE
static const int SEGMENT_HEIGHT_BASE
Height of a segment.
Definition: MachineCanvasLayoutConstraints.hh:69
MachineCanvasLayoutConstraints::PORT_MIN_WIDTH
static const int PORT_MIN_WIDTH
Minimum Width of a port.
Definition: MachineCanvasLayoutConstraints.hh:53
MachineCanvasLayoutConstraints::SOCKET_WIDTH
static const int SOCKET_WIDTH
Width of a socket.
Definition: MachineCanvasLayoutConstraints.hh:59
MachineCanvasLayoutConstraints::SOCKET_MIN_SPACE
static const int SOCKET_MIN_SPACE
Space dividing connected sockets.
Definition: MachineCanvasLayoutConstraints.hh:65
MachineCanvasLayoutConstraints::MAX_UNIT_NAME_WIDTH
static const int MAX_UNIT_NAME_WIDTH
Maximun unit name width in pixels.
Definition: MachineCanvasLayoutConstraints.hh:49
MachineCanvasLayoutConstraints::CONNECTIONS_SPACE
static const int CONNECTIONS_SPACE
Space reserved for port-socket-connections.
Definition: MachineCanvasLayoutConstraints.hh:87
MachineCanvasLayoutConstraints::PORT_WIDTH
static const int PORT_WIDTH
Default Width of a port.
Definition: MachineCanvasLayoutConstraints.hh:51
MachineCanvasLayoutConstraints::VIEW_MARGIN
static const int VIEW_MARGIN
Top margin for the whole processor view.
Definition: MachineCanvasLayoutConstraints.hh:83
MachineCanvasLayoutConstraints::TRIANGLE_HEIGHT
static const int TRIANGLE_HEIGHT
Size of the sockets' direction triangle.
Definition: MachineCanvasLayoutConstraints.hh:89
MachineCanvasLayoutConstraints::BUS_SPACE
static const int BUS_SPACE
Space between buses and bus chains.
Definition: MachineCanvasLayoutConstraints.hh:75
MachineCanvasLayoutConstraints::SEGMENT_SPACE
static const int SEGMENT_SPACE
Space dividing segments.
Definition: MachineCanvasLayoutConstraints.hh:67
MachineCanvasLayoutConstraints::BRIDGE_WIDTH
static const int BRIDGE_WIDTH
Width of a bridge.
Definition: MachineCanvasLayoutConstraints.hh:77
MachineCanvasLayoutConstraints::VIEW_LEFT_MARGIN
static const int VIEW_LEFT_MARGIN
Left margin.
Definition: MachineCanvasLayoutConstraints.hh:85
MachineCanvasLayoutConstraints::BRIDGE_HEIGHT
static const int BRIDGE_HEIGHT
Height of a bridge.
Definition: MachineCanvasLayoutConstraints.hh:79
MachineCanvasLayoutConstraints::BUS_MIN_HEIGHT
static const int BUS_MIN_HEIGHT
Minimum height of a bus.
Definition: MachineCanvasLayoutConstraints.hh:73
MachineCanvasLayoutConstraints::SOCKET_HEIGHT
static const int SOCKET_HEIGHT
Height of a socket.
Definition: MachineCanvasLayoutConstraints.hh:61
MachineCanvasLayoutConstraints::UNIT_SPACE
static const int UNIT_SPACE
Space between units.
Definition: MachineCanvasLayoutConstraints.hh:47
MachineCanvasLayoutConstraints::PORT_SPACE
static const int PORT_SPACE
Space between ports.
Definition: MachineCanvasLayoutConstraints.hh:57