Qt Virtual Chart Table (QVCT)
CPointerOverlay Class Reference

[UI] Pointer overlay More...

#include <overlays/pointer/CPointerOverlay.hpp>

Inheritance diagram for CPointerOverlay:
COverlayBase COverlay

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 COverlayPointmatchScrPosition (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...
 
CPointerPointusePointerPoint ()
 Returns the pointer point corresponding to the mouse pointer. More...
 
CPointerPointusePointerTarget ()
 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 CChartpoChartPixmap
 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...
 

Detailed Description

[UI] Pointer overlay

This class implements the (base) overlay corresponding to pointer overlay.

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 40 of file CPointerOverlay.hpp.

Constructor & Destructor Documentation

◆ CPointerOverlay()

CPointerOverlay::CPointerOverlay ( )

Definition at line 36 of file CPointerOverlay.cpp.

◆ ~CPointerOverlay()

CPointerOverlay::~CPointerOverlay ( )
virtual

Definition at line 44 of file CPointerOverlay.cpp.

Member Function Documentation

◆ drawContent()

void CPointerOverlay::drawContent ( const CChart _poChart,
QPainter *  _pqPainter 
) const
virtual

Draws this overlay's content.

Implements COverlay.

Definition at line 59 of file CPointerOverlay.cpp.

◆ showDetail()

void CPointerOverlay::showDetail ( const QTreeWidgetItem *  _pqTreeWidgetItem) const
virtual

Displays the given overlay object's details (in the appropriate widget/view)

Implements COverlay.

Definition at line 88 of file CPointerOverlay.cpp.

◆ setPosition() [1/3]

void CPointerOverlay::setPosition ( const QTreeWidgetItem *  _pqTreeWidgetItem) const
virtual

Centers the chart on the given overlay object's position.

Implements COverlay.

Definition at line 106 of file CPointerOverlay.cpp.

◆ matchScrPosition()

virtual COverlayPoint* CPointerOverlay::matchScrPosition ( const CChart _poChart,
const QPointF &  _rqPointFScrPosition 
) const
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.

◆ hasPath()

bool CPointerOverlay::hasPath ( ) const

Returns whether a pointer path has been defined.

Definition at line 122 of file CPointerOverlay.cpp.

◆ getPathSegments()

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.

◆ usePointerPoint()

CPointerPoint * CPointerOverlay::usePointerPoint ( )

Returns the pointer point corresponding to the mouse pointer.

Definition at line 138 of file CPointerOverlay.cpp.

◆ usePointerTarget()

CPointerPoint * CPointerOverlay::usePointerTarget ( )

Returns the pointer point corresponding to the target.

Definition at line 143 of file CPointerOverlay.cpp.

◆ importSettings()

void CPointerOverlay::importSettings ( )

Imports settings from the application's global settings.

Definition at line 152 of file CPointerOverlay.cpp.

◆ setPosition() [2/3]

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.

◆ setPosition() [3/3]

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.

◆ clearPosition()

void CPointerOverlay::clearPosition ( bool  _bTarget = false)

Clears the mouse pointer or target.

Definition at line 176 of file CPointerOverlay.cpp.

◆ setPath() [1/2]

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.

◆ setPath() [2/2]

void CPointerOverlay::setPath ( const CDataPosition _roDataPosition)

Adds the given geographical position to the pointer path.

Definition at line 189 of file CPointerOverlay.cpp.

◆ getPathLengthRL()

double CPointerOverlay::getPathLengthRL ( )

Returns the pointer path (rhumb-line) length along its segments.

Definition at line 198 of file CPointerOverlay.cpp.

◆ getPathLengthGC()

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.

◆ clearPath()

void CPointerOverlay::clearPath ( )

Clears the pointer path.

Definition at line 223 of file CPointerOverlay.cpp.


The documentation for this class was generated from the following files: