ITS
|
#include <DestinationAreaData.h>
Public Types | |
enum | e_shape { shape_circle, shape_rectangle, shape_ellipse } |
The e_shape enum defines the shape types. More... | |
Public Member Functions | |
DestinationAreaData () | |
DestinationAreaData DestinationAreaData constructor. More... | |
DestinationAreaData (char *data, int *offset) | |
DestinationAreaData DestinationAreaData intialization constructor. More... | |
DestinationAreaData (e_shape shape, qint32 lat, qint32 lon, quint16 a, quint16 b, quint16 angle) | |
DestinationAreaData DestinationAreaData intialization constructor. More... | |
DestinationAreaData (ReferencePosition_t ref) | |
DestinationAreaData DestinationAreaData intialization constructor. More... | |
qint32 | geoAreaPosLatitude () const |
geoAreaPosLatitude Geo area position latitude getter. More... | |
qint32 | geoAreaPosLongitude () const |
geoAreaPosLongitude Geo area position longitude getter. More... | |
quint16 | distanceA () const |
distanceA Semi minor axis of the area getter. More... | |
quint16 | distanceB () const |
distanceB Semi major axis of the area getter. More... | |
quint16 | angle () const |
angle Heading to the North of the area getter. More... | |
e_shape | shape () const |
shape Shape of the area getter. More... | |
void | setGeoAreaPosLatitude (qint32 l) |
setGeoAreaPosLatitude Geo area position latitude setter. More... | |
void | setGeoAreaPosLongitude (qint32 l) |
setGeoAreaPosLongitude Geo area position longitude setter. More... | |
void | setDistanceA (quint16 d) |
setDistanceA Semi minor axis of the area setter. More... | |
void | setDistanceB (quint16 d) |
setDistanceB Semi major axis of the area setter. More... | |
void | setAngle (quint16 a) |
setAngle Heading to the North of the area setter. More... | |
void | setShape (e_shape s) |
setShape Shape of the area setter. More... | |
QByteArray | toBin () |
toBin Byte array encoder of the destination area. More... | |
QString | toString () |
toString Human readable encoder of the destination area. More... | |
Private Attributes | |
qint32 | m_geoAreaPosLatitude |
qint32 | m_geoAreaPosLongitude |
quint16 | m_distanceA |
quint16 | m_distanceB |
quint16 | m_angle |
e_shape | m_shape |
Definition at line 13 of file DestinationAreaData.h.
The e_shape enum defines the shape types.
Enumerator | |
---|---|
shape_circle | Circular area. |
shape_rectangle | Rectangular area. |
shape_ellipse | Ellipsoidal area. |
Definition at line 19 of file DestinationAreaData.h.
DestinationAreaData::DestinationAreaData | ( | ) |
DestinationAreaData DestinationAreaData constructor.
Definition at line 5 of file DestinationAreaData.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, m_shape, and shape_circle.
DestinationAreaData::DestinationAreaData | ( | char * | data, |
int * | offset | ||
) |
DestinationAreaData DestinationAreaData intialization constructor.
data | Byte array of the DestinationAreaData. |
offset | The offset of the byte array. |
Definition at line 15 of file DestinationAreaData.cpp.
References extractInt(), extractUInt(), m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_shape.
DestinationAreaData::DestinationAreaData | ( | e_shape | shape, |
qint32 | lat, | ||
qint32 | lon, | ||
quint16 | a, | ||
quint16 | b, | ||
quint16 | angle | ||
) |
DestinationAreaData DestinationAreaData intialization constructor.
shape | Shape of the area. |
lat | Latitude of the center of the area. |
lon | Longitude of the center of the area. |
a | Semi minor axis of the area. |
b | Semi major axis of the area. |
angle | Heading to the North of the area. |
Definition at line 25 of file DestinationAreaData.cpp.
References angle(), m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, m_shape, and shape().
DestinationAreaData::DestinationAreaData | ( | ReferencePosition_t | ref | ) |
DestinationAreaData DestinationAreaData intialization constructor.
ref | The destination area. |
Definition at line 35 of file DestinationAreaData.cpp.
References ReferencePosition::latitude, ReferencePosition::longitude, m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, m_shape, ReferencePosition::positionConfidenceEllipse, PosConfidenceEllipse::semiMajorConfidence, PosConfidenceEllipse::semiMajorOrientation, PosConfidenceEllipse::semiMinorConfidence, shape_circle, and shape_ellipse.
|
inline |
angle Heading to the North of the area getter.
Definition at line 77 of file DestinationAreaData.h.
References m_angle.
Referenced by DestinationAreaData(), and gnDataRequestFromDestinationArea().
|
inline |
distanceA Semi minor axis of the area getter.
Definition at line 67 of file DestinationAreaData.h.
References m_distanceA.
Referenced by gnDataRequestFromDestinationArea().
|
inline |
distanceB Semi major axis of the area getter.
Definition at line 72 of file DestinationAreaData.h.
References m_distanceB.
Referenced by gnDataRequestFromDestinationArea().
|
inline |
geoAreaPosLatitude Geo area position latitude getter.
Definition at line 57 of file DestinationAreaData.h.
References m_geoAreaPosLatitude.
Referenced by gnDataRequestFromDestinationArea(), and isDestinationAreaAvailable().
|
inline |
geoAreaPosLongitude Geo area position longitude getter.
Definition at line 62 of file DestinationAreaData.h.
References m_geoAreaPosLongitude.
Referenced by gnDataRequestFromDestinationArea(), and isDestinationAreaAvailable().
|
inline |
setAngle Heading to the North of the area setter.
a | The new heading to the North of the area. |
Definition at line 109 of file DestinationAreaData.h.
References m_angle.
|
inline |
setDistanceA Semi minor axis of the area setter.
d | The new semi minor axis of the area. |
Definition at line 99 of file DestinationAreaData.h.
References m_distanceA.
|
inline |
setDistanceB Semi major axis of the area setter.
d | The new semi major axis of the area. |
Definition at line 104 of file DestinationAreaData.h.
References m_distanceB.
|
inline |
setGeoAreaPosLatitude Geo area position latitude setter.
l | The new geo area position latitude. |
Definition at line 89 of file DestinationAreaData.h.
References m_geoAreaPosLatitude.
|
inline |
setGeoAreaPosLongitude Geo area position longitude setter.
l | The new geo area position longitude. |
Definition at line 94 of file DestinationAreaData.h.
References m_geoAreaPosLongitude.
|
inline |
setShape Shape of the area setter.
s | The new shape of the area. |
Definition at line 114 of file DestinationAreaData.h.
References m_shape.
|
inline |
shape Shape of the area getter.
Definition at line 82 of file DestinationAreaData.h.
References m_shape.
Referenced by DestinationAreaData(), and gnDataRequestFromAppDenmTriggerData().
QByteArray DestinationAreaData::toBin | ( | ) |
toBin Byte array encoder of the destination area.
Definition at line 53 of file DestinationAreaData.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_shape.
Referenced by AppDenmTerminationData::toBin(), AppDenmTriggerData::toBin(), and AppDenmUpdateData::toBin().
QString DestinationAreaData::toString | ( | ) |
toString Human readable encoder of the destination area.
Definition at line 63 of file DestinationAreaData.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_shape.
Referenced by AppDenmTriggerData::toString().
|
private |
Heading to the North of the area.
Definition at line 132 of file DestinationAreaData.h.
Referenced by angle(), DestinationAreaData(), setAngle(), toBin(), and toString().
|
private |
Semi minor axis of the area.
Definition at line 130 of file DestinationAreaData.h.
Referenced by DestinationAreaData(), distanceA(), setDistanceA(), toBin(), and toString().
|
private |
Semi major axis of the area.
Definition at line 131 of file DestinationAreaData.h.
Referenced by DestinationAreaData(), distanceB(), setDistanceB(), toBin(), and toString().
|
private |
Geo area position latitude.
Definition at line 128 of file DestinationAreaData.h.
Referenced by DestinationAreaData(), geoAreaPosLatitude(), setGeoAreaPosLatitude(), toBin(), and toString().
|
private |
Geo area position longitude.
Definition at line 129 of file DestinationAreaData.h.
Referenced by DestinationAreaData(), geoAreaPosLongitude(), setGeoAreaPosLongitude(), toBin(), and toString().
|
private |
Shape of the area.
Definition at line 133 of file DestinationAreaData.h.
Referenced by DestinationAreaData(), setShape(), shape(), toBin(), and toString().