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

Separate SceneQuery class to query for pairs of objects which are possibly intersecting one another.
This SceneQuery subclass considers the whole world and returns pairs of objects which are close enough to each other that they may be intersecting. Because of this slightly different focus, the return types and listener interface are different for this class.
Наследование: SceneQuery, IIntersectionSceneQueryListener
Показать файл Открыть проект

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

Свойство Тип Описание
lastResults IntersectionSceneQueryResult

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

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

Clears out any cached results from the last query.

Execute ( ) : IntersectionSceneQueryResult

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 ( IIntersectionSceneQueryListener 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.

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

Метод Описание
Axiom ( Axiom.Core.MovableObject first, Axiom.Core.MovableObject second ) : bool
Axiom ( Axiom.Core.MovableObject obj, SceneQuery fragment ) : bool
IntersectionSceneQuery ( 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 ( ) : IntersectionSceneQueryResult
Результат IntersectionSceneQueryResult

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 ( IIntersectionSceneQueryListener listener ) : void
listener IIntersectionSceneQueryListener Listener object to handle the result callbacks.
Результат void

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

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

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