|
graph_analysis
|
A feature directly maps to a vertex in a graph. More...
#include <Feature.hpp>


Public Member Functions | |
| Feature (GraphElement::Ptr element, GraphWidget *graphWidget, QGraphicsItem *parent) | |
| constructor More... | |
| GraphElement::Ptr | getGraphElement () const |
| getter method: retrieves the assigned ID More... | |
| Edge::Ptr | getEdge () const |
| Vertex::Ptr | getVertex () const |
| int | type () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Protected Member Functions | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
A feature directly maps to a vertex in a graph.
specific to the diagram editor widget: editable text representation
| graph_analysis::gui::items::Feature::Feature | ( | GraphElement::Ptr | element, |
| GraphWidget * | graphWidget, | ||
| QGraphicsItem * | parent | ||
| ) |
constructor
| element | GraphElement that a feature should be attributed to |
| graphWidget | The graph widget |
| parent | The parent of this item |
| Edge::Ptr graph_analysis::gui::items::Feature::getEdge | ( | ) | const |
|
inline |
getter method: retrieves the assigned ID
| Vertex::Ptr graph_analysis::gui::items::Feature::getVertex | ( | ) | const |
|
protected |
| void graph_analysis::gui::items::Feature::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget | ||
| ) |
|
inline |
1.8.13