Tesla Graphics Engine Documentation (January 2012)
PickQuery Class
TeslaTesla.BoundingPickQuery
Query class used to accumulate pick results and then sort them. Picking involves using an array that is cast into a scene to test for intersections with objects - usually bounding volumes or primitive (triangle) meshes.
Declaration Syntax
C#
public class PickQuery
Members
All Members Constructors Methods Properties



Icon Member Description
PickQuery()()()()
Creates a new PickQuery object.

PickQuery(Boolean)
Creates a new PickQuery object.

AddPick(Ray, IPickable)
Adds a ray and target to test an intersection. If the target is pickable, and an intersection exists, the records are added to the query.

Clear()()()()
Clear all pick results from the query.

ClosestPick
Gets the closest pick result, if it exists.

Count
Gets the number of pick results contained by the query.

EnablePrimitivePicking
Gets or sets if primitive picking should be enabled. If enabled and a ray is tested successfully against an IPickable's bounding volume, a finer ray intersection test is asked to be conducted upon the IPickable's primitives. By default this value is false.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FarthestPick
Gets the farthest pick result, if it exists.

Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Item[([( Int32])])
Gets a pick result by index.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Sort()()()()
Sort all picks in the query based on their distances. If primitive picking is enabled, the primitive intersections are used, otherwise the bounding intersections are used to sort.

Sort(Boolean)
Sort all picks, either by the primitive intersections or bounding intersections.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
PickQuery

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)