EntityVisualizerTEntityPickTPrimitive Method (PickResult, IEnumerableTPrimitive) |
Given a list of primitives and a
PickResult, returns
the primitives that were picked. The primitives in the list are expected to
contain an entity in their Tag property.
Namespace:
AGI.Foundation.Tracking
Assembly:
AGI.Foundation.Tracking.Graphics (in AGI.Foundation.Tracking.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax protected IEnumerable<TEntity> Pick<TPrimitive>(
PickResult pickResult,
IEnumerable<TPrimitive> primitives
)
where TPrimitive : Primitive
Protected Function Pick(Of TPrimitive As Primitive) (
pickResult As PickResult,
primitives As IEnumerable(Of TPrimitive)
) As IEnumerable(Of TEntity)
protected:
generic<typename TPrimitive>
where TPrimitive : Primitive
IEnumerable<TEntity>^ Pick(
PickResult^ pickResult,
IEnumerable<TPrimitive>^ primitives
)
member Pick :
pickResult : PickResult *
primitives : IEnumerable<'TPrimitive> -> IEnumerable<'TEntity> when 'TPrimitive : Primitive
Parameters
- pickResult
- Type: AGI.Foundation.GraphicsPickResult
The result of the Insight3D pick. - primitives
- Type: System.Collections.GenericIEnumerableTPrimitive
The list of primitives being used by the visualizer. The primitive Tag property should be an entity.
Type Parameters
- TPrimitive
- The type of primitive.
Return Value
Type:
IEnumerableTEntityThe list of picked entities.
Exceptions See Also