19 #ifndef QVCT_CVESSELCONTAINER_HPP
20 #define QVCT_CVESSELCONTAINER_HPP
23 #include <QDomElement>
27 #include <QXmlStreamWriter>
90 virtual void serialize( QDataStream& _rqDataStream )
const;
91 virtual void unserialize( QDataStream& _rqDataStream );
97 virtual void draw(
const CChart* _poChart, QPainter* _pqPainter );
179 int parseQVCT(
const QDomElement& _rqDomElement );
181 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter,
bool bOnlySelected =
false )
const;
(Geographical) Position data [long,lat,elev]
static const CDataPosition UNDEFINED
Specific value for an undefined position.
Fix data [source,time,position,course,DOPs,...].
Generic navigation device (GPS, speedometer, compass, etc.)
Generic overlay container.
Generic overlay visibility.
virtual void toggleVisibility(bool _bIncludeCourse, bool _bIncludeRouting)
Toggle the visibility status.
[UI] Vessel overlay container / flotilla
virtual void setVisibleName(bool _bVisibleName)
Sets the name's (tag) visibility status.
virtual COverlay * useOverlay()
Returns this object's (base) overlay.
bool isDynamic()
Returns this flotilla's dynamic status.
bool bDynamic
Dynamic status.
QTimer * pqTimerDynamicCleanup
Dynamic flotilla clean-up timer.
void clearDevice()
Clears the device set to dynamically generate this flotilla.
QString getUrl() const
Returns this flotilla's URL.
QString getComment() const
Returns this flotilla's comment.
QString qsComment
Vessel's comment.
void setType(const QString &_rqsType)
Sets this flotilla's type.
CVesselContainer(const QString &_rqsName)
QString getType() const
Returns this flotilla's type.
void addPointDynamic(const CDeviceDataFix &_roDeviceDataFix, const QString &_rqsDeviceName)
Add a new dynamic vessel (item/point) with the given data fix to this container.
virtual ~CVesselContainer()
virtual void setVisibleCourse(bool _bVisibleCourse)
Sets the course's visibility status.
virtual void showDetail()
Displays this object's details (in the appropriate widget/view)
bool isDeviceConnected() const
Returns whether this flotilla's vessels devices are all connected.
virtual void unserialize(QDataStream &_rqDataStream)
Unserializes (restore) this object's data from binary format.
virtual void draw(const CChart *_poChart, QPainter *_pqPainter)
Draws this object (itself or its content)
virtual void showEdit()
Displays this object's edit widget/view.
QString qsType
Vessel's type.
int cleanPointDynamic(int _iTTL)
Deletes dynamic vessels (items/points) that have not been updated for the given "time-to-live" second...
void setComment(const QString &_rqsComment)
Sets this flotilla's comment.
int deleteSelection()
Deletes selected items within this container.
CVesselPoint * addPoint(const QString &_rqsName, const CDataPosition &_roDataPosition=CDataPosition::UNDEFINED)
Add a new vessel (item/point) to this container.
virtual COverlayPoint * matchScrPosition(const CChart *_poChart, const QPointF &_rqPointFScrPosition) const
Returns the overlay container's point that (first) matches the given screen position (0 if none is fo...
void setDescription(const QString &_rqsDescription)
Sets this flotilla's description.
QString qsDescription
Vessel's description.
QString qsUrl
Vessel's URL.
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter, bool bOnlySelected=false) const
Stores this object's content to the given QVCT destination (file)
void setDevice(CVesselContainerDevice *_poVesselContainerDevice)
Sets a device to dynamically generate this flotilla.
void disconnectDevice()
Disconnects all children vessels devices.
int parseQVCT(const QDomElement &_rqDomElement)
Retrieves this object's content from the given QVCT source (file)
virtual void serialize(QDataStream &_rqDataStream) const
Serializes (store) this object's data to binary format.
void clear()
Clear the entire content of this container.
virtual void toggleVisibility()
void connectDevice()
Connects all children vessels devices.
void slotTimerDynamicCleanup()
[Slot] Slot to handle activity signal emitted by device
void setUrl(const QString &_rqsUrl)
Sets this flotilla's URL.
QString getDescription() const
Returns this flotilla's description.
virtual void setVisiblePosition(bool _bVisiblePosition)
Sets the position's visibility status.
[UI] Vessel overlay container
[UI] Vessel overlay point (item) / vessel