Qt Virtual Chart Table (QVCT)
CLandmarkContainer Class Reference

[UI] Landmark overlay container More...

#include <overlays/landmark/CLandmarkContainer.hpp>

Inheritance diagram for CLandmarkContainer:
COverlayContainer COverlayVisibility COverlayObject

Public Member Functions

 CLandmarkContainer (const QString &_rqsName)
 
virtual ~CLandmarkContainer ()
 
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 toggleVisibility ()
 
CLandmarkPointaddPoint (const QString &_rqsName, const CDataPosition &_roDataPosition=CDataPosition::UNDEFINED)
 Add a new landmark (item/point) to this container. 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 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 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...
 

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] Landmark overlay container

This class implements the overlay container for the landmark overlay.

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

Definition at line 42 of file CLandmarkContainer.hpp.

Constructor & Destructor Documentation

◆ CLandmarkContainer()

CLandmarkContainer::CLandmarkContainer ( const QString &  _rqsName)

Definition at line 38 of file CLandmarkContainer.cpp.

◆ ~CLandmarkContainer()

CLandmarkContainer::~CLandmarkContainer ( )
virtual

Definition at line 46 of file CLandmarkContainer.cpp.

Member Function Documentation

◆ unserialize()

void CLandmarkContainer::unserialize ( QDataStream &  _rqDataStream)
virtual

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

Reimplemented from COverlayObject.

Definition at line 61 of file CLandmarkContainer.cpp.

◆ useOverlay()

virtual COverlay* CLandmarkContainer::useOverlay ( )
inlinevirtual

Returns this object's (base) overlay.

Implements COverlayObject.

Definition at line 62 of file CLandmarkContainer.hpp.

◆ draw()

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

Draws this object (itself or its content)

Implements COverlayObject.

Definition at line 67 of file CLandmarkContainer.cpp.

◆ showDetail()

void CLandmarkContainer::showDetail ( )
virtual

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

Implements COverlayObject.

Definition at line 75 of file CLandmarkContainer.cpp.

◆ showEdit()

void CLandmarkContainer::showEdit ( )
virtual

Displays this object's edit widget/view.

Implements COverlayObject.

Definition at line 84 of file CLandmarkContainer.cpp.

◆ matchScrPosition()

COverlayPoint * CLandmarkContainer::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 96 of file CLandmarkContainer.cpp.

◆ toggleVisibility()

void CLandmarkContainer::toggleVisibility ( )
virtual

Definition at line 114 of file CLandmarkContainer.cpp.

◆ addPoint()

CLandmarkPoint * CLandmarkContainer::addPoint ( const QString &  _rqsName,
const CDataPosition _roDataPosition = CDataPosition::UNDEFINED 
)

Add a new landmark (item/point) to this container.

Definition at line 137 of file CLandmarkContainer.cpp.

◆ parseQVCT()

int CLandmarkContainer::parseQVCT ( const QDomElement &  _rqDomElement)

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

Definition at line 145 of file CLandmarkContainer.cpp.

◆ parseGPX()

int CLandmarkContainer::parseGPX ( const QDomElement &  _rqDomElement)

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

Definition at line 164 of file CLandmarkContainer.cpp.

◆ dumpQVCT()

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

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

Definition at line 182 of file CLandmarkContainer.cpp.

◆ dumpGPX()

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

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

Definition at line 202 of file CLandmarkContainer.cpp.

◆ deleteSelection()

int CLandmarkContainer::deleteSelection ( )

Deletes selected items within this container.

Definition at line 217 of file CLandmarkContainer.cpp.


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