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{
17
18class SchemaGraphicArrow: public QGraphicsLineItem
19{
20public:
22 bool IsInheritance, bool IsComposite, QString ArrowName,
23 QString ArrowCardinality, QGraphicsItem * parent = nullptr );
25 QRectF boundingRect() const;
26 QPainterPath shape() const;
27 void UpdatePosition();
30 bool GetInheritanceMode();
31 void RemoveArrow();
32 void SetLabelScene ( SchemaGraphicsScene * Scene );
33protected:
34 //void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
35 //void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
36 //void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
37 void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option,
38 QWidget * widget = 0 );
39private:
42 QPolygonF ArrowHead;
45 QString Name;
46 QString Cardinality;
47 QGraphicsSimpleTextItem * Label;
48 double LastDegree;
50 //QString LabelString;
51};
52
53} // namespace dbse
54#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.