Qt Virtual Chart Table (QVCT)
CTrackPoint Class Reference

[UI] Track overlay point (item) More...

#include <overlays/track/CTrackPoint.hpp>

Inheritance diagram for CTrackPoint:
COverlayPoint COverlayItem COverlayVisibility CDataTime CDataPosition COverlayObject

Public Member Functions

 CTrackPoint (const QString &_rqsName)
 
 CTrackPoint (const QString &_rqsName, const CDataPosition &_roDataPosition)
 
virtual ~CTrackPoint ()
 
virtual void unserialize (QDataStream &_rqDataStream)
 Unserializes (restore) this object's data from binary format. More...
 
virtual COverlayuseOverlay ()
 Returns this object's (base) overlay. More...
 
virtual void draw (const CChart *_poChart, QPainter *_pqPainter)
 Draws this object (itself or its content) More...
 
virtual void showDetail ()
 Displays this object's details (in the appropriate widget/view) More...
 
virtual void showEdit ()
 Displays this object's edit widget/view. More...
 
virtual bool matchScrPosition (const CChart *_poChart, const QPointF &_rqPointFScrPosition) const
 Returns whether this point matches the given screen position. More...
 
virtual void toggleVisibility ()
 
void toggleMultiSelected ()
 Toggles this track point's selection status. More...
 
void setFixType (const QString &_rqsFixType)
 Sets this track point's fix type. More...
 
void setSatelliteCount (int _iSatelliteCount)
 Sets this track point's satellite count. More...
 
void setDopHorizontal (double _fdDopHorizontal)
 Sets this track point's horizontal Dilution-of-Precision (HDOP) More...
 
void setDopVertical (double _fdDopVertical)
 Sets this track point's vertical Dilution-of-Precision (VDOP) More...
 
void setDopPositional (double _fdDopPositional)
 Sets this track point's positional Dilution-of-Precision (PDOP) More...
 
QString getFixType ()
 Sets this track point's fix type. More...
 
int getSatelliteCount ()
 Sets this track point's satellite count. More...
 
double getDopHorizontal ()
 Sets this track point's horizontal Dilution-of-Precision (HDOP) More...
 
double getDopVertical ()
 Sets this track point's vertical Dilution-of-Precision (VDOP) More...
 
double getDopPositional ()
 Sets this track point's positional Dilution-of-Precision (PDOP) More...
 
void parseQVCT (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given QVCT source (file) More...
 
void parseGPX (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given GPX source (file) More...
 
void dumpQVCT (QXmlStreamWriter &_rqXmlStreamWriter) const
 Stores this object's content to the given QVCT destination (file) More...
 
void dumpGPX (QXmlStreamWriter &_rqXmlStreamWriter) const
 Stores this object's content to the given GPX destination (file) More...
 
- Public Member Functions inherited from COverlayPoint
virtual void serialize (QDataStream &_rqDataStream) const
 Serializes (store) this object's data to binary format. More...
 
virtual void drawText (const CChart *_poChart, QPainter *_pqPainter, const QString &_rqsText, const QPointF &_rqPointFScrPosition, bool _bItalic=false)
 Draws the given text, at the given screen position. More...
 
virtual void drawLine (const CChart *_poChart, QPainter *_pqPainter, const COverlayPoint *_poOverlayPoint)
 Draws a line (between this and the other specified point), including distance/bearing data. More...
 
virtual void drawMarker (const CChart *_poChart, QPainter *_pqPainter, const CDataPositionValidity *_poDataPositionValidity=0, bool _bSelected=false)
 Draws the point (marker) More...
 
virtual void drawSymbol (const CChart *_poChart, QPainter *_pqPainter, const QString &_rqsSymbol)
 Draws the symbol (user-defined) More...
 
virtual void drawTag (const CChart *_poChart, QPainter *_pqPainter, ETagPosition _eTagPosition=TAG_AUTO, const CDataTimeValidity *_poDataTimeValidity=0, const CDataPositionValidity *_poDataPositionValidity=0)
 Draws the tag (name) More...
 
- Public Member Functions inherited from COverlayItem
void setMultiSelected (bool _bMultiSelected)
 Sets this item's selection status. More...
 
bool isMultiSelected () const
 Returns this item's selection status. More...
 
- Public Member Functions inherited from COverlayObject
void setName (const QString &_rqsName)
 Sets this object's name. More...
 
QString getName () const
 Returns this object's name. More...
 
QString newChildName (const QString &_rqsName, int _iZeroPrefix=0, bool _bForceSuffix=false) const
 Returns a valid (non-duplicate) name for a new sibling of this object. More...
 
QString newChildName (const QString &_rqsName, int _iZeroPrefix, int _iSuffix) const
 Returns a suffixed (potentially duplicate) name for a new sibling of this object. More...
 
- Public Member Functions inherited from COverlayVisibility
void setVisible (bool _bVisible)
 Sets the point's (marker) visibility status. More...
 
virtual void setVisibleName (bool _bVisibleName)
 Sets the name's (tag) visibility status. More...
 
virtual void setVisiblePosition (bool _bVisiblePosition)
 Sets the position's visibility status. More...
 
virtual void setVisibleCourse (bool _bVisibleCourse)
 Sets the course's visibility status. More...
 
virtual void setVisibleRouting (bool _bVisibleRouting)
 Sets the routing's (data) visibility status. More...
 
void setVisibility (int _iVisibilityCode)
 Sets the global (coded) visibility status. More...
 
bool isVisible () const
 Returns the point's (marker) visibility status. More...
 
bool isVisibleName () const
 Returns the tag's (name) visibility status. More...
 
bool isVisiblePosition () const
 Returns the position's visibility status. More...
 
bool isVisibleCourse () const
 Returns the course's visibility status. More...
 
bool isVisibleRouting () const
 Returns the routing's (data) visibility status. More...
 
int getVisibility () const
 Returns the global (coded) visibility status. More...
 
- Public Member Functions inherited from CDataTime
 CDataTime (double _fdTime=UNDEFINED_TIME)
 
 CDataTime (const CDataTime &_roDataTime)
 
virtual ~CDataTime ()
 
void setTime (double _fdTime)
 Sets the time, in seconds from Unix epoch. More...
 
void setTime (const CDataTime &_roDataTime)
 Copy time from another time object. More...
 
void resetTime ()
 Resets the time (to an undefined Time) More...
 
double getTime () const
 Returns this time's time, in seconds from Unix epoch. More...
 
void serialize (QDataStream &_rqDataStream) const
 Serializes (store) this object's data to binary format. More...
 
void unserialize (QDataStream &_rqDataStream)
 Unserializes (restore) this object's data from binary format. More...
 
bool operator== (const CDataTime &_roTime) const
 Equality operator. More...
 
bool operator!= (const CDataTime &_roTime) const
 Inequality operator. More...
 
- Public Member Functions inherited from CDataPosition
 CDataPosition ()
 
 CDataPosition (double _fdLongitude, double _fdLatitude, double _fdElevation=UNDEFINED_ELEVATION)
 
 CDataPosition (const CDataPosition &_roDataPosition)
 
virtual ~CDataPosition ()
 
void setPosition (double _fdLongitude, double _fdLatitude, double _fdElevation=UNDEFINED_ELEVATION)
 Sets new coordinates. More...
 
void setPosition (const CDataPosition &_roDataPosition)
 Copy coordinates from another position. More...
 
void resetPosition ()
 Resets all coordinates (to an undefined position) More...
 
void setElevation (double _fdElevation)
 Sets the elevation, in meters. More...
 
void resetElevation ()
 Resets the elevation (to an undefined elevation) More...
 
double getLongitude () const
 Returns this position's longitude, in degrees. More...
 
double getLatitude () const
 Returns this position's latitude, in degrees. More...
 
double getElevation () const
 Returns this position's elevation, in meters. More...
 
void serialize (QDataStream &_rqDataStream) const
 Serializes (store) this object's data to binary format. More...
 
void unserialize (QDataStream &_rqDataStream)
 Unserializes (restore) this object's data from binary format. More...
 
bool operator== (const CDataPosition &_roPosition) const
 Equality operator. More...
 
bool operator!= (const CDataPosition &_roPosition) const
 Inequality operator. More...
 

Private Attributes

QString qsFixType
 Track point's fix type. More...
 
int iSatelliteCount
 Track point's satellites count. More...
 
double fdDopHorizontal
 Track point's horizontal Dilution-of-Precision (HDOP) More...
 
double fdDopVertical
 Track point's vertical Dilution-of-Precision (VDOP) More...
 
double fdDopPositional
 Track point's positional Dilution-of-Precision (PDOP) More...
 

Additional Inherited Members

- Public Types inherited from COverlayPoint
enum  ETagPosition { TAG_AUTO, TAG_LEFT, TAG_RIGHT }
 
- Public Types inherited from COverlayObject
enum  EType {
  OVERLAY = 1001, CONTAINER = 1010, SUBCONTAINER = 1011, ITEM = 1100,
  SUBITEM1 = 1101, SUBITEM2 = 1102
}
 Overlay object type. More...
 
- Static Public Member Functions inherited from COverlayPoint
static int getPositionBox (const QTreeWidgetItem *_pqTreeWidgetItem, CDataPosition *_poDataPositionLower, CDataPosition *_poDataPositionUpper, int _iIndexMin=0, int _iIndexMax=-1)
 Returns the minimal geographical positions box containing the points in the given overlay/container. More...
 
- Static Public Member Functions inherited from CDataTime
static bool compareTimeAscending (const CDataTime &_roTime1, const CDataTime &_roTime2)
 Time (ascending sort) comparison operator. More...
 
static bool compareTimeDescending (const CDataTime &_roTime1, const CDataTime &_roTime2)
 Time (descending sort) comparison operator. More...
 
- Static Public Member Functions inherited from CDataPosition
static double distanceGC (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Returns the WGS84-corrected great-circle distance between two points, in meters. More...
 
static double bearingGC (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Returns the great-circle (initial) bearing between two points, in degrees. More...
 
static double distanceRL (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Returns the rhumb-line distance between two points, in meters. More...
 
static double bearingRL (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Returns the rhumb-line (constant) bearing between two points, in degrees. More...
 
static double length (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Returns the length (rhumb-line distance and elevation delta) between two points, in meters. More...
 
static bool compareLongitudeAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Longitude (ascending sort) comparison operator. More...
 
static bool compareLongitudeDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Longitude (descending sort) comparison operator. More...
 
static bool compareLatitudeAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Latitude (ascending sort) comparison operator. More...
 
static bool compareLatitudeDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Latitude (descending sort) comparison operator. More...
 
static bool compareElevationAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Elevation (ascending sort) comparison operator. More...
 
static bool compareElevationDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2)
 Elevation (descending sort) comparison operator. More...
 
- Static Public Attributes inherited from CDataTime
static GNUC_CONSTEXPR double UNDEFINED_TIME = -9999999
 Specific value for an undefined time. More...
 
static const CDataTime UNDEFINED
 Specific value for an undefined time object. More...
 
- Static Public Attributes inherited from CDataPosition
static GNUC_CONSTEXPR double UNDEFINED_LONGITUDE = -999
 Specific value for an undefined longitude. More...
 
static GNUC_CONSTEXPR double UNDEFINED_LATITUDE = -99
 Specific value for an undefined latitude. More...
 
static GNUC_CONSTEXPR double UNDEFINED_ELEVATION = -9999999
 Specific value for an undefined elevation. More...
 
static const CDataPosition UNDEFINED
 Specific value for an undefined position. More...
 
- Protected Member Functions inherited from COverlayPoint
 COverlayPoint (const QString &_rqsName)
 
 COverlayPoint (const QString &_rqsName, const CDataPosition &_roDataPosition)
 
virtual ~COverlayPoint ()
 
- Protected Member Functions inherited from COverlayItem
 COverlayItem (COverlayObject::EType _eType, const QString &_rqsName)
 
virtual ~COverlayItem ()
 
- Protected Member Functions inherited from COverlayObject
 COverlayObject (EType _eType, const QString &_rqsName)
 
virtual ~COverlayObject ()
 
- Protected Member Functions inherited from COverlayVisibility
 COverlayVisibility ()
 
virtual ~COverlayVisibility ()
 
virtual void toggleVisibility (bool _bIncludeCourse, bool _bIncludeRouting)
 Toggle the visibility status. More...
 
- Protected Attributes inherited from COverlayItem
bool bMultiSelected
 Item's selection status. More...
 
- Protected Attributes inherited from COverlayObject
QString qsName
 Object name. More...
 
- Protected Attributes inherited from COverlayVisibility
bool bVisible
 Global (marker) visibility status. More...
 
bool bVisibleName
 Name's (tag) visibility status. More...
 
bool bVisiblePosition
 Position's visibility status. More...
 
bool bVisibleCourse
 Course's visibility status. More...
 
bool bVisibleRouting
 Routing's (data) visibility status. More...
 

Detailed Description

[UI] Track overlay point (item)

This class implements the overlay point (item) for the track overlay.

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

Definition at line 39 of file CTrackPoint.hpp.

Constructor & Destructor Documentation

◆ CTrackPoint() [1/2]

CTrackPoint::CTrackPoint ( const QString &  _rqsName)

Definition at line 38 of file CTrackPoint.cpp.

◆ CTrackPoint() [2/2]

CTrackPoint::CTrackPoint ( const QString &  _rqsName,
const CDataPosition _roDataPosition 
)

Definition at line 52 of file CTrackPoint.cpp.

◆ ~CTrackPoint()

virtual CTrackPoint::~CTrackPoint ( )
inlinevirtual

Definition at line 66 of file CTrackPoint.hpp.

Member Function Documentation

◆ unserialize()

void CTrackPoint::unserialize ( QDataStream &  _rqDataStream)
virtual

Unserializes (restore) this object's data from binary format.

Reimplemented from COverlayPoint.

Definition at line 71 of file CTrackPoint.cpp.

◆ useOverlay()

virtual COverlay* CTrackPoint::useOverlay ( )
inlinevirtual

Returns this object's (base) overlay.

Implements COverlayObject.

Definition at line 77 of file CTrackPoint.hpp.

◆ draw()

virtual void CTrackPoint::draw ( const CChart _poChart,
QPainter *  _pqPainter 
)
inlinevirtual

Draws this object (itself or its content)

Implements COverlayObject.

Definition at line 80 of file CTrackPoint.hpp.

◆ showDetail()

void CTrackPoint::showDetail ( )
virtual

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

Implements COverlayObject.

Definition at line 77 of file CTrackPoint.cpp.

◆ showEdit()

virtual void CTrackPoint::showEdit ( )
inlinevirtual

Displays this object's edit widget/view.

Implements COverlayObject.

Definition at line 82 of file CTrackPoint.hpp.

◆ matchScrPosition()

bool CTrackPoint::matchScrPosition ( const CChart _poChart,
const QPointF &  _rqPointFScrPosition 
) const
virtual

Returns whether this point matches the given screen position.

Reimplemented from COverlayPoint.

Definition at line 91 of file CTrackPoint.cpp.

◆ toggleVisibility()

virtual void CTrackPoint::toggleVisibility ( )
inlinevirtual

Definition at line 98 of file CTrackPoint.hpp.

◆ toggleMultiSelected()

void CTrackPoint::toggleMultiSelected ( )

Toggles this track point's selection status.

Definition at line 109 of file CTrackPoint.cpp.

◆ setFixType()

void CTrackPoint::setFixType ( const QString &  _rqsFixType)
inline

Sets this track point's fix type.

Definition at line 110 of file CTrackPoint.hpp.

◆ setSatelliteCount()

void CTrackPoint::setSatelliteCount ( int  _iSatelliteCount)
inline

Sets this track point's satellite count.

Definition at line 112 of file CTrackPoint.hpp.

◆ setDopHorizontal()

void CTrackPoint::setDopHorizontal ( double  _fdDopHorizontal)
inline

Sets this track point's horizontal Dilution-of-Precision (HDOP)

Definition at line 114 of file CTrackPoint.hpp.

◆ setDopVertical()

void CTrackPoint::setDopVertical ( double  _fdDopVertical)
inline

Sets this track point's vertical Dilution-of-Precision (VDOP)

Definition at line 116 of file CTrackPoint.hpp.

◆ setDopPositional()

void CTrackPoint::setDopPositional ( double  _fdDopPositional)
inline

Sets this track point's positional Dilution-of-Precision (PDOP)

Definition at line 118 of file CTrackPoint.hpp.

◆ getFixType()

QString CTrackPoint::getFixType ( )
inline

Sets this track point's fix type.

Definition at line 123 of file CTrackPoint.hpp.

◆ getSatelliteCount()

int CTrackPoint::getSatelliteCount ( )
inline

Sets this track point's satellite count.

Definition at line 125 of file CTrackPoint.hpp.

◆ getDopHorizontal()

double CTrackPoint::getDopHorizontal ( )
inline

Sets this track point's horizontal Dilution-of-Precision (HDOP)

Definition at line 127 of file CTrackPoint.hpp.

◆ getDopVertical()

double CTrackPoint::getDopVertical ( )
inline

Sets this track point's vertical Dilution-of-Precision (VDOP)

Definition at line 129 of file CTrackPoint.hpp.

◆ getDopPositional()

double CTrackPoint::getDopPositional ( )
inline

Sets this track point's positional Dilution-of-Precision (PDOP)

Definition at line 131 of file CTrackPoint.hpp.

◆ parseQVCT()

void CTrackPoint::parseQVCT ( const QDomElement &  _rqDomElement)

Retrieves this object's content from the given QVCT source (file)

Definition at line 118 of file CTrackPoint.cpp.

◆ parseGPX()

void CTrackPoint::parseGPX ( const QDomElement &  _rqDomElement)

Retrieves this object's content from the given GPX source (file)

Definition at line 136 of file CTrackPoint.cpp.

◆ dumpQVCT()

void CTrackPoint::dumpQVCT ( QXmlStreamWriter &  _rqXmlStreamWriter) const

Stores this object's content to the given QVCT destination (file)

Definition at line 161 of file CTrackPoint.cpp.

◆ dumpGPX()

void CTrackPoint::dumpGPX ( QXmlStreamWriter &  _rqXmlStreamWriter) const

Stores this object's content to the given GPX destination (file)

Definition at line 200 of file CTrackPoint.cpp.

Member Data Documentation

◆ qsFixType

QString CTrackPoint::qsFixType
private

Track point's fix type.

Definition at line 48 of file CTrackPoint.hpp.

◆ iSatelliteCount

int CTrackPoint::iSatelliteCount
private

Track point's satellites count.

Definition at line 50 of file CTrackPoint.hpp.

◆ fdDopHorizontal

double CTrackPoint::fdDopHorizontal
private

Track point's horizontal Dilution-of-Precision (HDOP)

Definition at line 52 of file CTrackPoint.hpp.

◆ fdDopVertical

double CTrackPoint::fdDopVertical
private

Track point's vertical Dilution-of-Precision (VDOP)

Definition at line 54 of file CTrackPoint.hpp.

◆ fdDopPositional

double CTrackPoint::fdDopPositional
private

Track point's positional Dilution-of-Precision (PDOP)

Definition at line 56 of file CTrackPoint.hpp.


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