Qt Virtual Chart Table (QVCT)
|
[UI] Pointer overlay More...
#include <overlays/pointer/CPointerOverlay.hpp>
Public Member Functions | |
CPointerOverlay () | |
virtual | ~CPointerOverlay () |
virtual void | drawContent (const CChart *_poChart, QPainter *_pqPainter) const |
Draws this overlay's content. More... | |
virtual void | showDetail (const QTreeWidgetItem *_pqTreeWidgetItem) const |
Displays the given overlay object's details (in the appropriate widget/view) More... | |
virtual void | setPosition (const QTreeWidgetItem *_pqTreeWidgetItem) const |
Centers the chart on the given overlay object's position. More... | |
virtual COverlayPoint * | matchScrPosition (const CChart *_poChart, const QPointF &_rqPointFScrPosition) const |
Returns the overlay's point that (first) matches the given screen position (0 if none is found) More... | |
bool | hasPath () const |
Returns whether a pointer path has been defined. More... | |
int | getPathSegments () const |
Returns the quantity of segments along the pointer path (0 if no path is defined) More... | |
CPointerPoint * | usePointerPoint () |
Returns the pointer point corresponding to the mouse pointer. More... | |
CPointerPoint * | usePointerTarget () |
Returns the pointer point corresponding to the target. More... | |
void | importSettings () |
Imports settings from the application's global settings. More... | |
void | setPosition (const CChart *_poChart, const QPointF &_rqPointFScrPosition, bool _bTarget=false) |
Sets the mouse pointer or target at the given screen position. More... | |
void | setPosition (const CDataPosition &_roDataPosition, bool _bTarget=false) |
Sets the mouse pointer or targetat the given geographical position. More... | |
void | clearPosition (bool _bTarget=false) |
Clears the mouse pointer or target. More... | |
void | setPath (const CChart *_poChart, const QPointF &_rqPointFScrPosition) |
Adds the given screen position to the pointer path. More... | |
void | setPath (const CDataPosition &_roDataPosition) |
Adds the given geographical position to the pointer path. More... | |
double | getPathLengthRL () |
Returns the pointer path (rhumb-line) length along its segments. More... | |
double | getPathLengthGC () |
Returns the equivalent (great-circle) length between the first and last position of the pointer path. More... | |
void | clearPath () |
Clears the pointer path. More... | |
Public Member Functions inherited from COverlay | |
void | setVisible (bool _bVisible) |
Sets this overlay items' global visibility status. More... | |
void | forceRedraw () |
Forces this overlay's rendering (not matter its cache content) More... | |
bool | isVisible () const |
Returns this overlay items' global visibility status. More... | |
bool | isRedrawForced () const |
const QFont & | getFont () const |
const QBrush & | getBrushText () const |
const QPen & | getPenText () const |
const QBrush & | getBrushMarker () const |
const QPen & | getPenMarker () const |
const QBrush & | getBrushMarkerSelected () const |
const QPen & | getPenMarkerSelected () const |
const QPen & | getPenLine () const |
const QPen & | getPenVector () const |
void | draw (const CChart *_poChart, QPainter *_pqPainter) |
Draws this overlay. More... | |
QString | newChildName (const QString &_rqsName, int __iZeroPrefix=0, bool __bForceSuffix=false) const |
Returns a valid name for a new sibling of this object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from COverlayBase | |
COverlayBase (const QString &_rqsName) | |
virtual | ~COverlayBase () |
Protected Member Functions inherited from COverlay | |
COverlay (const QString &_rqsName) | |
virtual | ~COverlay () |
Protected Attributes inherited from COverlay | |
QString | qsName |
Overlay name. More... | |
bool | bVisible |
Overlay items' global visibility status. More... | |
QPixmap | qPixmapBuffer |
Pixmap buffer used to render and cache this overlay's graphical content. More... | |
const CChart * | poChartPixmap |
Chart for which the last rendering was achieved. More... | |
QPointF | qPointFDatPositionPixmap |
Chart position at which the last rendering was achieved. More... | |
double | fdZoomPixmap |
Zoom factor at which the last rendering was achieved. More... | |
bool | bForceRedraw |
Forces this overlay's rendering (not matter its cache content) More... | |
QFont | qFont |
QFont used to draw text on this overlay. More... | |
QBrush | qBrushText |
QBrush used to draw text on this overlay. More... | |
QPen | qPenText |
QPen used to draw text on this overlay. More... | |
QBrush | qBrushMarker |
QBrush used to draw markers on this overlay. More... | |
QPen | qPenMarker |
QPen used to draw markers on this overlay. More... | |
QBrush | qBrushMarkerSelected |
QBrush used to identify selected markers on this overlay. More... | |
QPen | qPenMarkerSelected |
QPen used to identify selected markers on this overlay. More... | |
QPen | qPenLine |
QPen used to draw lines on this overlay. More... | |
QPen | qPenVector |
QPen used to draw vectors on this overlay. More... | |
[UI] Pointer overlay
This class implements the (base) overlay corresponding to pointer overlay.
Definition at line 40 of file CPointerOverlay.hpp.
CPointerOverlay::CPointerOverlay | ( | ) |
Definition at line 36 of file CPointerOverlay.cpp.
|
virtual |
Definition at line 44 of file CPointerOverlay.cpp.
|
virtual |
Draws this overlay's content.
Implements COverlay.
Definition at line 59 of file CPointerOverlay.cpp.
|
virtual |
Displays the given overlay object's details (in the appropriate widget/view)
Implements COverlay.
Definition at line 88 of file CPointerOverlay.cpp.
|
virtual |
Centers the chart on the given overlay object's position.
Implements COverlay.
Definition at line 106 of file CPointerOverlay.cpp.
|
inlinevirtual |
Returns the overlay's point that (first) matches the given screen position (0 if none is found)
Implements COverlay.
Definition at line 61 of file CPointerOverlay.hpp.
bool CPointerOverlay::hasPath | ( | ) | const |
Returns whether a pointer path has been defined.
Definition at line 122 of file CPointerOverlay.cpp.
int CPointerOverlay::getPathSegments | ( | ) | const |
Returns the quantity of segments along the pointer path (0 if no path is defined)
Definition at line 127 of file CPointerOverlay.cpp.
CPointerPoint * CPointerOverlay::usePointerPoint | ( | ) |
Returns the pointer point corresponding to the mouse pointer.
Definition at line 138 of file CPointerOverlay.cpp.
CPointerPoint * CPointerOverlay::usePointerTarget | ( | ) |
Returns the pointer point corresponding to the target.
Definition at line 143 of file CPointerOverlay.cpp.
void CPointerOverlay::importSettings | ( | ) |
Imports settings from the application's global settings.
Definition at line 152 of file CPointerOverlay.cpp.
void CPointerOverlay::setPosition | ( | const CChart * | _poChart, |
const QPointF & | _rqPointFScrPosition, | ||
bool | _bTarget = false |
||
) |
Sets the mouse pointer or target at the given screen position.
Definition at line 163 of file CPointerOverlay.cpp.
void CPointerOverlay::setPosition | ( | const CDataPosition & | _roDataPosition, |
bool | _bTarget = false |
||
) |
Sets the mouse pointer or targetat the given geographical position.
Definition at line 170 of file CPointerOverlay.cpp.
void CPointerOverlay::clearPosition | ( | bool | _bTarget = false | ) |
Clears the mouse pointer or target.
Definition at line 176 of file CPointerOverlay.cpp.
void CPointerOverlay::setPath | ( | const CChart * | _poChart, |
const QPointF & | _rqPointFScrPosition | ||
) |
Adds the given screen position to the pointer path.
Definition at line 182 of file CPointerOverlay.cpp.
void CPointerOverlay::setPath | ( | const CDataPosition & | _roDataPosition | ) |
Adds the given geographical position to the pointer path.
Definition at line 189 of file CPointerOverlay.cpp.
double CPointerOverlay::getPathLengthRL | ( | ) |
Returns the pointer path (rhumb-line) length along its segments.
Definition at line 198 of file CPointerOverlay.cpp.
double CPointerOverlay::getPathLengthGC | ( | ) |
Returns the equivalent (great-circle) length between the first and last position of the pointer path.
Definition at line 214 of file CPointerOverlay.cpp.
void CPointerOverlay::clearPath | ( | ) |
Clears the pointer path.
Definition at line 223 of file CPointerOverlay.cpp.