DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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>
12
#include "
dbe/SchemaGraphicObject.hpp
"
13
#include "
dbe/SchemaGraphicsScene.hpp
"
14
15
namespace
dbse
{
16
17
class
SchemaGraphicArrow
:
public
QGraphicsLineItem
18
{
19
public
:
20
SchemaGraphicArrow
(
SchemaGraphicObject
* StartItem,
21
SchemaGraphicObject
* EndItem,
22
bool
IsInheritance,
23
bool
IsComposite,
24
QString ArrowName,
25
QString ArrowCardinality,
26
QGraphicsItem* parent =
nullptr
);
27
~SchemaGraphicArrow
();
28
QRectF
boundingRect
()
const
;
29
QPainterPath
shape
()
const
;
30
void
UpdatePosition
();
31
SchemaGraphicObject
*
GetStartItem
()
const
;
32
SchemaGraphicObject
*
GetEndItem
()
const
;
33
bool
GetInheritanceMode
();
34
void
RemoveArrow
();
35
void
SetLabelScene
(
SchemaGraphicsScene
* Scene);
36
37
protected
:
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
43
private
:
44
SchemaGraphicObject
*
Start
;
45
SchemaGraphicObject
*
End
;
46
QPolygonF
ArrowHead
;
47
bool
Inheritance
;
48
bool
Composite
;
49
QString
Name
;
50
QString
Cardinality
;
51
QGraphicsSimpleTextItem*
Label
;
52
double
LastDegree
;
53
double
LastRotation
;
54
// QString LabelString;
55
};
56
57
}
// namespace dbse
58
#endif
// SCHEMAGRAPHICARROW_H
SchemaGraphicObject.hpp
SchemaGraphicsScene.hpp
dbse::SchemaGraphicArrow::LastDegree
double LastDegree
Definition
SchemaGraphicArrow.hpp:52
dbse::SchemaGraphicArrow::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition
SchemaGraphicArrow.cpp:106
dbse::SchemaGraphicArrow::GetEndItem
SchemaGraphicObject * GetEndItem() const
Definition
SchemaGraphicArrow.cpp:78
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:15
dbse::SchemaGraphicArrow::Composite
bool Composite
Definition
SchemaGraphicArrow.hpp:48
dbse::SchemaGraphicArrow::Start
SchemaGraphicObject * Start
Definition
SchemaGraphicArrow.hpp:44
dbse::SchemaGraphicArrow::Cardinality
QString Cardinality
Definition
SchemaGraphicArrow.hpp:50
dbse::SchemaGraphicArrow::ArrowHead
QPolygonF ArrowHead
Definition
SchemaGraphicArrow.hpp:46
dbse::SchemaGraphicArrow::SetLabelScene
void SetLabelScene(SchemaGraphicsScene *Scene)
Definition
SchemaGraphicArrow.cpp:100
dbse::SchemaGraphicArrow::LastRotation
double LastRotation
Definition
SchemaGraphicArrow.hpp:53
dbse::SchemaGraphicArrow::End
SchemaGraphicObject * End
Definition
SchemaGraphicArrow.hpp:45
dbse::SchemaGraphicArrow::UpdatePosition
void UpdatePosition()
Definition
SchemaGraphicArrow.cpp:65
dbse::SchemaGraphicArrow::Label
QGraphicsSimpleTextItem * Label
Definition
SchemaGraphicArrow.hpp:51
dbse::SchemaGraphicArrow::shape
QPainterPath shape() const
Definition
SchemaGraphicArrow.cpp:55
dbse::SchemaGraphicArrow::GetInheritanceMode
bool GetInheritanceMode()
Definition
SchemaGraphicArrow.cpp:84
dbse::SchemaGraphicArrow::boundingRect
QRectF boundingRect() const
Definition
SchemaGraphicArrow.cpp:46
dbse::SchemaGraphicArrow::Name
QString Name
Definition
SchemaGraphicArrow.hpp:49
dbse::SchemaGraphicArrow::Inheritance
bool Inheritance
Definition
SchemaGraphicArrow.hpp:47
dbse::SchemaGraphicArrow::GetStartItem
SchemaGraphicObject * GetStartItem() const
Definition
SchemaGraphicArrow.cpp:72
dbse::SchemaGraphicArrow::RemoveArrow
void RemoveArrow()
Definition
SchemaGraphicArrow.cpp:90
dbse::SchemaGraphicObject
Definition
SchemaGraphicObject.hpp:20
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:15
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:13
Generated on
for DUNE-DAQ by
1.18.0