OpenASIP
2.0
|
#include <ConnectionEditPart.hh>
Public Member Functions | |
ConnectionEditPart () | |
virtual | ~ConnectionEditPart () |
EditPart * | source () const |
EditPart * | target () const |
void | setSource (EditPart *source) |
void | setTarget (EditPart *target) |
Public Member Functions inherited from EditPart | |
EditPart () | |
virtual | ~EditPart () |
void | putGarbage (std::set< EditPart * > &trashbag) |
EditPart * | parent () const |
void | setParent (EditPart *parent) |
TTAMachine::MachinePart * | model () const |
void | setModel (TTAMachine::MachinePart *model) |
Figure * | figure () const |
void | setFigure (Figure *figure) |
EditPart * | find (wxPoint point) |
EditPart * | find (const TTAMachine::MachinePart *model) |
EditPart * | findNearest (wxPoint point, const EditPart *exclude=NULL) |
int | findInRange (wxPoint point, float radius, std::vector< EditPart * > &found) |
bool | hasEditPartRecursive (const EditPart *part) const |
bool | selectable () const |
bool | selected () const |
void | setSelectable (bool selectable) |
void | setSelected (bool select) |
void | installEditPolicy (EditPolicy *editpolicy) |
void | addChild (EditPart *child) |
int | childCount () const |
EditPart * | child (unsigned int index) const |
ComponentCommand * | performRequest (Request *request) const |
bool | canHandle (Request *request) const |
Private Member Functions | |
ConnectionEditPart & | operator= (ConnectionEditPart &old) |
Assignment not allowed. More... | |
ConnectionEditPart (ConnectionEditPart &old) | |
Copying not allowed. More... | |
Private Attributes | |
EditPart * | source_ |
Source of connection. More... | |
EditPart * | target_ |
Target of connection. More... | |
Additional Inherited Members | |
Protected Attributes inherited from EditPart | |
EditPart * | parent_ |
Parent of this EditPart. More... | |
Figure * | figure_ |
Figure of this EditPart. More... | |
TTAMachine::MachinePart * | model_ |
Machine component corresponding to this EditPart. More... | |
bool | selectable_ |
Tells whether the EditPart is selectable or not. More... | |
bool | selected_ |
Tells whether the EditPart is selected or not. More... | |
bool | garbageCollected_ |
Helper member to prevent improper deletion. More... | |
std::vector< EditPolicy * > | editPolicies_ |
List of supported EditPolicies. More... | |
std::vector< EditPart * > | children_ |
List of children EditParts. More... | |
A directed connection between two machine blocks on the canvas.
Definition at line 42 of file ConnectionEditPart.hh.
ConnectionEditPart::ConnectionEditPart | ( | ) |
The Constructor.
Definition at line 41 of file ConnectionEditPart.cc.
|
virtual |
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
void ConnectionEditPart::setSource | ( | EditPart * | source | ) |
Sets the source of this connection.
source | New source. |
Definition at line 56 of file ConnectionEditPart.cc.
References assert, EditPart::figure(), EditPart::figure_, ConnectionFigure::setSource(), source(), and source_.
Referenced by MachineEditPartFactory::createBiDirBridge(), SocketPortConnFactory::createConnection(), SocketBusConnFactory::createConnection(), ConnectionFactory::createConnection(), and BridgeFactory::createEditPart().
void ConnectionEditPart::setTarget | ( | EditPart * | target | ) |
Sets the target of this connection.
target | New target. |
Definition at line 71 of file ConnectionEditPart.cc.
References assert, EditPart::figure(), EditPart::figure_, ConnectionFigure::setTarget(), target(), and target_.
Referenced by MachineEditPartFactory::createBiDirBridge(), SocketPortConnFactory::createConnection(), SocketBusConnFactory::createConnection(), ConnectionFactory::createConnection(), and BridgeFactory::createEditPart().
EditPart* ConnectionEditPart::source | ( | ) | const |
Referenced by MachineEditPartFactory::createBiDirBridge(), BridgeFactory::createEditPart(), and setSource().
EditPart* ConnectionEditPart::target | ( | ) | const |
Referenced by MachineEditPartFactory::createBiDirBridge(), BridgeFactory::createEditPart(), and setTarget().
|
private |
Source of connection.
Definition at line 60 of file ConnectionEditPart.hh.
Referenced by setSource().
|
private |
Target of connection.
Definition at line 62 of file ConnectionEditPart.hh.
Referenced by setTarget().