This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkForwardStarEx Interface > INetworkForwardStarEx.QueryTraversableRange Method (ArcObjects .NET 10.5 SDK) |
Returns the range of accessible positions from a query position along an edge element, respective to any existing restrictions along the edge.
[Visual Basic .NET] Public Sub QueryTraversableRange ( _ ByVal Edge As INetworkEdge, _ ByVal queryPosition As Double, _ ByRef fromPosition As Double, _ ByRef toPosition As Double, _ ByRef isFromPositionAccessible As Boolean, _ ByRef isToPositionAccessible As Boolean _ )
[C#] public void QueryTraversableRange ( INetworkEdge Edge, double queryPosition, ref double fromPosition, ref double toPosition, ref bool isFromPositionAccessible, ref bool isToPositionAccessible );
[C++]
HRESULT QueryTraversableRange(
INetworkEdge* Edge,
double queryPosition,
double* fromPosition,
double* toPosition,
VARIANT_BOOL* isFromPositionAccessible,
VARIANT_BOOL* isToPositionAccessible
);
[C++]
Parameters Edge [in]
Edge is a parameter of type INetworkEdge queryPosition [in] queryPosition is a parameter of type double fromPosition [out] fromPosition is a parameter of type double toPosition [out] toPosition is a parameter of type double isFromPositionAccessible [out] isFromPositionAccessible is a parameter of type VARIANT_BOOL isToPositionAccessible [out] isToPositionAccessible is a parameter of type VARIANT_BOOL
If a queried edge element is not completely restricted (as indicated by the INetworkForwardStarEx::get_IsRestricted method), then it may still have partial edge restrictions associated with it. The QueryTraversableRange method may be used to determine the appropriate range of accessibility along that edge from a given query position.
The isFromJunctionAccessible and isToJunctionAccessible return values indicate whether or not the fromPosition and toPosition of the traversable range are also accessible from the current position, respectively. For example, in the graphic above, the isFromPositionAccessible return value will be True and the isToPositionAccessible return value will be False.