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
파일 보기 프로젝트 열기: WolfgangSt/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
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