OpenASIP
2.0
|
#include <SocketPortConnToolFigure.hh>
Public Member Functions | |
SocketPortConnToolFigure (bool creating) | |
virtual | ~SocketPortConnToolFigure () |
Public Member Functions inherited from SocketPortConnFigure | |
SocketPortConnFigure () | |
virtual | ~SocketPortConnFigure () |
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) |
Protected Member Functions inherited from SocketPortConnFigure | |
virtual void | layoutSelf (wxDC *dc) |
virtual void | drawConnection (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 | |
SocketPortConnToolFigure & | operator= (SocketPortConnToolFigure &old) |
Assignment not allowed. More... | |
SocketPortConnToolFigure (SocketPortConnToolFigure &old) | |
Copying not allowed. More... | |
Private Attributes | |
wxColor | color_ |
Current color of the figure. More... | |
Static Private Attributes | |
static const wxColor | LINE_COLOR_GREEN = wxColor(0, 200, 0) |
Figure color for connections being created. More... | |
static const wxColor | LINE_COLOR_RED = wxColor(255, 0, 0) |
Figure color for connections being removed. More... | |
Additional Inherited Members | |
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 socket-to-port connection for the connection tool.
Definition at line 45 of file SocketPortConnToolFigure.hh.
SocketPortConnToolFigure::SocketPortConnToolFigure | ( | bool | creating | ) |
The Constructor.
creating | True, if the tool is creating a new connection. False, if an old connection is being removed. |
Definition at line 46 of file SocketPortConnToolFigure.cc.
References color_, LINE_COLOR_GREEN, and LINE_COLOR_RED.
|
virtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Draws the connection's Figure on the given device context.
dc | The device context. |
Reimplemented from SocketPortConnFigure.
Definition at line 69 of file SocketPortConnToolFigure.cc.
References assert, color_, SocketPortConnFigure::drawConnection(), ConnectionFigure::source_, and ConnectionFigure::target_.
|
private |
Assignment not allowed.
|
private |
Current color of the figure.
Definition at line 63 of file SocketPortConnToolFigure.hh.
Referenced by drawSelf(), and SocketPortConnToolFigure().
|
staticprivate |
Figure color for connections being created.
Definition at line 59 of file SocketPortConnToolFigure.hh.
Referenced by SocketPortConnToolFigure().
|
staticprivate |
Figure color for connections being removed.
Definition at line 61 of file SocketPortConnToolFigure.hh.
Referenced by SocketPortConnToolFigure().