![]() |
VR-Forces 4.8 Class Documentation
|
LightManager class which allows creation/deletion of lights. More...
Public Member Functions | |
| DtLightManager (const AxisAlignedBoundingBox_64 &box, size_t depth) | |
| CTOR. More... | |
| virtual | ~DtLightManager () |
| DTOR. More... | |
| virtual const VectorLights & | allLights (void) const |
| Get all the lights that have been registered/created. More... | |
| virtual bool | lightExists (const DtLight *pLight) const |
| Find if a light exists in this manager. More... | |
| virtual void | getClosestLights (VectorLights &closestLights, const Vector3_64 &vPosition, size_t n) |
| Get the 'n' closest lights to vPosition. Must be called after LightManager::Update. More... | |
| virtual const VectorLights & | frustumAffectingLights (void) const |
| Get all the lights that affect the view frustum. Must be called after LightManager::Update. More... | |
| virtual void | setlodDistance (float fDistance) |
| virtual float | lodDistance (void) const |
| virtual float | lodDistanceSquared (void) const |
| virtual void | initOctree (const AxisAlignedBoundingBox_64 &box) |
| virtual void | lightUpdated (const DtLight *pLight) |
| virtual void | lightBoundsUpdated (const DtLight *pLight) |
| virtual void | lightDestroyed (const DtLight *pLight) |
| virtual void | connectSignals (DtLight *pSceneNode) |
| virtual void | disconnectSignals (const DtLight *pLight) |
| virtual void | createOctreeNode (DtLight *pLight) |
| virtual void | destroyOctreeNode (DtLight *pLight) |
| virtual OctreeNode_64 * | octreeNode (const DtLight *pLight) const |
| virtual void | findVisibleObjects (Camera_64 *pCamera) |
| virtual void | findVisibleObjects (Frustum_64 *pCamera, const Vector3_64 &vRefPosition) |
| virtual DtLight * | createLight (LightType lightType) |
| create/destroy/get lights More... | |
| virtual void | destroyLight (DtLight *pLight) |
| virtual size_t | numLights (void) const |
| virtual DtLight * | light (size_t index) |
| virtual void | update (Camera_64 *pCamera) |
| Call these before calling either of the 2 queries below. More... | |
| virtual void | update (Frustum_64 *pFrustum, const Vector3_64 &vRefPosition) |
Protected Member Functions | |
| DtLightManager () | |
Protected Attributes | |
| ListLights | myLights |
| bool | mybVectorLightsdirty |
| VectorLights | myVectorLights |
| Octree_64 * | myOctree |
| Octree_64::NodeVector | myVisibleOctreeNodes |
| VectorLights | myFrustumAffectingLights |
| VectorLights | myFrustumAffectingLightsSortingScratchPad |
| float | myLODDistance |
| tbb::mutex | myOctreeMutex |
LightManager class which allows creation/deletion of lights.
| makVrv::DtLightManager::DtLightManager | ( | const AxisAlignedBoundingBox_64 & | box, |
| size_t | depth | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
inlineprotected |
create/destroy/get lights
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get all the lights that have been registered/created.
Find if a light exists in this manager.
|
virtual |
Call these before calling either of the 2 queries below.
|
virtual |
|
virtual |
Get the 'n' closest lights to vPosition. Must be called after LightManager::Update.
|
virtual |
Get all the lights that affect the view frustum. Must be called after LightManager::Update.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |