DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
SchemaGraphicArrow.hpp
Go to the documentation of this file.
1
#ifndef SCHEMAGRAPHICARROW_H
2
#define SCHEMAGRAPHICARROW_H
3
5
#include <QGraphicsLineItem>
7
#include "
dbe/SchemaGraphicObject.hpp
"
8
#include "
dbe/SchemaGraphicsScene.hpp
"
9
10
namespace
dbse
11
{
12
13
class
SchemaGraphicArrow
:
public
QGraphicsLineItem
14
{
15
public
:
16
SchemaGraphicArrow
(
SchemaGraphicObject
* StartItem,
SchemaGraphicObject
* EndItem,
17
bool
IsInheritance,
bool
IsComposite, QString ArrowName,
18
QString ArrowCardinality, QGraphicsItem * parent =
nullptr
);
19
~SchemaGraphicArrow
();
20
QRectF
boundingRect
()
const
;
21
QPainterPath
shape
()
const
;
22
void
UpdatePosition
();
23
SchemaGraphicObject
*
GetStartItem
()
const
;
24
SchemaGraphicObject
*
GetEndItem
()
const
;
25
bool
GetInheritanceMode
();
26
void
RemoveArrow
();
27
void
SetLabelScene
(
SchemaGraphicsScene
* Scene );
28
protected
:
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 );
34
private
:
35
SchemaGraphicObject
*
Start
;
36
SchemaGraphicObject
*
End
;
37
QPolygonF
ArrowHead
;
38
bool
Inheritance
;
39
bool
Composite
;
40
QString
Name
;
41
QString
Cardinality
;
42
QGraphicsSimpleTextItem *
Label
;
43
double
LastDegree
;
44
double
LastRotation
;
45
//QString LabelString;
46
};
47
48
}
// namespace dbse
49
#endif
// SCHEMAGRAPHICARROW_H
SchemaGraphicObject.hpp
SchemaGraphicsScene.hpp
dbse::SchemaGraphicArrow
Definition
SchemaGraphicArrow.hpp:14
dbse::SchemaGraphicArrow::LastDegree
double LastDegree
Definition
SchemaGraphicArrow.hpp:43
dbse::SchemaGraphicArrow::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition
SchemaGraphicArrow.cpp:99
dbse::SchemaGraphicArrow::GetEndItem
SchemaGraphicObject * GetEndItem() const
Definition
SchemaGraphicArrow.cpp:72
dbse::SchemaGraphicArrow::SchemaGraphicArrow
SchemaGraphicArrow(SchemaGraphicObject *StartItem, SchemaGraphicObject *EndItem, bool IsInheritance, bool IsComposite, QString ArrowName, QString ArrowCardinality, QGraphicsItem *parent=nullptr)
Including QT Headers.
Definition
SchemaGraphicArrow.cpp:10
dbse::SchemaGraphicArrow::Composite
bool Composite
Definition
SchemaGraphicArrow.hpp:39
dbse::SchemaGraphicArrow::Start
SchemaGraphicObject * Start
Definition
SchemaGraphicArrow.hpp:35
dbse::SchemaGraphicArrow::Cardinality
QString Cardinality
Definition
SchemaGraphicArrow.hpp:41
dbse::SchemaGraphicArrow::ArrowHead
QPolygonF ArrowHead
Definition
SchemaGraphicArrow.hpp:37
dbse::SchemaGraphicArrow::SetLabelScene
void SetLabelScene(SchemaGraphicsScene *Scene)
Definition
SchemaGraphicArrow.cpp:94
dbse::SchemaGraphicArrow::LastRotation
double LastRotation
Definition
SchemaGraphicArrow.hpp:44
dbse::SchemaGraphicArrow::End
SchemaGraphicObject * End
Definition
SchemaGraphicArrow.hpp:36
dbse::SchemaGraphicArrow::UpdatePosition
void UpdatePosition()
Definition
SchemaGraphicArrow.cpp:61
dbse::SchemaGraphicArrow::Label
QGraphicsSimpleTextItem * Label
Definition
SchemaGraphicArrow.hpp:42
dbse::SchemaGraphicArrow::shape
QPainterPath shape() const
Definition
SchemaGraphicArrow.cpp:50
dbse::SchemaGraphicArrow::GetInheritanceMode
bool GetInheritanceMode()
Definition
SchemaGraphicArrow.cpp:77
dbse::SchemaGraphicArrow::boundingRect
QRectF boundingRect() const
Definition
SchemaGraphicArrow.cpp:41
dbse::SchemaGraphicArrow::Name
QString Name
Definition
SchemaGraphicArrow.hpp:40
dbse::SchemaGraphicArrow::Inheritance
bool Inheritance
Definition
SchemaGraphicArrow.hpp:38
dbse::SchemaGraphicArrow::GetStartItem
SchemaGraphicObject * GetStartItem() const
Definition
SchemaGraphicArrow.cpp:67
dbse::SchemaGraphicArrow::~SchemaGraphicArrow
~SchemaGraphicArrow()
Definition
SchemaGraphicArrow.cpp:37
dbse::SchemaGraphicArrow::RemoveArrow
void RemoveArrow()
Definition
SchemaGraphicArrow.cpp:82
dbse::SchemaGraphicObject
Definition
SchemaGraphicObject.hpp:20
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:16
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:9
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0