ENCX SDK  5.6.0.1
Public Member Functions | Properties | List of all members
IRouteCheck Interface Reference

Properties and methods for ENCX::RouteCheck. More...

import"encxcom.idl";

Inheritance diagram for IRouteCheck:
Inheritance graph
[legend]

Public Member Functions

HRESULT Check ([in] IGeoPoints *geoPoints, [in] enum GeoLineType lineType, [in] double safetyContourMetres, [in] double safetyDistanceMetres, [in] IS57Manager *manager, [out, retval] BSTR *xml)
 Check route safety. More...
 
HRESULT BeginCheck ([in] IGeoPoints *geoPoints, [in] enum GeoLineType lineType, [in] double safetyContourMetres, [in] double safetyDistanceMetres, [in] IS57Manager *manager)
 Starts checking the route on a background thread and returns at once. More...
 
HRESULT CancelCheck ()
 Cancels the check started by BeginCheck. Nothing is reported for it. More...
 

Properties

VARIANT_BOOL CheckLinesWithinSafetyDistance [get, set]
 Report line features that the route passes within the safety distance of, without crossing them. Off by default. More...
 
VARIANT_BOOL CheckAreasWithinSafetyDistance [get, set]
 Report area features that the route passes within the safety distance of, without entering them. Off by default. More...
 
VARIANT_BOOL Checking [get]
 Whether a check started by BeginCheck has yet to be reported or cancelled. More...
 

Detailed Description

Properties and methods for ENCX::RouteCheck.

Definition at line 3905 of file encxcom.idl.

Member Function Documentation

◆ BeginCheck()

HRESULT IRouteCheck::BeginCheck ( [in] IGeoPoints *  geoPoints,
[in] enum GeoLineType  lineType,
[in] double  safetyContourMetres,
[in] double  safetyDistanceMetres,
[in] IS57Manager *  manager 
)

Starts checking the route on a background thread and returns at once.

The result is reported by _IRouteCheckEvents::OnCheckComplete, or _IRouteCheckEvents::OnCheckFailed, on the thread that called BeginCheck, which must run a message loop. Starting another check cancels this one, and nothing is reported for a cancelled check, so only the latest check's result is ever reported. The manager is kept alive until the check has finished, even if this RouteCheck is released first. CheckLinesWithinSafetyDistance and CheckAreasWithinSafetyDistance are read when the check starts.

◆ CancelCheck()

HRESULT IRouteCheck::CancelCheck ( )

Cancels the check started by BeginCheck. Nothing is reported for it.

◆ Check()

HRESULT IRouteCheck::Check ( [in] IGeoPoints *  geoPoints,
[in] enum GeoLineType  lineType,
[in] double  safetyContourMetres,
[in] double  safetyDistanceMetres,
[in] IS57Manager *  manager,
[out, retval] BSTR *  xml 
)

Check route safety.

Property Documentation

◆ CheckAreasWithinSafetyDistance

VARIANT_BOOL IRouteCheck::CheckAreasWithinSafetyDistance
getset

Report area features that the route passes within the safety distance of, without entering them. Off by default.

See CheckLinesWithinSafetyDistance.

◆ Checking

VARIANT_BOOL IRouteCheck::Checking
get

Whether a check started by BeginCheck has yet to be reported or cancelled.

◆ CheckLinesWithinSafetyDistance

VARIANT_BOOL IRouteCheck::CheckLinesWithinSafetyDistance
getset

Report line features that the route passes within the safety distance of, without crossing them. Off by default.

Before 5.6 this and CheckAreasWithinSafetyDistance applied the other way round from their names.