An interface that can enumerate hits in an IGraph of a given type for a certain position in world coordinates.
Inheritance Hierarchy
Members
No filters for this type
Methods
Yields an enumerable that enumerates the hits for a given world coordinate.
Yields an enumerable that enumerates the hits for a given world coordinate.
It is safe to cast the return values to the types indicated by
filter. If no filter is specified, any IModelItem could be returned.abstract
Parameters
- context: IInputModeContext
- The context in which to perform the hit testing.
- location: Pointconversion
- the coordinates in the world coordinate system
- filter?: GraphItemTypesconversion
- An optional filter of the type of items to test and return. ALL if not specified.
Return Value
- IEnumerable<IModelItem>
- an enumerable that yields hit items of the requested type at the given coordinates
Static Methods
create
(enumerateHits: function(IInputModeContext, Point, GraphItemTypes): IEnumerable<IModelItem>): IHitTesterstaticCreates an implementation of the interface IHitTester by using the given function as implementation for its enumerateHits method.
create
(enumerateHits: function(IInputModeContext, Point, GraphItemTypes): IEnumerable<IModelItem>): IHitTesterstatic
Creates an implementation of the interface IHitTester by using the given function as implementation for its enumerateHits method.
static
Parameters
- enumerateHits: function(IInputModeContext, Point, GraphItemTypes): IEnumerable<IModelItem>
- A function for IHitTester's single abstract method enumerateHits.
Return Value
- IHitTester
- An instance of the IHitTester interface based on the given function.