C# 클래스 Axiom.Core.RegionSceneQuery

Abstract class defining a query which returns single results from within a region.
This class is simply a generalization of the subtypes of query that return a set of individual results in a region. See the SceneQuery class for abstract information, and subclasses for the detail of each query type.
상속: SceneQuery, ISceneQueryListener
파일 보기 프로젝트 열기: WolfgangSt/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
lastResult SceneQueryResult

공개 메소드들

메소드 설명
ClearResults ( ) : void

Clears out any cached results from the last query.

Execute ( ) : SceneQueryResult

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 is called. An more lightweight version of this method that returns results through a listener is also available.

Execute ( ISceneQueryListener 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 fragment ) : bool

Self-callback in order to deal with execute which returns collection.

OnQueryResult ( Axiom.Core.MovableObject sceneObject ) : bool

Self-callback in order to deal with execute which returns collection.

비공개 메소드들

메소드 설명
RegionSceneQuery ( SceneManager creator ) : System

Default 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 is called. An more lightweight version of this method that returns results through a listener is also available.
public Execute ( ) : SceneQueryResult
리턴 SceneQueryResult

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 ( ISceneQueryListener listener ) : void
listener ISceneQueryListener
리턴 void

OnQueryResult() 공개 메소드

Self-callback in order to deal with execute which returns collection.
public OnQueryResult ( Axiom fragment ) : bool
fragment Axiom
리턴 bool

OnQueryResult() 공개 메소드

Self-callback in order to deal with execute which returns collection.
public OnQueryResult ( Axiom.Core.MovableObject sceneObject ) : bool
sceneObject Axiom.Core.MovableObject
리턴 bool

프로퍼티 상세

lastResult 보호되어 있는 프로퍼티

List of results from the last non-listener query.
protected SceneQueryResult,Axiom.Core lastResult
리턴 SceneQueryResult