Wire connection between symbols.
More...
#include <wire.h>
|
| enum | { Type = UserType + 2
} |
| |
|
| QRectF | boundingRect () const |
| | Get wire bounding rectangle.
|
| |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| | Paint wire.
|
| |
Wire connection between symbols.
◆ Wire()
| Wire::Wire |
( |
Symbol * |
sourceNode, |
|
|
int |
port_num_source, |
|
|
Symbol * |
destNode, |
|
|
int |
port_num_dest |
|
) |
| |
Construct wire with source and destination.
- Parameters
-
| sourceNode | Source symbol |
| port_num_source | Source port number |
| destNode | Destination symbol |
| port_num_dest | Destination port number |
◆ boundingRect()
| QRectF Wire::boundingRect |
( |
| ) |
const |
|
protected |
Get wire bounding rectangle.
- Returns
- Bounding rectangle
◆ destNode()
| Symbol * Wire::destNode |
( |
| ) |
const |
|
inline |
Get destination symbol.
- Returns
- Destination symbol pointer
◆ paint()
| void Wire::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
| |
|
protected |
Paint wire.
- Parameters
-
| painter | QPainter instance |
| option | Style options |
| widget | Target widget |
◆ setColor()
| void Wire::setColor |
( |
QColor |
Color | ) |
|
|
inline |
Set wire color.
- Parameters
-
◆ setDestination()
| void Wire::setDestination |
( |
Symbol * |
destNode, |
|
|
int |
port |
|
) |
| |
|
inline |
Set wire destination.
- Parameters
-
| destNode | Destination symbol |
| port | Destination port number |
◆ setSource()
| void Wire::setSource |
( |
Symbol * |
destNode, |
|
|
int |
port |
|
) |
| |
|
inline |
Set wire source.
- Parameters
-
| sourceNode | Source symbol |
| port | Source port number |
◆ sourceNode()
| Symbol * Wire::sourceNode |
( |
| ) |
const |
|
inline |
Get source symbol.
- Returns
- Source symbol pointer
The documentation for this class was generated from the following files: