SemanticGraphVertexItem.h
Go to the documentation of this file.
1#pragma once
2
3#include <QGraphicsItem>
4#include <QObject>
5
6namespace armarx
7{
8
9 class SemanticGraphVertexItem : public QObject, public QGraphicsEllipseItem
10 {
11 Q_OBJECT
12 public:
13 // QGraphicsItem interface
14 void
15 paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
16
17 void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
18
19 QString text;
20 bool selected = false;
21
22 // The descriptor references the vertex in the original graph
23 int descriptor = 0;
24
25 QColor fillColor = Qt::GlobalColor::white;
26 QColor borderColor = Qt::GlobalColor::black;
27 QColor fontColor = Qt::GlobalColor::black;
28
29
30 signals:
32 };
33
34} // namespace armarx
#define option(type, fn)
void onLeftClick(SemanticGraphVertexItem *)
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
This file offers overloads of toIce() and fromIce() functions for STL container types.