C# Класс Axiom.Core.RaySceneQuery

Specializes the SceneQuery class for querying for objects along a ray.
Наследование: SceneQuery, IRaySceneQueryListener
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
lastResults List
maxResults int
ray Axiom.Math.Ray
sortByDistance bool

Открытые методы

Метод Описание
ClearResults ( ) : void

Clears out any cached results from the last query.

Execute ( ) : IList

Executes the query, returning the results back in one list.

This method executes the scene query as configured, gathers the results into one structure and returns a reference to that structure. These results will also persist in this query object until the next query is executed, or ClearResults. A more lightweight version of this method that returns results through a listener is also available.

Execute ( IRaySceneQueryListener listener ) : void

Executes the query and returns each match through a listener interface.

Note that this method does not store the results of the query internally so does not update the 'last result' value. This means that this version of execute is more lightweight and therefore more efficient than the version which returns the results as a collection.

OnQueryResult ( Axiom.Core.MovableObject sceneObject, float distance ) : bool

Приватные методы

Метод Описание
IRaySceneQueryListener ( SceneQuery fragment, float distance ) : bool
RaySceneQuery ( SceneManager creator ) : System

Constructor.

Описание методов

ClearResults() публичный метод

Clears out any cached results from the last query.
public ClearResults ( ) : void
Результат void

Execute() публичный метод

Executes the query, returning the results back in one list.
This method executes the scene query as configured, gathers the results into one structure and returns a reference to that structure. These results will also persist in this query object until the next query is executed, or ClearResults. A more lightweight version of this method that returns results through a listener is also available.
public Execute ( ) : IList
Результат IList

Execute() публичный абстрактный метод

Executes the query and returns each match through a listener interface.
Note that this method does not store the results of the query internally so does not update the 'last result' value. This means that this version of execute is more lightweight and therefore more efficient than the version which returns the results as a collection.
public abstract Execute ( IRaySceneQueryListener listener ) : void
listener IRaySceneQueryListener Listener object to handle the result callbacks.
Результат void

OnQueryResult() публичный метод

public OnQueryResult ( Axiom.Core.MovableObject sceneObject, float distance ) : bool
sceneObject Axiom.Core.MovableObject
distance float
Результат bool

Описание свойств

lastResults защищенное свойство

List of query results from the last execution of this query.
protected List lastResults
Результат List

maxResults защищенное свойство

Maximum results to return when executing the query.
protected int maxResults
Результат int

ray защищенное свойство

Reference to a ray to use for this query.
protected Ray,Axiom.Math ray
Результат Axiom.Math.Ray

sortByDistance защищенное свойство

If true, results returned in the list
protected bool sortByDistance
Результат bool