OpenASIP
2.0
|
#include <BridgeFigure.hh>
Public Types | |
enum | Direction { DIR_RIGHT, DIR_LEFT, DIR_BIDIR } |
Direction of the bridge. More... | |
Public Member Functions | |
BridgeFigure () | |
virtual | ~BridgeFigure () |
void | setDirection (BridgeFigure::Direction direction) |
Direction | direction () const |
![]() | |
virtual | ~ConnectionFigure () |
void | setSource (Figure *figure) |
void | setTarget (Figure *figure) |
Figure * | source () const |
Figure * | target () const |
![]() | |
Figure () | |
virtual | ~Figure () |
wxPoint | location () const |
void | setLocation (wxPoint point) |
void | setX (int x) |
void | setY (int y) |
void | setPreferredX (int x) |
bool | xSet () const |
void | clearXSetFlag () |
virtual wxRect | bounds () const |
virtual wxRect | virtualBounds () const |
void | setBounds (wxSize bounds) |
void | setWidth (int width) |
void | setHeight (int height) |
virtual void | addChild (Figure *child) |
int | childCount () const |
Figure * | child (int index) const |
virtual void | layout (wxDC *dc) |
virtual void | draw (wxDC *dc) |
void | highlight (const wxColour &colour) |
void | clearHighlight () |
void | setOptions (MachineCanvasOptions *options) |
MachineCanvasOptions * | options () |
Protected Member Functions | |
virtual void | drawSelf (wxDC *dc) |
![]() | |
ConnectionFigure () | |
![]() | |
void | drawChildren (wxDC *dc) |
virtual void | layoutSelf (wxDC *) |
virtual void | layoutChildren (wxDC *) |
Private Member Functions | |
BridgeFigure & | operator= (BridgeFigure &old) |
Assignment not allowed. More... | |
BridgeFigure (BridgeFigure &old) | |
Copying not allowed. More... | |
Private Attributes | |
Direction | direction_ |
Direction of the bridge. More... | |
Static Private Attributes | |
static const wxColour | DEFAULT_COLOUR = wxColour(0, 0, 0) |
Default colour for figure lines. More... | |
static const wxColour | DEFAULT_BG_COLOUR = wxColour(150, 200, 255) |
Default colour for figure background. More... | |
Additional Inherited Members | |
![]() | |
Figure * | source_ |
Source of connection. More... | |
Figure * | target_ |
Target of connection. More... | |
![]() | |
wxPoint | location_ |
Top-left location of the Figure's bounding rectangle. More... | |
wxSize | size_ |
wxSize of the Figure's bounding rectangle. More... | |
wxSize | minSize_ |
Figure's minimum size. More... | |
std::vector< Figure * > | children_ |
Figure's children. More... | |
bool | xSet_ |
Tells if x-coordinate has been fixed. More... | |
bool | laidOut_ |
Tells whether the Figure and its children have been laid out or not. More... | |
bool | drawn_ |
Tells whether the Figure and its children have been drawn or not. More... | |
wxColour | highlight_ |
Highlight colour. More... | |
bool | highlighted_ |
Tells if the figure is highlighted. More... | |
MachineCanvasOptions * | options_ |
Options which are used for customizing figures. More... | |
Figure of a bridge.
Definition at line 46 of file BridgeFigure.hh.
Direction of the bridge.
Enumerator | |
---|---|
DIR_RIGHT | |
DIR_LEFT | |
DIR_BIDIR |
Definition at line 49 of file BridgeFigure.hh.
BridgeFigure::BridgeFigure | ( | ) |
The Constructor.
Definition at line 43 of file BridgeFigure.cc.
References MachineCanvasLayoutConstraints::BRIDGE_HEIGHT, MachineCanvasLayoutConstraints::BRIDGE_WIDTH, and Figure::size_.
|
virtual |
|
private |
Copying not allowed.
Direction BridgeFigure::direction | ( | ) | const |
Referenced by BusChainFigure::layoutChildren().
|
protectedvirtual |
Draws the bridge's Figure on the given device context.
dc | The device context. |
Reimplemented from Figure.
Reimplemented in BidirBridgeFigure.
Definition at line 62 of file BridgeFigure.cc.
References DEFAULT_BG_COLOUR, DEFAULT_COLOUR, DIR_RIGHT, direction_, Figure::location_, and Figure::size_.
|
private |
Assignment not allowed.
void BridgeFigure::setDirection | ( | BridgeFigure::Direction | direction | ) |
|
staticprivate |
Default colour for figure background.
Definition at line 72 of file BridgeFigure.hh.
Referenced by drawSelf().
|
staticprivate |
Default colour for figure lines.
Definition at line 70 of file BridgeFigure.hh.
Referenced by drawSelf().
|
private |