DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaGraphicArrow.hpp
Go to the documentation of this file.
1#ifndef SCHEMAGRAPHICARROW_H
2#define SCHEMAGRAPHICARROW_H
3
5#include <QGraphicsLineItem>
9
10namespace dbse
11{
12
13class SchemaGraphicArrow: public QGraphicsLineItem
14{
15public:
17 bool IsInheritance, bool IsComposite, QString ArrowName,
18 QString ArrowCardinality, QGraphicsItem * parent = nullptr );
20 QRectF boundingRect() const;
21 QPainterPath shape() const;
22 void UpdatePosition();
25 bool GetInheritanceMode();
26 void RemoveArrow();
27 void SetLabelScene ( SchemaGraphicsScene * Scene );
28protected:
29 //void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
30 //void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
31 //void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
32 void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option,
33 QWidget * widget = 0 );
34private:
37 QPolygonF ArrowHead;
40 QString Name;
41 QString Cardinality;
42 QGraphicsSimpleTextItem * Label;
43 double LastDegree;
45 //QString LabelString;
46};
47
48} // namespace dbse
49#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.