OpenASIP
2.0
|
#include <BidirBridgeFigure.hh>
Public Member Functions | |
BidirBridgeFigure () | |
virtual | ~BidirBridgeFigure () |
Public Member Functions inherited from BridgeFigure | |
BridgeFigure () | |
virtual | ~BridgeFigure () |
void | setDirection (BridgeFigure::Direction direction) |
Direction | direction () const |
Public Member Functions inherited from ConnectionFigure | |
virtual | ~ConnectionFigure () |
void | setSource (Figure *figure) |
void | setTarget (Figure *figure) |
Figure * | source () const |
Figure * | target () const |
Public Member Functions inherited from Figure | |
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) |
virtual void | layoutChildren (wxDC *) |
Protected Member Functions inherited from ConnectionFigure | |
ConnectionFigure () | |
Protected Member Functions inherited from Figure | |
void | drawChildren (wxDC *dc) |
virtual void | layoutSelf (wxDC *) |
Private Member Functions | |
BidirBridgeFigure & | operator= (BidirBridgeFigure &old) |
Assignment not allowed. More... | |
BidirBridgeFigure (BidirBridgeFigure &old) | |
Copying not allowed. More... | |
Additional Inherited Members | |
Public Types inherited from BridgeFigure | |
enum | Direction { DIR_RIGHT, DIR_LEFT, DIR_BIDIR } |
Direction of the bridge. More... | |
Protected Attributes inherited from ConnectionFigure | |
Figure * | source_ |
Source of connection. More... | |
Figure * | target_ |
Target of connection. More... | |
Protected Attributes inherited from Figure | |
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 bidirectional bridge.
Definition at line 46 of file BidirBridgeFigure.hh.
BidirBridgeFigure::BidirBridgeFigure | ( | ) |
The Constructor.
Definition at line 46 of file BidirBridgeFigure.cc.
References MachineCanvasLayoutConstraints::BRIDGE_HEIGHT, MachineCanvasLayoutConstraints::BRIDGE_WIDTH, Figure::minSize_, and Figure::size_.
|
virtual |
|
private |
Copying not allowed.
|
protectedvirtual |
This figure is not visible on the canvas.
Empty implementation is defined to override BridgeFigure.
Reimplemented from BridgeFigure.
Definition at line 94 of file BidirBridgeFigure.cc.
|
protectedvirtual |
Lays out the two child bridges.
dc | Device context. |
Reimplemented from Figure.
Definition at line 65 of file BidirBridgeFigure.cc.
References assert, MachineCanvasLayoutConstraints::BRIDGE_HEIGHT, Figure::children_, BridgeFigure::DIR_LEFT, BridgeFigure::DIR_RIGHT, Figure::location_, BridgeFigure::setDirection(), and Figure::size_.
|
private |
Assignment not allowed.