org.ogre4j
Interface IRaySceneQuery

All Superinterfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, INativeObject, IRaySceneQueryListener, ISceneCtlAllocatedObject, ISceneQuery
All Known Subinterfaces:
IDefaultRaySceneQuery
All Known Implementing Classes:
DefaultRaySceneQuery, RaySceneQuery

public interface IRaySceneQuery
extends INativeObject, ISceneQuery, IRaySceneQueryListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.ISceneQuery
ISceneQuery.IWorldFragment
 
Method Summary
 void clearResults()
          Clears the results of the last query execution.
 IRaySceneQueryResult execute()
          Executes the query, returning the results back in one list.
 void execute(IRaySceneQueryListener listener)
          Executes the query and returns each match through a listener interface.
 IRaySceneQueryResult getLastResults()
          Gets the results of the last query that was run using this object, provided the query was executed using the collection-returning version of execute.
 int getMaxResults()
          Gets the maximum number of results returned from the query (only relevant if results are being sorted)
 IRay getRay()
          Gets the ray which is to be used for this query.
 boolean getSortByDistance()
          Gets whether the results are sorted by distance.
 boolean queryResult(IMovableObject obj, float distance)
          Self-callback in order to deal with execute which returns collection.
 boolean queryResult(ISceneQuery.IWorldFragment fragment, float distance)
          Self-callback in order to deal with execute which returns collection.
 void setRay(IRay ray)
          Sets the ray which is to be used for this query.
 void setSortByDistance(boolean sort, int maxresults)
          Sets whether the results of this query will be sorted by distance along the ray.
 
Methods inherited from interface org.ogre4j.ISceneQuery
getQueryMask, getQueryTypeMask, getSupportedWorldFragmentTypes, getWorldFragmentType, setQueryMask, setQueryTypeMask, setWorldFragmentType
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setRay

void setRay(IRay ray)
Sets the ray which is to be used for this query.


getRay

IRay getRay()
Gets the ray which is to be used for this query.


setSortByDistance

void setSortByDistance(boolean sort,
                       int maxresults)
Sets whether the results of this query will be sorted by distance along the ray.


getSortByDistance

boolean getSortByDistance()
Gets whether the results are sorted by distance.


getMaxResults

int getMaxResults()
Gets the maximum number of results returned from the query (only relevant if results are being sorted)


execute

IRaySceneQueryResult execute()
Executes the query, returning the results back in one list.


execute

void execute(IRaySceneQueryListener listener)
Executes the query and returns each match through a listener interface.


getLastResults

IRaySceneQueryResult getLastResults()
Gets the results of the last query that was run using this object, provided the query was executed using the collection-returning version of execute.


clearResults

void clearResults()
Clears the results of the last query execution.


queryResult

boolean queryResult(IMovableObject obj,
                    float distance)
Self-callback in order to deal with execute which returns collection.

Specified by:
queryResult in interface IRaySceneQueryListener

queryResult

boolean queryResult(ISceneQuery.IWorldFragment fragment,
                    float distance)
Self-callback in order to deal with execute which returns collection.

Specified by:
queryResult in interface IRaySceneQueryListener


Copyright © 2007 netAllied GmbH. All Rights Reserved.