Click or drag to resize

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: 19.2.399.0 (19.2.399.0)
Syntax
protected IEnumerable<TEntity> Pick<TPrimitive>(
	PickResult pickResult,
	IEnumerable<TPrimitive> primitives
)
where 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: IEnumerableTEntity
The list of picked entities.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if pickResult is .
ArgumentNullExceptionThrown if primitives is .
See Also