NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
IPositionFixing Class Referenceabstract

Position fixing. More...

#include <vessels_interface.h>

Inheritance diagram for IPositionFixing:
ISDKComponent

Public Member Functions

virtual SDKResult SDK_CALLTYPE GetAvailableTechnique (PosFixTechnique &technique) const =0 throw ()
 Returns the best available fixing technique. More...
 
virtual SDKResult SDK_CALLTYPE CalculateFixedPosition (const SDKTime &time, const SDKGeoPoint &dr_pos, SDKGeoPoint &fixed_pos, FixAdvice &advice, PosFixTechnique &technique)=0 throw ()
 Calculates the fixed position. More...
 
virtual SDKResult SDK_CALLTYPE AcceptFixedPosition ()=0 throw ()
 Accept previously calculated fixed position. More...
 
virtual SDKResult SDK_CALLTYPE GetConfidenceEllipse (double &a, double &b, double &alpha)=0 throw ()
 Returns the confidence ellipse parameters (if available) for the last observation. More...
 
virtual SDKResult SDK_CALLTYPE GetConfidenceCircle (double &r)=0 throw ()
 Returns the radius of confidence circle (if available) for the last observation. More...
 
virtual SDKResult SDK_CALLTYPE AddBearing (const SDKTime &time, const SDKGeoPoint &pos_from, double bearing, const SDKGeoPoint &curr_pos, double bearing_error, SDKUInt16 &ref_point_id)=0 throw ()
 Adds bearing data for one LOP. More...
 
virtual SDKResult SDK_CALLTYPE AddRunningBearing (SDKUInt16 ref_point_id, const SDKTime &time, double bearing, const SDKGeoPoint &curr_pos, double bearing_error)=0 throw ()
 Adds bearing data for the later LOP (Running fix). More...
 
virtual SDKResult SDK_CALLTYPE AddDistance (const SDKTime &time, const SDKGeoPoint &pos_from, double distance, const SDKGeoPoint &curr_pos, double distance_error, SDKUInt16 &ref_point_id)=0 throw ()
 Adds distance data for one LOP. More...
 
virtual SDKResult SDK_CALLTYPE AddRunningDistance (SDKUInt16 ref_point_id, const SDKTime &time, double distance, const SDKGeoPoint &curr_pos, double distance_error)=0 throw ()
 Adds distance data for the later LOP (Running fix). More...
 
virtual SDKResult SDK_CALLTYPE AddBearingDistance (const SDKTime &time, const SDKGeoPoint &pos_from, double bearing, double distance, const SDKGeoPoint &curr_pos, double bearing_error, double distance_error, SDKUInt16 &ref_point_id)=0 throw ()
 Adds bearing and distance data for one LOP. More...
 
virtual SDKResult SDK_CALLTYPE Clear ()=0 throw ()
 Clears stored LOPs.
 
virtual SDKResult SDK_CALLTYPE GetPositionFixingWks (IWorkspace **wks)=0 throw ()
 Returns the pointer to the IWorkspace interface. More...
 
- Public Member Functions inherited from ISDKComponent
virtual SDKAtomicRefCount SDK_CALLTYPE AddRef () const =0 throw ()
 Increments the reference count for an interface on a component.

 
virtual SDKAtomicRefCount SDK_CALLTYPE Release () const =0 throw ()
 Decrements the reference count for an interface on a component.
 
virtual SDKResult SDK_CALLTYPE GetInterface (const InterfaceId &id, void **obj_ptr)=0 throw ()
 Returns pointers to the supported interfaces on a component.
 
template<typename _Itf >
SDKResult GetInterface (_Itf **obj_ptr) throw ()
 Returns pointers to the supported interfaces on a component.
 

Detailed Description

Position fixing.

Member Function Documentation

◆ GetAvailableTechnique()

virtual SDKResult SDK_CALLTYPE GetAvailableTechnique ( PosFixTechnique &  technique) const
throw (
)
pure virtual

Returns the best available fixing technique.

Parameters
[out]techniqueUsed position fixing technique or kPosFixTechnique_none if no fixing technique is available.
Returns
SDKResult

◆ CalculateFixedPosition()

virtual SDKResult SDK_CALLTYPE CalculateFixedPosition ( const SDKTime &  time,
const SDKGeoPoint &  dr_pos,
SDKGeoPoint &  fixed_pos,
FixAdvice &  advice,
PosFixTechnique &  technique 
)
throw (
)
pure virtual

Calculates the fixed position.

Parameters
[in]timeTime zero for the observation.
[in]dr_posCurrent (DR) position.
[out]fixed_posFixed position.
[out]adviceAdvice to accept or not the fixed position.
[out]techniqueUsed position fixing technique or kPosFixTechnique_none if no fixing technique is available.
Returns
SDKResult

◆ AcceptFixedPosition()

virtual SDKResult SDK_CALLTYPE AcceptFixedPosition ( )
throw (
)
pure virtual

Accept previously calculated fixed position.

Returns
SDKResult

◆ GetConfidenceEllipse()

virtual SDKResult SDK_CALLTYPE GetConfidenceEllipse ( double &  a,
double &  b,
double &  alpha 
)
throw (
)
pure virtual

Returns the confidence ellipse parameters (if available) for the last observation.

Parameters
[out]aSemi-major axis of ellipse (in NM).
[out]bSemi-minor axis of ellipse (in NM).
[out]alphaOrientation of semi-major axis (in degrees).
Returns
false if confidence ellipse is not available.

◆ GetConfidenceCircle()

virtual SDKResult SDK_CALLTYPE GetConfidenceCircle ( double &  r)
throw (
)
pure virtual

Returns the radius of confidence circle (if available) for the last observation.

Parameters
[out]rRadius of confidence circle (in NM).
Returns
false if confidence circle is not available.

◆ AddBearing()

virtual SDKResult SDK_CALLTYPE AddBearing ( const SDKTime &  time,
const SDKGeoPoint &  pos_from,
double  bearing,
const SDKGeoPoint &  curr_pos,
double  bearing_error,
SDKUInt16 &  ref_point_id 
)
throw (
)
pure virtual

Adds bearing data for one LOP.

Parameters
[in]timeTime stamp.
[in]pos_fromPosition of reference point.
[in]bearingBearing to the reference point.
[in]curr_posCurrent vessel position at the measurement moment.
[in]bearing_error(optional) Bearing parameter error (in degrees).
[out]ref_point_idReference point identifier (>= 1), 0 if failed to add LOP
Returns
SDKResult

◆ AddRunningBearing()

virtual SDKResult SDK_CALLTYPE AddRunningBearing ( SDKUInt16  ref_point_id,
const SDKTime &  time,
double  bearing,
const SDKGeoPoint &  curr_pos,
double  bearing_error 
)
throw (
)
pure virtual

Adds bearing data for the later LOP (Running fix).

Parameters
[in]ref_point_idID of reference point.
[in]timeTime stamp.
[in]bearingLater bearing to the reference point.
[in]curr_posCurrent vessel position at the measurement moment.
[in]bearing_error(optional) Bearing parameter error (in degrees).
Returns
false if failed to add later LOP.

◆ AddDistance()

virtual SDKResult SDK_CALLTYPE AddDistance ( const SDKTime &  time,
const SDKGeoPoint &  pos_from,
double  distance,
const SDKGeoPoint &  curr_pos,
double  distance_error,
SDKUInt16 &  ref_point_id 
)
throw (
)
pure virtual

Adds distance data for one LOP.

Parameters
[in]timeTime stamp.
[in]pos_fromPosition of reference point.
[in]distanceDistance to the reference point (in NM).
[in]curr_posCurrent vessel position at the measurement moment.
[in]distance_error(optional) Distance parameter error (in NM).
[out]ref_point_idReference point identifier (>= 1), 0 if failed to add LOP
Returns
SDKResult

◆ AddRunningDistance()

virtual SDKResult SDK_CALLTYPE AddRunningDistance ( SDKUInt16  ref_point_id,
const SDKTime &  time,
double  distance,
const SDKGeoPoint &  curr_pos,
double  distance_error 
)
throw (
)
pure virtual

Adds distance data for the later LOP (Running fix).

Parameters
[in]idID of the added before LOP.
[in]timeTime stamp.
[in]distanceLater distance to the reference point (in NM).
[in]curr_posCurrent vessel position at the measurement moment.
[in]distance_error(optional) Distance parameter error (in NM).
Returns
false if failed to add later LOP.

◆ AddBearingDistance()

virtual SDKResult SDK_CALLTYPE AddBearingDistance ( const SDKTime &  time,
const SDKGeoPoint &  pos_from,
double  bearing,
double  distance,
const SDKGeoPoint &  curr_pos,
double  bearing_error,
double  distance_error,
SDKUInt16 &  ref_point_id 
)
throw (
)
pure virtual

Adds bearing and distance data for one LOP.

Parameters
[in]timeTime stamp.
[in]pos_fromPosition of reference point.
[in]bearingBearing to the reference point.
[in]distanceDistance to the reference point.
[in]curr_posCurrent vessel position at the measurement moment.
[in]bearing_error(optional) Bearing error (in degrees).
[in]distance_error(optional) Distance error (in NM).
[out]ref_point_idReference point identifier (>= 1), 0 if failed to add LOP
Returns
SDKResult

◆ GetPositionFixingWks()

virtual SDKResult SDK_CALLTYPE GetPositionFixingWks ( IWorkspace **  wks)
throw (
)
pure virtual

Returns the pointer to the IWorkspace interface.

Parameters
[out]wksAddress of a variable that receives the pointer to the IWorkspace interface.
Returns
kSDKResult_Succeeded

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