ArcObjects Library Reference (GeoDatabase)  

IForwardStar.QueryAtTurn Method

Returns the turn through which the index'th adjacent edge found with FindAdjacent passes, and the weight value of the turn.

[Visual Basic .NET]
Public Sub QueryAtTurn ( _
    ByVal Index As Integer, _
    ByRef adjacentTurnEID As Integer, _
    ByRef adjacentTurnWeightValue As Object _
)
[C#]
public void QueryAtTurn (
    int Index,
    ref int adjacentTurnEID,
    ref object adjacentTurnWeightValue
);
[C++]
HRESULT QueryAtTurn(
  long Index,
  long* adjacentTurnEID,
  VARIANT* adjacentTurnWeightValue
);
[C++]

Parameters

Index [in]   Index is a parameter of type long adjacentTurnEID [out]   adjacentTurnEID is a parameter of type long adjacentTurnWeightValue [out]   adjacentTurnWeightValue is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

QueryAtTurn returns the nth turn element and weight as you traverse from the fromEdgeID specified in IForwardStar::FindAdjacent to the nth adjacent edge.

Remarks

A turn represents a movement between two adjacent edges, the from-edge and the to-edge. If you are querying turns, you must specify the fromEdgeEID in the IForwardStar::FindAdjancent request. This is from-edge of the turn.

Index is a number between 0 and n-1, where n is the number of adjacent edges returned by FindAdjacent. adjacentTurnWeightValue is the value of the weight specified in the turnWeight parameter of INetwork::CreateForwardStar.
 
NOTE: Since turns in networks are not implemented, this method is not implemented.

See Also

IForwardStar Interface | IForwardStar.QueryAtTurn Method | IForwardStar.QueryAtTurns Method | IForwardStar.QueryAdjacentJunctions Method | IForwardStar.QueryAdjacentEdge Method | INetwork.CreateForwardStar Method | IForwardStar.QueryAdjacentJunction Method | IForwardStar.QueryAdjacentEdges Method | IForwardStar.FindAdjacent Method | IForwardStar.Network Property