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