DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaGraphicArrow.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/SchemaGraphicArrow.h to include/dbe/SchemaGraphicArrow.hpp).
5
6#ifndef SCHEMAGRAPHICARROW_H
7#define SCHEMAGRAPHICARROW_H
8
10#include <QGraphicsLineItem>
14
15namespace dbse {
16
17class SchemaGraphicArrow : public QGraphicsLineItem
18{
19public:
21 SchemaGraphicObject* EndItem,
22 bool IsInheritance,
23 bool IsComposite,
24 QString ArrowName,
25 QString ArrowCardinality,
26 QGraphicsItem* parent = nullptr);
28 QRectF boundingRect() const;
29 QPainterPath shape() const;
30 void UpdatePosition();
33 bool GetInheritanceMode();
34 void RemoveArrow();
36
37protected:
38 // void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
39 // void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
40 // void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
41 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
42
43private:
46 QPolygonF ArrowHead;
49 QString Name;
50 QString Cardinality;
51 QGraphicsSimpleTextItem* Label;
52 double LastDegree;
54 // QString LabelString;
55};
56
57} // namespace dbse
58#endif // SCHEMAGRAPHICARROW_H
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
SchemaGraphicObject * GetEndItem() const
SchemaGraphicArrow(SchemaGraphicObject *StartItem, SchemaGraphicObject *EndItem, bool IsInheritance, bool IsComposite, QString ArrowName, QString ArrowCardinality, QGraphicsItem *parent=nullptr)
Including QT Headers.
SchemaGraphicObject * Start
void SetLabelScene(SchemaGraphicsScene *Scene)
SchemaGraphicObject * End
QGraphicsSimpleTextItem * Label
SchemaGraphicObject * GetStartItem() const
Including QT Headers.