19 #ifndef QVCT_CPOINTEROVERLAY_HPP
20 #define QVCT_CPOINTEROVERLAY_HPP
31 class CPointerContainer;
59 virtual void showDetail(
const QTreeWidgetItem* _pqTreeWidgetItem )
const;
60 virtual void setPosition(
const QTreeWidgetItem* _pqTreeWidgetItem )
const;
87 void setPosition(
const CChart* _poChart,
const QPointF& _rqPointFScrPosition,
bool _bTarget =
false );
93 void setPath(
const CChart* _poChart,
const QPointF& _rqPointFScrPosition );
(Geographical) Position data [long,lat,elev]
Generic overlay base (non-widget)
void setPath(const CChart *_poChart, const QPointF &_rqPointFScrPosition)
Adds the given screen position to the pointer path.
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)
double getPathLengthRL()
Returns the pointer path (rhumb-line) length along its segments.
virtual void setPosition(const QTreeWidgetItem *_pqTreeWidgetItem) const
Centers the chart on the given overlay object's position.
bool hasPath() const
Returns whether a pointer path has been defined.
int getPathSegments() const
Returns the quantity of segments along the pointer path (0 if no path is defined)
double getPathLengthGC()
Returns the equivalent (great-circle) length between the first and last position of the pointer path.
void importSettings()
Imports settings from the application's global settings.
CPointerPoint * usePointerTarget()
Returns the pointer point corresponding to the target.
virtual void drawContent(const CChart *_poChart, QPainter *_pqPainter) const
Draws this overlay's content.
void clearPath()
Clears the pointer path.
virtual ~CPointerOverlay()
void clearPosition(bool _bTarget=false)
Clears the mouse pointer or target.
virtual void showDetail(const QTreeWidgetItem *_pqTreeWidgetItem) const
Displays the given overlay object's details (in the appropriate widget/view)
CPointerPoint * usePointerPoint()
Returns the pointer point corresponding to the mouse pointer.
[UI] Pointer overlay point (item)