![]() |
Reference documentation
|
The Thistle::Edge class represents an edge between two Thistle::Node objects in a Thistle::GraphView. More...
Public Types | |
| enum | Type |
| Defines the type of connection between two Thistle::Node objects. | |
Public Member Functions | |
| Edge (QModelIndex idx1, QModelIndex idx2, Edge::Type type=NoArrow) | |
Constructs a Edge between idx1 and idx2 with the given type. | |
| void | paintArrow (QPainter &painter, const QLineF &line) const |
If the Thistle::Type is different to Thistle::Type::NoArrow, paints the arrows of the Edge. | |
| void | paintEdge (QPainter &painter, QRectF r1, QRectF r2) const |
| Paints the connections between its two Thistle::Node objects. More... | |
The Thistle::Edge class represents an edge between two Thistle::Node objects in a Thistle::GraphView.
The Edge class stores the two connected Thistle::Node objects and its thistle::Type. It will be in charge to paint the connections on the Thistle::GraphView.
| void paintEdge | ( | QPainter & | painter, |
| QRectF | r1, | ||
| QRectF | r2 | ||
| ) | const |
Paints the connections between its two Thistle::Node objects.
r1 and r2 defines the bounding rect of leftIndex and rightIndex.
1.8.6