Qt Virtual Chart Table (QVCT)
CTrackSubContainer Class Reference

[UI] Track overlay sub-container More...

#include <overlays/track/CTrackSubContainer.hpp>

Inheritance diagram for CTrackSubContainer:
COverlayContainer COverlayVisibility COverlayObject

Public Member Functions

 CTrackSubContainer (const QString &_rqsName)
 
virtual ~CTrackSubContainer ()
 
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 COverlayPointmatchScrPosition (const CChart *_poChart, const QPointF &_rqPointFScrPosition) const
 Returns the overlay container's point that (first) matches the given screen position (0 if none is found) 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 setVisibleRouting (bool _bVisibleRouting)
 Sets the routing's (data) visibility status. More...
 
virtual void toggleVisibility ()
 
CTrackPointgetLastPoint ()
 Returns the last track (item/point) from this sub-container (0 if none is found) More...
 
CTrackPointaddPoint (const QString &_rqsName, const CDataPosition &_roDataPosition=CDataPosition::UNDEFINED)
 Add a new track (item/point) to this sub-container. More...
 
double getLengthRL ()
 Returns the track's (rhumb-line) length. More...
 
double getTimeElapsed ()
 Returns the track's elapsed time. More...
 
int parseQVCT (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given QVCT source (file) More...
 
int parseGPX (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given GPX source (file) More...
 
void dumpQVCT (QXmlStreamWriter &_rqXmlStreamWriter, bool bOnlySelected=false) const
 Stores this object's content to the given QVCT destination (file) More...
 
void dumpGPX (QXmlStreamWriter &_rqXmlStreamWriter, bool bOnlySelected=false) const
 Stores this object's content to the given GPX destination (file) More...
 
int deleteSelection ()
 Deletes selected items within this sub-container. 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...
 
virtual void serialize (QDataStream &_rqDataStream) const
 Serializes (store) this object's data to binary format. 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 setVisibleCourse (bool _bVisibleCourse)
 Sets the course's 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...
 

Additional Inherited Members

- Public Types inherited from COverlayObject
enum  EType {
  OVERLAY = 1001, CONTAINER = 1010, SUBCONTAINER = 1011, ITEM = 1100,
  SUBITEM1 = 1101, SUBITEM2 = 1102
}
 Overlay object type. More...
 
- Protected Member Functions inherited from COverlayContainer
 COverlayContainer (COverlayObject::EType _eType, const QString &_rqsName)
 
virtual ~COverlayContainer ()
 
- 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 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 sub-container

This class implements the overlay sub-container for the track overlay.

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

Definition at line 41 of file CTrackSubContainer.hpp.

Constructor & Destructor Documentation

◆ CTrackSubContainer()

CTrackSubContainer::CTrackSubContainer ( const QString &  _rqsName)

Definition at line 39 of file CTrackSubContainer.cpp.

◆ ~CTrackSubContainer()

CTrackSubContainer::~CTrackSubContainer ( )
virtual

Definition at line 47 of file CTrackSubContainer.cpp.

Member Function Documentation

◆ unserialize()

void CTrackSubContainer::unserialize ( QDataStream &  _rqDataStream)
virtual

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

Reimplemented from COverlayObject.

Definition at line 62 of file CTrackSubContainer.cpp.

◆ useOverlay()

virtual COverlay* CTrackSubContainer::useOverlay ( )
inlinevirtual

Returns this object's (base) overlay.

Implements COverlayObject.

Definition at line 61 of file CTrackSubContainer.hpp.

◆ draw()

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

Draws this object (itself or its content)

Implements COverlayObject.

Definition at line 73 of file CTrackSubContainer.cpp.

◆ showDetail()

void CTrackSubContainer::showDetail ( )
virtual

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

Implements COverlayObject.

Definition at line 135 of file CTrackSubContainer.cpp.

◆ showEdit()

virtual void CTrackSubContainer::showEdit ( )
inlinevirtual

Displays this object's edit widget/view.

Implements COverlayObject.

Definition at line 66 of file CTrackSubContainer.hpp.

◆ matchScrPosition()

COverlayPoint * CTrackSubContainer::matchScrPosition ( const CChart _poChart,
const QPointF &  _rqPointFScrPosition 
) const
virtual

Returns the overlay container's point that (first) matches the given screen position (0 if none is found)

Implements COverlayContainer.

Definition at line 149 of file CTrackSubContainer.cpp.

◆ setVisibleName()

void CTrackSubContainer::setVisibleName ( bool  _bVisibleName)
virtual

Sets the name's (tag) visibility status.

Reimplemented from COverlayVisibility.

Definition at line 167 of file CTrackSubContainer.cpp.

◆ setVisiblePosition()

void CTrackSubContainer::setVisiblePosition ( bool  _bVisiblePosition)
virtual

Sets the position's visibility status.

Reimplemented from COverlayVisibility.

Definition at line 175 of file CTrackSubContainer.cpp.

◆ setVisibleRouting()

void CTrackSubContainer::setVisibleRouting ( bool  _bVisibleRouting)
virtual

Sets the routing's (data) visibility status.

Reimplemented from COverlayVisibility.

Definition at line 183 of file CTrackSubContainer.cpp.

◆ toggleVisibility()

void CTrackSubContainer::toggleVisibility ( )
virtual

Definition at line 191 of file CTrackSubContainer.cpp.

◆ getLastPoint()

CTrackPoint * CTrackSubContainer::getLastPoint ( )

Returns the last track (item/point) from this sub-container (0 if none is found)

Definition at line 215 of file CTrackSubContainer.cpp.

◆ addPoint()

CTrackPoint * CTrackSubContainer::addPoint ( const QString &  _rqsName,
const CDataPosition _roDataPosition = CDataPosition::UNDEFINED 
)

Add a new track (item/point) to this sub-container.

Definition at line 222 of file CTrackSubContainer.cpp.

◆ getLengthRL()

double CTrackSubContainer::getLengthRL ( )

Returns the track's (rhumb-line) length.

Definition at line 230 of file CTrackSubContainer.cpp.

◆ getTimeElapsed()

double CTrackSubContainer::getTimeElapsed ( )

Returns the track's elapsed time.

Definition at line 246 of file CTrackSubContainer.cpp.

◆ parseQVCT()

int CTrackSubContainer::parseQVCT ( const QDomElement &  _rqDomElement)

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

Definition at line 256 of file CTrackSubContainer.cpp.

◆ parseGPX()

int CTrackSubContainer::parseGPX ( const QDomElement &  _rqDomElement)

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

Definition at line 278 of file CTrackSubContainer.cpp.

◆ dumpQVCT()

void CTrackSubContainer::dumpQVCT ( QXmlStreamWriter &  _rqXmlStreamWriter,
bool  bOnlySelected = false 
) const

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

Definition at line 299 of file CTrackSubContainer.cpp.

◆ dumpGPX()

void CTrackSubContainer::dumpGPX ( QXmlStreamWriter &  _rqXmlStreamWriter,
bool  bOnlySelected = false 
) const

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

Definition at line 319 of file CTrackSubContainer.cpp.

◆ deleteSelection()

int CTrackSubContainer::deleteSelection ( )

Deletes selected items within this sub-container.

Definition at line 338 of file CTrackSubContainer.cpp.


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