An implementation of the IObstacleProvider interface that uses the edges and nodes of an IGraph as obstacles.
Implements
- I
Remarks
The BridgeManager then calculates bridges for edge paths that cross these obstacles.
This class can be used to add bridge support via the BridgeManager to a rendered IGraph.
See Also
Developer's Guide
API
- addObstacleProvider, BridgeManager, IObstacleProvider
Members
Show:
Properties
Gets or sets a value indicating whether to query the edges for an IObstacleProvider implementation.
Gets or sets a value indicating whether to query the edges for an IObstacleProvider implementation.
The default is
true.final
Gets or sets a value indicating whether to query the nodes for an IObstacleProvider implementation.
Gets or sets a value indicating whether to query the nodes for an IObstacleProvider implementation.
final
Property Value
true if nodes should be queried at all; false otherwise. The default is false.See Also
Developer's Guide
Methods
Helper method that retrieves the IGraph to use from the context
Helper method that retrieves the IGraph to use from the
contextprotected
Parameters
- context: IRenderContext
- The context to retrieve the implementation from.
Return Value
This method will depend on the queryEdges and queryNodes property to query the items for an implementation of IObstacleProvider and concatenate all resulting GeneralPath obstacles into one path that will then be returned.
Parameters
- context: IRenderContext
- The context where the obstacles are queried for.
Return Value
- GeneralPath
- A path that is the concatenated path of all obstacles for the given context.