|
ddt
0.1
|
#include <ddtOverlayRendering.hpp>
Public Member Functions | |
| DdtOverlayRendering () | |
| virtual | ~DdtOverlayRendering () |
| virtual void | RedrawOverlay (QGraphicsScene *scene, const QString timestamp="") |
| void | AddGraphicalElement (const DdtGraphicalElementProperties &element_properties, const double x1, const double y1, const double x2, const double y2, const QString drawMode, const QString text="") |
| void | RemoveGraphicalElements (const QString selection) |
| void | SelectGraphicalElements (const double x1, const double y1, const QGraphicsView *const view) |
| void | SetCurrentScale (const float scale) |
| DdtGraphicalOverlay * | GetGraphicalOverlay () |
| QStringList | GetListOfElementIDs () const |
Protected Attributes | |
| DdtGraphicalOverlay * | graphics_overlay |
| QList< DdtGraphicalElement * > | selected_elements |
| float | current_scale |
Class for the rendering of graphical overlays
|
explicit |
Constructor
|
virtual |
Destructor
| void DdtOverlayRendering::AddGraphicalElement | ( | const DdtGraphicalElementProperties & | element_properties, |
| const double | x1, | ||
| const double | y1, | ||
| const double | x2, | ||
| const double | y2, | ||
| const QString | drawMode, | ||
| const QString | text = "" |
||
| ) |
Add a graphical element to the overlay.
| element_properties | the graphical element properties |
| x1 | mouse x coordinate of first position |
| y1 | mouse y coordinate of first position |
| x2 | mouse x coordinate of second position |
| y2 | mouse y coordinate of second position |
| drawMode | string identifying the graphical element |
| DdtGraphicalOverlay * DdtOverlayRendering::GetGraphicalOverlay | ( | ) |
Access to the graphical overlay
| QStringList DdtOverlayRendering::GetListOfElementIDs | ( | ) | const |
|
virtual |
Function that draw all overlay elements into the scene of the view
| void DdtOverlayRendering::RemoveGraphicalElements | ( | const QString | selection | ) |
Removes overlays of given type (selection)
| selection | The type of overlay to delete |
| void DdtOverlayRendering::SelectGraphicalElements | ( | const double | x1, |
| const double | y1, | ||
| const QGraphicsView *const | view | ||
| ) |
Selects a graphical element at the current coordinates
| x1 | First x coordinate |
| y1 | First y coordinate |
| x2 | Second x coordinate |
| y2 | Second y coordinate |
| view | Active graphics view |
| void DdtOverlayRendering::SetCurrentScale | ( | const float | scale | ) |
Set the current scale factor of the view
| scale | The current scale |
|
protected |
|
protected |
|
protected |