PixelLightAPI
.
|
Abstract scene query class. More...
#include <SceneQuery.h>
Public Types | |
enum | EFlags { Recursive = 1<<0, StopQuery = 1<<1 } |
Flags. More... | |
Public Member Functions | |
pl_class (PLS_RTTI_EXPORT, SceneQuery,"PLScene", PLCore::Object,"Abstract scene query class") pl_signal_2(SignalSceneNode | |
PLS_API SceneContext * | GetSceneContext () const |
Returns the scene context the scene query is in. | |
SceneContainer & | GetSceneContainer () const |
Returns the scene container this query operates on. | |
PLCore::uint32 | GetFlags () const |
Returns the flags. | |
void | SetFlags (PLCore::uint32 nFlags=Recursive) |
Sets the flags. | |
void | Stop () |
Stops the currently running query. | |
virtual bool | PerformQuery ()=0 |
Performs the query. | |
Public Attributes | |
SceneQuery SceneNode A scene node was touched during the query Event causing scene query and found scene node as | parameters |
Protected Member Functions | |
PLS_API | SceneQuery () |
Constructor. | |
virtual PLS_API | ~SceneQuery () |
Destructor. | |
Protected Attributes | |
PLCore::uint32 | m_nFlags |
Abstract scene query class.
Flags.
Recursive |
Take sub scene containers into account |
StopQuery |
Stop the currently running query (removed within PerformQuery() on start automatically) |
Reimplemented in PLScene::SQByClassName.
PLS_API PLScene::SceneQuery::SceneQuery | ( | ) | [protected] |
Constructor.
virtual PLS_API PLScene::SceneQuery::~SceneQuery | ( | ) | [protected, virtual] |
Destructor.
PLScene::SceneQuery::pl_class | ( | PLS_RTTI_EXPORT | , |
SceneQuery | , | ||
"PLScene" | , | ||
PLCore::Object | , | ||
"Abstract scene query class" | |||
) |
PLS_API SceneContext* PLScene::SceneQuery::GetSceneContext | ( | ) | const |
Returns the scene context the scene query is in.
SceneContainer & PLScene::SceneQuery::GetSceneContainer | ( | ) | const [inline] |
Returns the scene container this query operates on.
PLCore::uint32 PLScene::SceneQuery::GetFlags | ( | ) | const [inline] |
Returns the flags.
void PLScene::SceneQuery::SetFlags | ( | PLCore::uint32 | nFlags = Recursive | ) | [inline] |
Sets the flags.
[in] | nFlags | Flags (see EFlags) |
void PLScene::SceneQuery::Stop | ( | ) | [inline] |
Stops the currently running query.
virtual bool PLScene::SceneQuery::PerformQuery | ( | ) | [pure virtual] |
Performs the query.
Implemented in PLScene::SQCull, PLScene::SQByClassName, PLScene::SQByName, PLScene::SQAABoundingBox, PLScene::SQSphere, PLScene::SQLine, PLScene::SQPlaneSet, PLScene::SQPoint, and PLScene::SQEnumerate.
SceneQuery SceneNode A scene node was touched during the query Event causing scene query and found scene node as PLScene::SceneQuery::parameters |
PLCore::uint32 PLScene::SceneQuery::m_nFlags [protected] |
Flags (see EFlags)
|