ITS
DestinationAreaData Class Reference

#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
 

Detailed Description

Definition at line 13 of file DestinationAreaData.h.

Member Enumeration Documentation

◆ e_shape

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.

Constructor & Destructor Documentation

◆ DestinationAreaData() [1/4]

DestinationAreaData::DestinationAreaData ( )

◆ DestinationAreaData() [2/4]

DestinationAreaData::DestinationAreaData ( char *  data,
int *  offset 
)

DestinationAreaData DestinationAreaData intialization constructor.

Parameters
dataByte array of the DestinationAreaData.
offsetThe 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.

Here is the call graph for this function:

◆ DestinationAreaData() [3/4]

DestinationAreaData::DestinationAreaData ( e_shape  shape,
qint32  lat,
qint32  lon,
quint16  a,
quint16  b,
quint16  angle 
)

DestinationAreaData DestinationAreaData intialization constructor.

Parameters
shapeShape of the area.
latLatitude of the center of the area.
lonLongitude of the center of the area.
aSemi minor axis of the area.
bSemi major axis of the area.
angleHeading 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().

Here is the call graph for this function:

◆ DestinationAreaData() [4/4]

Member Function Documentation

◆ angle()

quint16 DestinationAreaData::angle ( ) const
inline

angle Heading to the North of the area getter.

Returns
The heading to the North.

Definition at line 77 of file DestinationAreaData.h.

References m_angle.

Referenced by DestinationAreaData(), and gnDataRequestFromDestinationArea().

Here is the caller graph for this function:

◆ distanceA()

quint16 DestinationAreaData::distanceA ( ) const
inline

distanceA Semi minor axis of the area getter.

Returns
The semi minor axis of the area.

Definition at line 67 of file DestinationAreaData.h.

References m_distanceA.

Referenced by gnDataRequestFromDestinationArea().

Here is the caller graph for this function:

◆ distanceB()

quint16 DestinationAreaData::distanceB ( ) const
inline

distanceB Semi major axis of the area getter.

Returns
The semi major axis of the area.

Definition at line 72 of file DestinationAreaData.h.

References m_distanceB.

Referenced by gnDataRequestFromDestinationArea().

Here is the caller graph for this function:

◆ geoAreaPosLatitude()

qint32 DestinationAreaData::geoAreaPosLatitude ( ) const
inline

geoAreaPosLatitude Geo area position latitude getter.

Returns
The geo area position latitude.

Definition at line 57 of file DestinationAreaData.h.

References m_geoAreaPosLatitude.

Referenced by gnDataRequestFromDestinationArea(), and isDestinationAreaAvailable().

Here is the caller graph for this function:

◆ geoAreaPosLongitude()

qint32 DestinationAreaData::geoAreaPosLongitude ( ) const
inline

geoAreaPosLongitude Geo area position longitude getter.

Returns
The geo area position longitude getter.

Definition at line 62 of file DestinationAreaData.h.

References m_geoAreaPosLongitude.

Referenced by gnDataRequestFromDestinationArea(), and isDestinationAreaAvailable().

Here is the caller graph for this function:

◆ setAngle()

void DestinationAreaData::setAngle ( quint16  a)
inline

setAngle Heading to the North of the area setter.

Parameters
aThe new heading to the North of the area.

Definition at line 109 of file DestinationAreaData.h.

References m_angle.

◆ setDistanceA()

void DestinationAreaData::setDistanceA ( quint16  d)
inline

setDistanceA Semi minor axis of the area setter.

Parameters
dThe new semi minor axis of the area.

Definition at line 99 of file DestinationAreaData.h.

References m_distanceA.

◆ setDistanceB()

void DestinationAreaData::setDistanceB ( quint16  d)
inline

setDistanceB Semi major axis of the area setter.

Parameters
dThe new semi major axis of the area.

Definition at line 104 of file DestinationAreaData.h.

References m_distanceB.

◆ setGeoAreaPosLatitude()

void DestinationAreaData::setGeoAreaPosLatitude ( qint32  l)
inline

setGeoAreaPosLatitude Geo area position latitude setter.

Parameters
lThe new geo area position latitude.

Definition at line 89 of file DestinationAreaData.h.

References m_geoAreaPosLatitude.

◆ setGeoAreaPosLongitude()

void DestinationAreaData::setGeoAreaPosLongitude ( qint32  l)
inline

setGeoAreaPosLongitude Geo area position longitude setter.

Parameters
lThe new geo area position longitude.

Definition at line 94 of file DestinationAreaData.h.

References m_geoAreaPosLongitude.

◆ setShape()

void DestinationAreaData::setShape ( e_shape  s)
inline

setShape Shape of the area setter.

Parameters
sThe new shape of the area.

Definition at line 114 of file DestinationAreaData.h.

References m_shape.

◆ shape()

e_shape DestinationAreaData::shape ( ) const
inline

shape Shape of the area getter.

Returns
The shape of the area.

Definition at line 82 of file DestinationAreaData.h.

References m_shape.

Referenced by DestinationAreaData(), and gnDataRequestFromAppDenmTriggerData().

Here is the caller graph for this function:

◆ toBin()

QByteArray DestinationAreaData::toBin ( )

toBin Byte array encoder of the destination area.

Returns
The encoded 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().

Here is the caller graph for this function:

◆ toString()

QString DestinationAreaData::toString ( )

toString Human readable encoder of the destination area.

Returns
The encoded 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().

Here is the caller graph for this function:

Member Data Documentation

◆ m_angle

quint16 DestinationAreaData::m_angle
private

Heading to the North of the area.

Definition at line 132 of file DestinationAreaData.h.

Referenced by angle(), DestinationAreaData(), setAngle(), toBin(), and toString().

◆ m_distanceA

quint16 DestinationAreaData::m_distanceA
private

Semi minor axis of the area.

Definition at line 130 of file DestinationAreaData.h.

Referenced by DestinationAreaData(), distanceA(), setDistanceA(), toBin(), and toString().

◆ m_distanceB

quint16 DestinationAreaData::m_distanceB
private

Semi major axis of the area.

Definition at line 131 of file DestinationAreaData.h.

Referenced by DestinationAreaData(), distanceB(), setDistanceB(), toBin(), and toString().

◆ m_geoAreaPosLatitude

qint32 DestinationAreaData::m_geoAreaPosLatitude
private

Geo area position latitude.

Definition at line 128 of file DestinationAreaData.h.

Referenced by DestinationAreaData(), geoAreaPosLatitude(), setGeoAreaPosLatitude(), toBin(), and toString().

◆ m_geoAreaPosLongitude

qint32 DestinationAreaData::m_geoAreaPosLongitude
private

Geo area position longitude.

Definition at line 129 of file DestinationAreaData.h.

Referenced by DestinationAreaData(), geoAreaPosLongitude(), setGeoAreaPosLongitude(), toBin(), and toString().

◆ m_shape

e_shape DestinationAreaData::m_shape
private

Shape of the area.

Definition at line 133 of file DestinationAreaData.h.

Referenced by DestinationAreaData(), setShape(), shape(), toBin(), and toString().


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