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