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
18
class
SchemaGraphicArrow
:
public
QGraphicsLineItem
19
{
20
public
:
21
SchemaGraphicArrow
(
SchemaGraphicObject
* StartItem,
SchemaGraphicObject
* EndItem,
22
bool
IsInheritance,
bool
IsComposite, QString ArrowName,
23
QString ArrowCardinality, QGraphicsItem * parent =
nullptr
);
24
~SchemaGraphicArrow
();
25
QRectF
boundingRect
()
const
;
26
QPainterPath
shape
()
const
;
27
void
UpdatePosition
();
28
SchemaGraphicObject
*
GetStartItem
()
const
;
29
SchemaGraphicObject
*
GetEndItem
()
const
;
30
bool
GetInheritanceMode
();
31
void
RemoveArrow
();
32
void
SetLabelScene
(
SchemaGraphicsScene
* Scene );
33
protected
:
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 );
39
private
:
40
SchemaGraphicObject
*
Start
;
41
SchemaGraphicObject
*
End
;
42
QPolygonF
ArrowHead
;
43
bool
Inheritance
;
44
bool
Composite
;
45
QString
Name
;
46
QString
Cardinality
;
47
QGraphicsSimpleTextItem *
Label
;
48
double
LastDegree
;
49
double
LastRotation
;
50
//QString LabelString;
51
};
52
53
}
// namespace dbse
54
#endif
// SCHEMAGRAPHICARROW_H
SchemaGraphicObject.hpp
SchemaGraphicsScene.hpp
dbse::SchemaGraphicArrow::LastDegree
double LastDegree
Definition
SchemaGraphicArrow.hpp:48
dbse::SchemaGraphicArrow::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition
SchemaGraphicArrow.cpp:104
dbse::SchemaGraphicArrow::GetEndItem
SchemaGraphicObject * GetEndItem() const
Definition
SchemaGraphicArrow.cpp:77
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:44
dbse::SchemaGraphicArrow::Start
SchemaGraphicObject * Start
Definition
SchemaGraphicArrow.hpp:40
dbse::SchemaGraphicArrow::Cardinality
QString Cardinality
Definition
SchemaGraphicArrow.hpp:46
dbse::SchemaGraphicArrow::ArrowHead
QPolygonF ArrowHead
Definition
SchemaGraphicArrow.hpp:42
dbse::SchemaGraphicArrow::SetLabelScene
void SetLabelScene(SchemaGraphicsScene *Scene)
Definition
SchemaGraphicArrow.cpp:99
dbse::SchemaGraphicArrow::LastRotation
double LastRotation
Definition
SchemaGraphicArrow.hpp:49
dbse::SchemaGraphicArrow::End
SchemaGraphicObject * End
Definition
SchemaGraphicArrow.hpp:41
dbse::SchemaGraphicArrow::UpdatePosition
void UpdatePosition()
Definition
SchemaGraphicArrow.cpp:66
dbse::SchemaGraphicArrow::Label
QGraphicsSimpleTextItem * Label
Definition
SchemaGraphicArrow.hpp:47
dbse::SchemaGraphicArrow::shape
QPainterPath shape() const
Definition
SchemaGraphicArrow.cpp:55
dbse::SchemaGraphicArrow::GetInheritanceMode
bool GetInheritanceMode()
Definition
SchemaGraphicArrow.cpp:82
dbse::SchemaGraphicArrow::boundingRect
QRectF boundingRect() const
Definition
SchemaGraphicArrow.cpp:46
dbse::SchemaGraphicArrow::Name
QString Name
Definition
SchemaGraphicArrow.hpp:45
dbse::SchemaGraphicArrow::Inheritance
bool Inheritance
Definition
SchemaGraphicArrow.hpp:43
dbse::SchemaGraphicArrow::GetStartItem
SchemaGraphicObject * GetStartItem() const
Definition
SchemaGraphicArrow.cpp:72
dbse::SchemaGraphicArrow::~SchemaGraphicArrow
~SchemaGraphicArrow()
Definition
SchemaGraphicArrow.cpp:42
dbse::SchemaGraphicArrow::RemoveArrow
void RemoveArrow()
Definition
SchemaGraphicArrow.cpp:87
dbse::SchemaGraphicObject
Definition
SchemaGraphicObject.hpp:21
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:16
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:14
Generated on
for DUNE-DAQ by
1.17.0