19 #ifndef QVCT_CVESSELPOINTDEVICE_HPP
20 #define QVCT_CVESSELPOINTDEVICE_HPP
23 #include <QDataStream>
24 #include <QDomElement>
26 #include <QTreeWidgetItem>
27 #include <QXmlStreamWriter>
84 CVesselPointDevice(
const QString& _rqsName,
const QString& _rqsSourceName,
bool _bDynamic =
false );
93 virtual void serialize( QDataStream& _rqDataStream )
const {};
100 virtual void draw(
const CChart* _poChart, QPainter* _pqPainter ) {};
128 void setSynchronized(
bool _bSynchronizePosition,
bool _bSynchronizeElevation,
bool _bSynchronizeTime,
129 bool _bSynchronizeGroundBearing,
bool _bSynchronizeGroundSpeed,
bool _bSynchronizeGroundSpeedVertical,
130 bool _bSynchronizeApparentBearing,
bool _bSynchronizeApparentSpeed,
bool _bSynchronizeApparentSpeedVertical,
131 bool _bSynchronizeText );
172 void parseQVCT(
const QDomElement& _rqDomElement );
174 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter )
const;
Fix data [source,time,position,course,DOPs,...].
Sky view data (satellites details)
Generic navigation device (GPS, speedometer, compass, etc.)
bool bSynchronizeElevation
[Flag] Use this device/source to synchronize the vessel's elevation
bool isSynchronizedElevation()
Returns whether this device/source is used to synchronize the vessel's elevation.
void slotDestroyed(QObject *_pqObject)
Slot to handle object destruction.
void syncDataFix(const CDeviceDataFix &_roDeviceDataFix)
Synchronizes fix data (sent by device)
bool bSynchronizePosition
[Flag] Use this device/source to synchronize the vessel's position
bool isSynchronizedApparentBearing()
Returns whether this device/source is used to synchronize the vessel's apparent bearing.
virtual void draw(const CChart *_poChart, QPainter *_pqPainter)
Draws this object (itself or its content)
bool isDynamic()
Returns whether the device is dynamically generated.
bool isSynchronizedGroundBearing()
Returns whether this device/source is used to synchronize the vessel's ground bearing.
bool isSynchronizedPosition()
Returns whether this device/source is used to synchronize the vessel's position.
virtual void showDetail()
Displays this object's details (in the appropriate widget/view)
virtual COverlay * useOverlay()
Returns this object's (base) overlay.
void setSynchronized(bool _bSynchronizePosition, bool _bSynchronizeElevation, bool _bSynchronizeTime, bool _bSynchronizeGroundBearing, bool _bSynchronizeGroundSpeed, bool _bSynchronizeGroundSpeedVertical, bool _bSynchronizeApparentBearing, bool _bSynchronizeApparentSpeed, bool _bSynchronizeApparentSpeedVertical, bool _bSynchronizeText)
Sets the synchronizazion flags.
bool isDeviceConnected() const
Returns whether the actual device is connected.
bool bDynamic
Dynamic flag (vessel device automatically generated by a dynamic flotilla)
void slotDataSkyView(const CDeviceDataSkyView &_roDeviceDataSkyView)
Slot to handle sky view data (sent by device)
bool bSynchronizeGroundSpeed
[Flag] Use this device/source to synchronize the vessel's ground horizontal speed
CVesselPointDevice(const QString &_rqsName, const QString &_rqsSourceName, bool _bDynamic=false)
CDevice * poDevice
Corresponding device's pointer.
bool isSynchronizedGroundSpeed()
Returns whether this device/source is used to synchronize the vessel's ground horizontal speed.
virtual ~CVesselPointDevice()
virtual void serialize(QDataStream &_rqDataStream) const
Serializes (store) this object's data to binary format.
bool bSynchronizeApparentSpeedVertical
[Flag] Use this device/source to synchronize the vessel's apparent vertical speed
void slotDataFix(const CDeviceDataFix &_roDeviceDataFix)
Slot to handle fix data (sent by device)
void parseQVCT(const QDomElement &_rqDomElement)
Retrieves this object's content from the given QVCT source (file)
bool isSynchronizedTime()
Returns whether this device/source is used to synchronize the vessel's time.
void disconnectDevice()
Disconnects from the actual device.
bool isSynchronizedApparentSpeed()
Returns whether this device/source is used to synchronize the vessel's apparent horizontal speed.
bool connectDevice()
Connects to the actual device.
bool bSynchronizeTime
[Flag] Use this device/source to synchronize the vessel's time
bool bSynchronizeApparentSpeed
[Flag] Use this device/source to synchronize the vessel's apparent horizontal speed
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter) const
Stores this object's content to the given QVCT destination (file)
virtual void showEdit()
Displays this object's edit widget/view.
bool isSynchronizedGroundSpeedVertical()
Returns whether this device/source is used to synchronize the vessel's ground vertical speed.
bool bSynchronizeGroundBearing
[Flag] Use this device/source to synchronize the vessel's ground bearing
bool bSynchronizeApparentBearing
[Flag] Use this device/source to synchronize the vessel's apparent bearing
bool bSynchronizeText
[Flag] Use this device/source to synchronize the vessel's additional textual data string
bool isSynchronizedText()
Returns whether this device/source is used to synchronize the vessel's additional textual data string...
void signalRefreshContent()
Signal emitted when views should refresh this object's corresponding content.
bool isSynchronizedApparentSpeedVertical()
Returns whether this device/source is used to synchronize the vessel's apparent vertical speed.
virtual void unserialize(QDataStream &_rqDataStream)
Unserializes (restore) this object's data from binary format.
bool bSynchronizeGroundSpeedVertical
[Flag] Use this device/source to synchronize the vessel's ground vertical speed