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