OpenASIP  2.0
Static Public Attributes | List of all members
MachineCanvasLayoutConstraints Class Reference

#include <MachineCanvasLayoutConstraints.hh>

Collaboration diagram for MachineCanvasLayoutConstraints:
Collaboration graph

Static Public Attributes

static const int UNIT_WIDTH = 85
 Minimum unit width. More...
 
static const int UNIT_HEIGHT = 45
 Minimum unit height. More...
 
static const int UNIT_SPACE = 24
 Space between units. More...
 
static const int MAX_UNIT_NAME_WIDTH = 250
 Maximun unit name width in pixels. More...
 
static const int PORT_WIDTH = 16
 Default Width of a port. More...
 
static const int PORT_MIN_WIDTH = 9
 Minimum Width of a port. More...
 
static const int PORT_BASE_WIDTH = 5
 Constant used for port width calculation. More...
 
static const int PORT_SPACE = 14
 Space between ports. More...
 
static const int SOCKET_WIDTH = 16
 Width of a socket. More...
 
static const int SOCKET_HEIGHT = 100
 Height of a socket. More...
 
static const int SOCKET_SPACE = SOCKET_WIDTH
 Space dividing unconnected sockets. More...
 
static const int SOCKET_MIN_SPACE = 2
 Space dividing connected sockets. More...
 
static const int SEGMENT_SPACE = 16
 Space dividing segments. More...
 
static const int SEGMENT_HEIGHT_BASE = 3
 Height of a segment. More...
 
static const int BUS_MIN_WIDTH = 206
 Minimum width of a bus. More...
 
static const int BUS_MIN_HEIGHT = SEGMENT_HEIGHT_BASE
 Minimum height of a bus. More...
 
static const int BUS_SPACE = 24
 Space between buses and bus chains. More...
 
static const int BRIDGE_WIDTH = BUS_MIN_WIDTH
 Width of a bridge. More...
 
static const int BRIDGE_HEIGHT = 24
 Height of a bridge. More...
 
static const int BRIDGE_SPACE = 12
 Space dividing buses and bridges. More...
 
static const int VIEW_MARGIN = 30
 Top margin for the whole processor view. More...
 
static const int VIEW_LEFT_MARGIN = 40
 Left margin. More...
 
static const int CONNECTIONS_SPACE = 80
 Space reserved for port-socket-connections. More...
 
static const int TRIANGLE_HEIGHT = 15
 Size of the sockets' direction triangle. More...
 

Detailed Description

Defines some layout constraints used in visualizing the machine.

Definition at line 40 of file MachineCanvasLayoutConstraints.hh.

Member Data Documentation

◆ BRIDGE_HEIGHT

const int MachineCanvasLayoutConstraints::BRIDGE_HEIGHT = 24
static

◆ BRIDGE_SPACE

const int MachineCanvasLayoutConstraints::BRIDGE_SPACE = 12
static

Space dividing buses and bridges.

Definition at line 81 of file MachineCanvasLayoutConstraints.hh.

Referenced by BusChainFigure::layoutChildren().

◆ BRIDGE_WIDTH

const int MachineCanvasLayoutConstraints::BRIDGE_WIDTH = BUS_MIN_WIDTH
static

Width of a bridge.

Definition at line 77 of file MachineCanvasLayoutConstraints.hh.

Referenced by BidirBridgeFigure::BidirBridgeFigure(), and BridgeFigure::BridgeFigure().

◆ BUS_MIN_HEIGHT

const int MachineCanvasLayoutConstraints::BUS_MIN_HEIGHT = SEGMENT_HEIGHT_BASE
static

Minimum height of a bus.

Definition at line 73 of file MachineCanvasLayoutConstraints.hh.

Referenced by BusChainFigure::BusChainFigure(), and BusFigure::BusFigure().

◆ BUS_MIN_WIDTH

const int MachineCanvasLayoutConstraints::BUS_MIN_WIDTH = 206
static

◆ BUS_SPACE

const int MachineCanvasLayoutConstraints::BUS_SPACE = 24
static

◆ CONNECTIONS_SPACE

const int MachineCanvasLayoutConstraints::CONNECTIONS_SPACE = 80
static

Space reserved for port-socket-connections.

Definition at line 87 of file MachineCanvasLayoutConstraints.hh.

Referenced by ContentsFigure::layoutChildren(), and ContentsFigure::layoutSelf().

◆ MAX_UNIT_NAME_WIDTH

const int MachineCanvasLayoutConstraints::MAX_UNIT_NAME_WIDTH = 250
static

Maximun unit name width in pixels.

Definition at line 49 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitFigure::layoutSelf().

◆ PORT_BASE_WIDTH

const int MachineCanvasLayoutConstraints::PORT_BASE_WIDTH = 5
static

Constant used for port width calculation.

Definition at line 55 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitPortFigure::UnitPortFigure().

◆ PORT_MIN_WIDTH

const int MachineCanvasLayoutConstraints::PORT_MIN_WIDTH = 9
static

Minimum Width of a port.

Definition at line 53 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitPortFigure::UnitPortFigure().

◆ PORT_SPACE

const int MachineCanvasLayoutConstraints::PORT_SPACE = 14
static

Space between ports.

Definition at line 57 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitFigure::layoutChildren(), and UnitFigure::layoutSelf().

◆ PORT_WIDTH

const int MachineCanvasLayoutConstraints::PORT_WIDTH = 16
static

◆ SEGMENT_HEIGHT_BASE

const int MachineCanvasLayoutConstraints::SEGMENT_HEIGHT_BASE = 3
static

Height of a segment.

Definition at line 69 of file MachineCanvasLayoutConstraints.hh.

Referenced by SegmentFigure::SegmentFigure().

◆ SEGMENT_SPACE

const int MachineCanvasLayoutConstraints::SEGMENT_SPACE = 16
static

Space dividing segments.

Definition at line 67 of file MachineCanvasLayoutConstraints.hh.

Referenced by BusFigure::layoutChildren(), and BusFigure::layoutSelf().

◆ SOCKET_HEIGHT

const int MachineCanvasLayoutConstraints::SOCKET_HEIGHT = 100
static

◆ SOCKET_MIN_SPACE

const int MachineCanvasLayoutConstraints::SOCKET_MIN_SPACE = 2
static

Space dividing connected sockets.

Definition at line 65 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitPortFigure::layoutChildren().

◆ SOCKET_SPACE

const int MachineCanvasLayoutConstraints::SOCKET_SPACE = SOCKET_WIDTH
static

Space dividing unconnected sockets.

Definition at line 63 of file MachineCanvasLayoutConstraints.hh.

Referenced by SocketContainerFigure::layoutChildren().

◆ SOCKET_WIDTH

const int MachineCanvasLayoutConstraints::SOCKET_WIDTH = 16
static

◆ TRIANGLE_HEIGHT

const int MachineCanvasLayoutConstraints::TRIANGLE_HEIGHT = 15
static

Size of the sockets' direction triangle.

Definition at line 89 of file MachineCanvasLayoutConstraints.hh.

Referenced by InputSocketFigure::drawSelf(), and OutputSocketFigure::drawSelf().

◆ UNIT_HEIGHT

const int MachineCanvasLayoutConstraints::UNIT_HEIGHT = 45
static

Minimum unit height.

Definition at line 45 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitFigure::UnitFigure().

◆ UNIT_SPACE

const int MachineCanvasLayoutConstraints::UNIT_SPACE = 24
static

Space between units.

Definition at line 47 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitContainerFigure::layoutChildren().

◆ UNIT_WIDTH

const int MachineCanvasLayoutConstraints::UNIT_WIDTH = 85
static

Minimum unit width.

Definition at line 43 of file MachineCanvasLayoutConstraints.hh.

Referenced by UnitFigure::UnitFigure().

◆ VIEW_LEFT_MARGIN

const int MachineCanvasLayoutConstraints::VIEW_LEFT_MARGIN = 40
static

Left margin.

Definition at line 85 of file MachineCanvasLayoutConstraints.hh.

Referenced by ContentsFigure::layoutChildren().

◆ VIEW_MARGIN

const int MachineCanvasLayoutConstraints::VIEW_MARGIN = 30
static

Top margin for the whole processor view.

Definition at line 83 of file MachineCanvasLayoutConstraints.hh.

Referenced by ContentsFigure::layoutChildren(), and ContentsFigure::layoutSelf().


The documentation for this class was generated from the following files: