|
graph_analysis
|
#include <EdgeItemSimple.hpp>


Public Member Functions | |
| EdgeItemSimple (GraphWidget *graphWidget, const graph_analysis::Edge::Ptr &edge, QGraphicsItem *parent) | |
| virtual | ~EdgeItemSimple () |
| virtual int | type () const |
| void | adjustEdgePositioning () |
Public Member Functions inherited from graph_analysis::gui::EdgeItemBase | |
| EdgeItemBase (GraphWidget *graphWidget, const graph_analysis::Edge::Ptr &edge, QGraphicsItem *parent) | |
| constructor More... | |
| virtual | ~EdgeItemBase () |
| virtual void | adjustEdgePoints (QVector< QPointF > points) |
| void | drawStraightEdge () |
| void | drawBezierEdge () |
| void | drawArrowHead (size_t arrowSize, QBrush brush=QBrush(Qt::black), QPen pen=QPen(Qt::black)) |
| graph_analysis::Edge::Ptr | getEdge () const |
| void | setEdge (graph_analysis::Edge::Ptr edge) |
| GraphWidget * | getGraphWidget () const |
| QGraphicsPathItem * | getEdgePath () const |
| QGraphicsPolygonItem * | getArrowHead () const |
Protected Member Functions | |
| EdgeItemSimple () | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| QRectF | boundingRect () const |
| QPainterPath | shape () const |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
| EdgeItemBase * | createNewItem (GraphWidget *graphWidget, const graph_analysis::Edge::Ptr &edge, QGraphicsItem *parent) const |
Protected Member Functions inherited from graph_analysis::gui::EdgeItemBase | |
| EdgeItemBase () | |
Protected Attributes | |
| QGraphicsTextItem * | mpLabel |
| QGraphicsTextItem * | mpClassName |
| int | mArrowSize |
Protected Attributes inherited from graph_analysis::gui::EdgeItemBase | |
| graph_analysis::Edge::Ptr | mpEdge |
| underlying graph edge pointer More... | |
| GraphWidget * | mpGraphWidget |
| parent managing graph widget More... | |
| QGraphicsPathItem * | mpEdgePath |
| QGraphicsPolygonItem * | mpArrowHead |
| render an arrow head More... | |
Friends | |
| class | EdgeItemTypeManager |
Additional Inherited Members | |
Public Attributes inherited from graph_analysis::gui::EdgeItemBase | |
| QVector< QPointF > | mPoints |
simplest possible implementation of EdgeItemBase: just a line from source to target
|
protected |
| graph_analysis::gui::EdgeItemSimple::EdgeItemSimple | ( | GraphWidget * | graphWidget, |
| const graph_analysis::Edge::Ptr & | edge, | ||
| QGraphicsItem * | parent | ||
| ) |
|
virtual |
|
virtual |
Reimplemented from graph_analysis::gui::EdgeItemBase.
|
protected |
|
protectedvirtual |
Implements graph_analysis::gui::EdgeItemBase.
|
protectedvirtual |
provide mouse-over status updates of the currently selected Edge
Reimplemented from graph_analysis::gui::EdgeItemBase.
|
protectedvirtual |
Reimplemented from graph_analysis::gui::EdgeItemBase.
|
protected |
|
protectedvirtual |
Compute the shape of the edge (based on the edge path and the arrowhead)
Reimplemented from graph_analysis::gui::EdgeItemBase.
|
virtual |
Reimplemented from graph_analysis::gui::EdgeItemBase.
|
friend |
|
protected |
|
protected |
|
protected |
1.8.17