Qt Virtual Chart Table (QVCT)
|
Generic overlay object. More...
#include <overlays/COverlayObject.hpp>
Public Types | |
enum | EType { OVERLAY = 1001 , CONTAINER = 1010 , SUBCONTAINER = 1011 , ITEM = 1100 , SUBITEM1 = 1101 , SUBITEM2 = 1102 } |
Overlay object type. More... | |
Public Member Functions | |
void | setName (const QString &_rqsName) |
Sets this object's name. More... | |
QString | getName () const |
Returns this object's name. More... | |
virtual COverlay * | useOverlay ()=0 |
Returns this object's (base) overlay. More... | |
virtual void | serialize (QDataStream &_rqDataStream) const |
Serializes (store) this object's data to binary format. More... | |
virtual void | unserialize (QDataStream &_rqDataStream) |
Unserializes (restore) this object's data from binary format. More... | |
virtual void | draw (const CChart *_poChart, QPainter *_pqPainter)=0 |
Draws this object (itself or its content) More... | |
virtual void | showDetail ()=0 |
Displays this object's details (in the appropriate widget/view) More... | |
virtual void | showEdit ()=0 |
Displays this object's edit widget/view. 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... | |
Protected Member Functions | |
COverlayObject (EType _eType, const QString &_rqsName) | |
virtual | ~COverlayObject () |
Protected Attributes | |
QString | qsName |
Object name. More... | |
Generic overlay object.
This class defines the generic representation of any (hierarchical) object used in an overlay.
Definition at line 38 of file COverlayObject.hpp.
Overlay object type.
Enumerator | |
---|---|
OVERLAY | (Base) overlay |
CONTAINER | Container. |
SUBCONTAINER | Sub-container. |
ITEM | Item. |
SUBITEM1 | Sub-item (type 1) |
SUBITEM2 | Sub-item (type 2) |
Definition at line 48 of file COverlayObject.hpp.
|
protected |
Definition at line 31 of file COverlayObject.cpp.
|
inlineprotectedvirtual |
Definition at line 74 of file COverlayObject.hpp.
|
inline |
Sets this object's name.
Definition at line 84 of file COverlayObject.hpp.
|
inline |
Returns this object's name.
Definition at line 89 of file COverlayObject.hpp.
|
pure virtual |
Returns this object's (base) overlay.
Implemented in CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackSubContainer, CTrackPoint, CTrackContainer, CRoutePoint, CRouteContainer, CPointerPoint, CLandmarkPoint, CLandmarkContainer, and CDevice.
|
virtual |
Serializes (store) this object's data to binary format.
Reimplemented in CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackContainer, CRoutePoint, CRouteContainer, CLandmarkPoint, COverlayPoint, COverlayCourse, and CDevice.
Definition at line 45 of file COverlayObject.cpp.
|
virtual |
Unserializes (restore) this object's data from binary format.
Reimplemented in CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackSubContainer, CTrackPoint, CTrackContainer, CRoutePoint, CRouteContainer, CLandmarkPoint, CLandmarkContainer, COverlayPoint, COverlayCourse, and CDevice.
Definition at line 50 of file COverlayObject.cpp.
|
pure virtual |
Draws this object (itself or its content)
Implemented in CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackSubContainer, CTrackPoint, CTrackContainer, CRoutePoint, CRouteContainer, CPointerPoint, CLandmarkPoint, CLandmarkContainer, and CDevice.
|
pure virtual |
Displays this object's details (in the appropriate widget/view)
Implemented in CDevice, CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackSubContainer, CTrackPoint, CTrackContainer, CRoutePoint, CRouteContainer, CPointerPoint, CLandmarkPoint, CLandmarkContainer, CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Displays this object's edit widget/view.
Implemented in CDevice, CVesselPointDevice, CVesselContainerDevice, CVesselPoint, CVesselContainer, CTrackSubContainer, CTrackPoint, CTrackContainer, CRoutePoint, CRouteContainer, CPointerPoint, CLandmarkPoint, CLandmarkContainer, CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
QString COverlayObject::newChildName | ( | const QString & | _rqsName, |
int | _iZeroPrefix = 0 , |
||
bool | _bForceSuffix = false |
||
) | const |
Returns a valid (non-duplicate) name for a new sibling of this object.
This method checks and returns a valid name for a new sibling of this object, such as no duplicate is created. If the given name matches an existing sibling, it is automatically suffixed with a number, prefixed with the given quantity of "0" (e.g. "Object(01)")
Definition at line 55 of file COverlayObject.cpp.
QString COverlayObject::newChildName | ( | const QString & | _rqsName, |
int | _iZeroPrefix, | ||
int | _iSuffix | ||
) | const |
Returns a suffixed (potentially duplicate) name for a new sibling of this object.
This method DOET NOT check if another sibling exists with the same name and suffix. It merely adds the given suffix to the given name, prefixed with the given quantity of "0" (e.g. "Object(01)")
Definition at line 79 of file COverlayObject.cpp.
|
protected |