|
graph_analysis
|
#include <VertexItemSimple.hpp>


Public Member Functions | |
| VertexItemSimple (GraphWidget *graphWidget, const graph_analysis::Vertex::Ptr &vertex, QGraphicsItem *parent) | |
| virtual | ~VertexItemSimple () |
| virtual int | type () const |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Public Member Functions inherited from graph_analysis::gui::VertexItemBase | |
| VertexItemBase (GraphWidget *graphWidget, graph_analysis::Vertex::Ptr vertex, QGraphicsItem *parent) | |
| constructor More... | |
| virtual | ~VertexItemBase () |
| 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... | |
| 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 | |
| VertexItemSimple () | |
| void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
| void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
| void | dropEvent (QGraphicsSceneDragDropEvent *event) |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
| VertexItemBase * | createNewItem (GraphWidget *graphWidget, const graph_analysis::Vertex::Ptr &vertex, QGraphicsItem *parent) const |
Protected Member Functions inherited from graph_analysis::gui::VertexItemBase | |
| VertexItemBase () | |
| shared_ptr< BaseGraph > | getGraph () const |
Friends | |
| class | VertexItemTypeManager |
Additional Inherited Members | |
Protected Attributes inherited from graph_analysis::gui::VertexItemBase | |
| graph_analysis::Vertex::Ptr | mpVertex |
| GraphWidget * | mpGraphWidget |
Simplest possible implementation of a VertexItemBase just a box with two strings – type and label
|
protected |
| graph_analysis::gui::VertexItemSimple::VertexItemSimple | ( | GraphWidget * | graphWidget, |
| const graph_analysis::Vertex::Ptr & | vertex, | ||
| QGraphicsItem * | parent | ||
| ) |
kiss: very simple base implementation of a rectangle
|
virtual |
|
protectedvirtual |
Implements graph_analysis::gui::VertexItemBase.
|
protected |
all items by default accept drag-n-drop events. override this function in later classes to prevent certain drops?
|
protected |
|
protected |
|
protectedvirtual |
this is used to update the statusbar of the current active widget with information about the currently hovered (or not hovered) vertex
Reimplemented from graph_analysis::gui::VertexItemBase.
|
protectedvirtual |
Reimplemented from graph_analysis::gui::VertexItemBase.
|
virtual |
uses this (read only) notification to update the label showing current canvas coordinate of the whole item. nice for debugging.
Reimplemented from graph_analysis::gui::VertexItemBase.
|
protected |
|
inlinevirtual |
Reimplemented from graph_analysis::gui::VertexItemBase.
|
friend |
1.8.13