|
graph_analysis
|
graphical node representation interface More...
#include <VertexItemBase.hpp>


Public Member Functions | |
| VertexItemBase (GraphWidget *graphWidget, graph_analysis::Vertex::Ptr vertex, QGraphicsItem *parent) | |
| constructor More... | |
| virtual | ~VertexItemBase () |
| virtual int | type () const |
| virtual QPointF | getConnector () const |
| graph_analysis::Vertex::Ptr | getVertex () const |
| getter method for retrieving the underlying conceptual graph vertex More... | |
| void | setVertex (graph_analysis::Vertex::Ptr vertex) |
| setter method for updating the underlying conceptual graph vertex More... | |
| GraphWidget * | getGraphWidget () const |
| getter method for retrieving the parent managing graph widget More... | |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
| QPointF | getIntersectionPoint (VertexItemBase *otherItem) const |
| virtual void | setGeometry (const QRectF &geometry) |
| virtual QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| virtual QRectF | boundingRect () const |
Protected Member Functions | |
| VertexItemBase () | |
| shared_ptr< BaseGraph > | getGraph () const |
| virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
| virtual VertexItemBase * | createNewItem (GraphWidget *graphWidget, const graph_analysis::Vertex::Ptr &vertex, QGraphicsItem *parent) const =0 |
Protected Attributes | |
| graph_analysis::Vertex::Ptr | mpVertex |
| GraphWidget * | mpGraphWidget |
Friends | |
| class | VertexItemTypeManager |
graphical node representation interface
used as polymorphic base for several graphical node implementations
|
protected |
| graph_analysis::gui::VertexItemBase::VertexItemBase | ( | GraphWidget * | graphWidget, |
| graph_analysis::Vertex::Ptr | vertex, | ||
| QGraphicsItem * | parent | ||
| ) |
constructor
| graphWidget | the parent and managing graph widget |
| vertex | the internal conceptual vertex |
| parent | the parent |
|
virtual |
|
virtual |
|
protectedpure virtual |
Implemented in graph_analysis::gui::VertexItemSimple.
|
inlinevirtual |
return a point where an edge should point to when it connects to this vertex
|
protected |
extracting the BaseGraph from the GraphWidget
|
inline |
getter method for retrieving the parent managing graph widget
| QPointF graph_analysis::gui::VertexItemBase::getIntersectionPoint | ( | VertexItemBase * | otherItem | ) | const |
calculates the two intersection points between the connector of this item and the connector of the otherItem with the bounding-box of the two respective items.
|
inline |
getter method for retrieving the underlying conceptual graph vertex
|
protectedvirtual |
this is used to update the statusbar of the current active widget with information about the currently hovered (or not hovered) vertex
Reimplemented in graph_analysis::gui::VertexItemSimple.
|
protectedvirtual |
Reimplemented in graph_analysis::gui::VertexItemSimple.
|
virtual |
callback to trigger the base-graph to adjust all edges of this vertex after its position has changed in the scene.
Reimplemented in graph_analysis::gui::VertexItemSimple.
|
virtual |
|
virtual |
|
inline |
setter method for updating the underlying conceptual graph vertex
|
virtual |
|
inlinevirtual |
Reimplemented in graph_analysis::gui::VertexItemSimple.
|
friend |
|
protected |
|
protected |
1.8.17