graph_analysis
Public Member Functions | Protected Member Functions | List of all members
graph_analysis::gui::items::Feature Class Reference

A feature directly maps to a vertex in a graph. More...

#include <Feature.hpp>

Inheritance diagram for graph_analysis::gui::items::Feature:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::gui::items::Feature:
Collaboration graph
[legend]

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)
 

Detailed Description

A feature directly maps to a vertex in a graph.

specific to the diagram editor widget: editable text representation

Constructor & Destructor Documentation

◆ Feature()

graph_analysis::gui::items::Feature::Feature ( GraphElement::Ptr  element,
GraphWidget *  graphWidget,
QGraphicsItem *  parent 
)

constructor

Parameters
elementGraphElement that a feature should be attributed to
graphWidgetThe graph widget
parentThe parent of this item

Member Function Documentation

◆ getEdge()

Edge::Ptr graph_analysis::gui::items::Feature::getEdge ( ) const

◆ getGraphElement()

GraphElement::Ptr graph_analysis::gui::items::Feature::getGraphElement ( ) const
inline

getter method: retrieves the assigned ID

◆ getVertex()

Vertex::Ptr graph_analysis::gui::items::Feature::getVertex ( ) const

◆ mousePressEvent()

void graph_analysis::gui::items::Feature::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected

◆ paint()

void graph_analysis::gui::items::Feature::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

◆ type()

int graph_analysis::gui::items::Feature::type ( ) const
inline

The documentation for this class was generated from the following files: