Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::SceneManager::ShadowCasterSceneQueryListener Class Reference

Inner class to use as callback for shadow caster scene query. More...

`#include <OgreSceneManager.h>`

Inheritance diagram for Ogre::SceneManager::ShadowCasterSceneQueryListener:

[legend]
List of all members.

## Public Methods

| ShadowCasterSceneQueryListener ()
void | prepare (bool lightInFrustum, const PlaneBoundedVolumeList *lightClipVolumes, const Light *light, const Camera *cam, ShadowCasterList *casterList, Real farDistSquared)
bool | queryResult (MovableObject *object)
| Called when a MovableObject is returned by a query.
bool | queryResult (SceneQuery::WorldFragment *fragment)
| Called when a WorldFragment is returned by a query.

## Protected Attributes

ShadowCasterList * | mCasterList
bool | mIsLightInFrustum
const PlaneBoundedVolumeList * | mLightClipVolumeList
const Camera * | mCamera
const Light * | mLight
Real | mFarDistSquared

## Detailed Description

Inner class to use as callback for shadow caster scene query.

Definition at line 387 of file OgreSceneManager.h.

## Constructor & Destructor Documentation

Ogre::SceneManager::ShadowCasterSceneQueryListener::ShadowCasterSceneQueryListener | ( |  | ) |

| Definition at line 397 of file OgreSceneManager.h.

## Member Function Documentation

void Ogre::SceneManager::ShadowCasterSceneQueryListener::prepare | ( | bool | lightInFrustum,
|  | const PlaneBoundedVolumeList * | lightClipVolumes,
|  | const Light * | light,
|  | const Camera * | cam,
|  | ShadowCasterList * | casterList,
|  | Real | farDistSquared
| ) |

| Definition at line 401 of file OgreSceneManager.h. References Ogre::PlaneBoundedVolumeList, and Ogre::Real. Referenced by Ogre::SceneManager::findShadowCastersForLight().

bool Ogre::SceneManager::ShadowCasterSceneQueryListener::queryResult | ( | SceneQuery::WorldFragment * | fragment | ) | `[virtual]`

Called when a WorldFragment is returned by a query.

Remarks:
  The implementor should return 'true' to continue returning objects, or 'false' to abandon any further results from this query.

Implements Ogre::SceneQueryListener.

Definition at line 2764 of file OgreSceneManager.cpp.

bool Ogre::SceneManager::ShadowCasterSceneQueryListener::queryResult | ( | MovableObject * | object | ) | `[virtual]`

Called when a MovableObject is returned by a query.

Remarks:
  The implementor should return 'true' to continue returning objects, or 'false' to abandon any further results from this query.

Implements Ogre::SceneQueryListener.

Definition at line 2713 of file OgreSceneManager.cpp.

References Ogre::Node::_getDerivedPosition(), Ogre::MovableObject::getCastShadows(), Ogre::Camera::getDerivedPosition(), Ogre::MovableObject::getParentNode(), Ogre::Sphere::getRadius(), Ogre::Light::getType(), Ogre::MovableObject::getWorldBoundingBox(), Ogre::MovableObject::getWorldBoundingSphere(), Ogre::Frustum::isVisible(), Ogre::MovableObject::isVisible(), mCamera, mCasterList, mFarDistSquared, mIsLightInFrustum, mLight, mLightClipVolumeList, Ogre::Real, and Ogre::Vector3::squaredLength().

## Member Data Documentation

const Camera* Ogre::SceneManager::ShadowCasterSceneQueryListener::mCamera`[protected]`

| Definition at line 393 of file OgreSceneManager.h. Referenced by queryResult().

ShadowCasterList* Ogre::SceneManager::ShadowCasterSceneQueryListener::mCasterList`[protected]`

| Definition at line 390 of file OgreSceneManager.h. Referenced by queryResult().

Real Ogre::SceneManager::ShadowCasterSceneQueryListener::mFarDistSquared`[protected]`

| Definition at line 395 of file OgreSceneManager.h. Referenced by queryResult().

bool Ogre::SceneManager::ShadowCasterSceneQueryListener::mIsLightInFrustum`[protected]`

| Definition at line 391 of file OgreSceneManager.h. Referenced by queryResult().

const Light* Ogre::SceneManager::ShadowCasterSceneQueryListener::mLight`[protected]`

| Definition at line 394 of file OgreSceneManager.h. Referenced by queryResult().

const PlaneBoundedVolumeList* Ogre::SceneManager::ShadowCasterSceneQueryListener::mLightClipVolumeList`[protected]`

| Definition at line 392 of file OgreSceneManager.h. Referenced by queryResult().

The documentation for this class was generated from the following files:

- OgreSceneManager.h
- OgreSceneManager.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:37 2004