|
OpenASIP 2.2
|
#include <SocketBusConnFigure.hh>


Public Member Functions | |
| SocketBusConnFigure () | |
| virtual | ~SocketBusConnFigure () |
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 | drawConnection (wxDC *dc) |
| virtual void | layoutSelf (wxDC *dc) |
Protected Member Functions inherited from ConnectionFigure | |
| ConnectionFigure () | |
Protected Member Functions inherited from Figure | |
| void | drawChildren (wxDC *dc) |
| virtual void | layoutChildren (wxDC *) |
Private Member Functions | |
| SocketBusConnFigure & | operator= (SocketBusConnFigure &old) |
| Assignment not allowed. | |
| SocketBusConnFigure (SocketBusConnFigure &old) | |
| Copying not allowed. | |
Static Private Attributes | |
| static const wxColour | DEFAULT_COLOUR = wxColour(0, 0, 0) |
| Default colour for the figure. | |
Additional Inherited Members | |
Protected Attributes inherited from ConnectionFigure | |
| Figure * | source_ |
| Source of connection. | |
| Figure * | target_ |
| Target of connection. | |
Protected Attributes inherited from Figure | |
| wxPoint | location_ |
| Top-left location of the Figure's bounding rectangle. | |
| wxSize | size_ |
| wxSize of the Figure's bounding rectangle. | |
| wxSize | minSize_ |
| Figure's minimum size. | |
| std::vector< Figure * > | children_ |
| Figure's children. | |
| bool | xSet_ |
| Tells if x-coordinate has been fixed. | |
| bool | laidOut_ |
| Tells whether the Figure and its children have been laid out or not. | |
| bool | drawn_ |
| Tells whether the Figure and its children have been drawn or not. | |
| wxColour | highlight_ |
| Highlight colour. | |
| bool | highlighted_ |
| Tells if the figure is highlighted. | |
| MachineCanvasOptions * | options_ |
| Options which are used for customizing figures. | |
Figure of a socket-to-bus connection.
Definition at line 46 of file SocketBusConnFigure.hh.
| SocketBusConnFigure::SocketBusConnFigure | ( | ) |
The Constructor.
Definition at line 45 of file SocketBusConnFigure.cc.
|
virtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Draws the connection's Figure on the give device context.
Definition at line 74 of file SocketBusConnFigure.cc.
References Figure::bounds(), Figure::location(), Figure::size_, ConnectionFigure::source_, and ConnectionFigure::target_.
Referenced by drawSelf(), and SocketBusConnToolFigure::drawSelf().

|
protectedvirtual |
Draws the connection's Figure on the given device context.
| dc | The device context. |
Reimplemented from Figure.
Reimplemented in SocketBusConnToolFigure.
Definition at line 60 of file SocketBusConnFigure.cc.
References assert, DEFAULT_COLOUR, drawConnection(), ConnectionFigure::source_, and ConnectionFigure::target_.

|
protectedvirtual |
Sets the figure's bounds.
Reimplemented from Figure.
Definition at line 90 of file SocketBusConnFigure.cc.
References Figure::bounds(), MachineCanvasLayoutConstraints::BUS_SPACE, Figure::location(), Figure::setHeight(), Figure::setLocation(), Figure::setWidth(), MachineCanvasLayoutConstraints::SOCKET_WIDTH, ConnectionFigure::source_, and ConnectionFigure::target_.

|
private |
Assignment not allowed.
|
staticprivate |
Default colour for the figure.
Definition at line 63 of file SocketBusConnFigure.hh.
Referenced by drawSelf().