|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <GraphicalClass.hpp>
Public Member Functions | |
| GraphicalObject (bool Used, QString ObjectName, GraphicalClass GraphInfo, QGraphicsObject *parent=0) | |
| ~GraphicalObject () | |
| QRectF | boundingRect () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| QPainterPath | shape () const |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
| Event Handler. | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| void | dropEvent (QGraphicsSceneDragDropEvent *event) |
| void | AddGraphicChildren () |
| Graphics. | |
| void | ShowGraphicsChildren () |
| void | HideGraphicsChildren () |
| double | GetExpandedX () const |
| double | GetExpandedY () const |
| void | SetExpandedX (double dx) |
| void | SetExpandedY (double dy) |
| void | GetOffsetX (QGraphicsItem *Item, double &Offset) |
| Some Api. | |
| void | GetOffsetY (QGraphicsItem *Item, double &Offset) |
| void | LocateTopMostItem (QGraphicsItem *Auxiliary) |
| QString | GetDatabaseClassName () const |
| QString | GetDatabaseUidName () const |
Private Attributes | |
| GraphicalClass | GraphicalInfo |
| QGraphicsPixmapItem * | IconItem |
| QGraphicsTextItem * | TextItem |
| QString | DatabaseClassName |
| QString | DatabaseUidName |
| bool | IsExpanded |
| bool | IsFetched |
| QPointF | StartDrag |
| double | expandedX |
| double | expandedY |
Definition at line 55 of file GraphicalClass.hpp.
|
explicit |
Definition at line 27 of file GraphicalClass.cpp.
| dbe::GraphicalObject::~GraphicalObject | ( | ) |
Definition at line 68 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::AddGraphicChildren | ( | ) |
Graphics.
Definition at line 353 of file GraphicalClass.cpp.
| QRectF dbe::GraphicalObject::boundingRect | ( | ) | const |
Definition at line 76 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::dropEvent | ( | QGraphicsSceneDragDropEvent * | event | ) |
Definition at line 188 of file GraphicalClass.cpp.
| QString dbe::GraphicalObject::GetDatabaseClassName | ( | ) | const |
Definition at line 679 of file GraphicalClass.cpp.
| QString dbe::GraphicalObject::GetDatabaseUidName | ( | ) | const |
Definition at line 686 of file GraphicalClass.cpp.
| double dbe::GraphicalObject::GetExpandedX | ( | ) | const |
Definition at line 693 of file GraphicalClass.cpp.
| double dbe::GraphicalObject::GetExpandedY | ( | ) | const |
Definition at line 700 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::GetOffsetX | ( | QGraphicsItem * | Item, |
| double & | Offset ) |
Some Api.
Definition at line 627 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::GetOffsetY | ( | QGraphicsItem * | Item, |
| double & | Offset ) |
Definition at line 648 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::HideGraphicsChildren | ( | ) |
First change items with the same parent
Now that the items with the same parent are in their final position calculate the OffsetX/OffsetY of this item top level parent item THIS FOR IS EXTREMELY IMPORTANT -> DO NOT TOUCH IT IF YOU TOUCH IT I WILL HUNT YOU FOREVER....AND ONE DAY I WILL CATCH YOU
Now get all the items in the scene
Now get the highest y in the same line as this top level item
Get only top levels items at the same line as this top level item and not equal as this top level item
Now i have the highest offset on the line, distance from the line bottom line Iterating over the top level items to add proper offsetX/offsetY
Definition at line 510 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::LocateTopMostItem | ( | QGraphicsItem * | Auxiliary | ) |
Definition at line 669 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::mouseDoubleClickEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Event Handler.
Definition at line 122 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 154 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 144 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget ) |
Definition at line 94 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::SetExpandedX | ( | double | dx | ) |
Definition at line 707 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::SetExpandedY | ( | double | dy | ) |
Definition at line 714 of file GraphicalClass.cpp.
| QPainterPath dbe::GraphicalObject::shape | ( | ) | const |
Definition at line 113 of file GraphicalClass.cpp.
| void dbe::GraphicalObject::ShowGraphicsChildren | ( | ) |
First change items with the same parent
Now that the items with the same parent are in their final position calculate the OffsetX/OffsetY of this item top level parent item
Now get all the items in the scene
Now get the highest y in the same line as this top level item
Get only top levels items at the same line as this top level item and not equal as this top level item
Now i have the highest offset on the line, distance from the line bottom line Iterating over the top level items to add proper offsetX/offsetY
Definition at line 393 of file GraphicalClass.cpp.
|
private |
Definition at line 89 of file GraphicalClass.hpp.
|
private |
Definition at line 90 of file GraphicalClass.hpp.
|
private |
Definition at line 94 of file GraphicalClass.hpp.
|
private |
Definition at line 95 of file GraphicalClass.hpp.
|
private |
Definition at line 86 of file GraphicalClass.hpp.
|
private |
Definition at line 87 of file GraphicalClass.hpp.
|
private |
Definition at line 91 of file GraphicalClass.hpp.
|
private |
Definition at line 92 of file GraphicalClass.hpp.
|
private |
Definition at line 93 of file GraphicalClass.hpp.
|
private |
Definition at line 88 of file GraphicalClass.hpp.