Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_GUI_ITEMS_FEATURE_HPP
2 #define GRAPH_ANALYSIS_GUI_ITEMS_FEATURE_HPP
5 #include <QGraphicsSceneDragDropEvent>
6 #include <QGraphicsTextItem>
12 #include "../../Vertex.hpp"
13 #include "../../Edge.hpp"
15 #include "../GraphicsItemTypes.hpp"
55 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
66 #endif // GRAPH_ANALYSIS_GUI_ITEMS_LABEL_HPP
A feature directly maps to a vertex in a graph.
Definition: Feature.hpp:30
GraphElement::Ptr getGraphElement() const
getter method: retrieves the assigned ID
Definition: Feature.hpp:48
Feature(GraphElement::Ptr element, GraphWidget *graphWidget, QGraphicsItem *parent)
constructor
Definition: Feature.cpp:14
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
@ FeatureItemType
Definition: GraphicsItemTypes.hpp:12
shared_ptr< GraphElement > Ptr
Definition: GraphElement.hpp:46
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
Vertex::Ptr getVertex() const
Definition: Feature.cpp:34
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: Feature.cpp:49
int type() const
Definition: Feature.hpp:53
Edge::Ptr getEdge() const
Definition: Feature.cpp:24
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: Feature.cpp:44