SceneGraph Class Reference#include <sceneGraph.h>
|
Public Member Functions |
| | SceneGraph (bool isClient) |
| | ~SceneGraph () |
| U32 | getStateKey () const |
| LightManager * | getLightManager () |
| Sky * | getCurrentSky () |
| TerrainBlock * | getCurrentTerrain () |
| DecalManager * | getCurrentDecalManager () |
| void | getWaterObjectList (SimpleQueryList &) |
| TextureHandle | getFogTexture () |
| TextureHandle | getFogTextureIntensity () |
| void | findZone (const Point3F &, SceneObject *&, U32 &) |
|
| bool | addObjectToScene (SceneObject *) |
| void | removeObjectFromScene (SceneObject *) |
| void | zoneInsert (SceneObject *) |
| void | zoneRemove (SceneObject *) |
|
| void | registerZones (SceneObject *, U32 numZones) |
| void | unregisterZones (SceneObject *) |
| SceneObject * | getZoneOwner (const U32 zone) |
|
| void | renderScene (const U32 objectMask=0xffffffff) |
| void | scopeScene (const Point3F &scopePosition, const F32 scopeDistance, NetConnection *netConnection) |
|
For objects, valid only during the rendering cycle
|
| const Point3F & | getBaseCameraPosition () const |
| const Point3F & | getCurrCameraPosition () const |
|
| ColorF | getFogColor () const |
| F32 | getFogDistance () const |
| F32 | getVisibleDistance () const |
| F32 | getFogDistanceMod () const |
| F32 | getVisibleDistanceMod () const |
| void | setFogDistance (F32 dist) |
| void | setVisibleDistance (F32 dist) |
| void | setFogColor (ColorF fogColor) |
| void | setFogVolumes (U32 numFogVolumes, FogVolume *fogVolumes) |
| void | getFogVolumes (U32 &numFogVolumes, FogVolume *&fogVolumes) |
| void | buildFogTexture (SceneState *pState) |
| void | buildFogTextureSpecial (SceneState *pState) |
| void | getFogCoordData (F32 &invVisibleDistance, F32 &heightOffset, F32 &invHeightRange) const |
| void | getFogCoordPair (F32 dist, F32 z, F32 &x, F32 &y) const |
| F32 | getFogCoord (F32 dist, F32 z) const |
Static Public Attributes |
| static F32 | smVisibleDistanceMod |
| static bool | useSpecial |
Protected Member Functions |
| void | addRefPoolBlock () |
| SceneObjectRef * | allocateObjectRef () |
| void | freeObjectRef (SceneObjectRef *) |
| void | buildSceneTree (SceneState *, SceneObject *, const U32, const U32, const U32) |
| void | traverseSceneTree (SceneState *pState) |
| void | treeTraverseVisit (SceneObject *, SceneState *, const U32) |
| void | compactZonesCheck () |
| bool | alreadyManagingZones (SceneObject *) const |
| void | rezoneObject (SceneObject *) |
| void | addToWaterList (SceneObject *obj) |
| void | removeFromWaterList (SceneObject *obj) |
Protected Attributes |
| TextureHandle | mFogTexture |
| TextureHandle | mFogTextureIntensity |
| bool | mIsClient |
| bool | mHazeArrayDirty |
| F32 | mInvVisibleDistance |
| F32 | mHeightRangeBase |
| F32 | mHeightOffset |
| F32 | mInvHeightRange |
| U32 | mCurrZoneEnd |
| U32 | mNumActiveZones |
| Point3F | mBaseCameraPosition |
| Point3F | mCurrCameraPosition |
| U32 | mNumFogVolumes |
| FogVolume | mFogVolumes [MaxFogVolumes] |
| F32 | mFogDistance |
| F32 | mVisibleDistance |
| ColorF | mFogColor |
| LightManager | mLightManager |
| Sky * | mCurrSky |
| TerrainBlock * | mCurrTerrain |
| DecalManager * | mCurrDecalManager |
| Vector< SceneObject * > | mWaterList |
| SceneObjectRef * | mFreeRefPool |
| Vector< SceneObjectRef * > | mRefPoolBlocks |
| Vector< ZoneManager > | mZoneManagers |
| Vector< SceneObjectRef * > | mZoneLists |
| | Zone Lists.
|
Static Protected Attributes |
| static const U32 | csmMaxTraversalDepth |
| static U32 | smStateKey |
| static F32 | mHazeArray [FogTextureDistSize] |
| static U32 | mHazeArrayi [FogTextureDistSize] |
| static F32 | mDistArray [FogTextureDistSize] |
| static const U32 | csmRefPoolBlockSize |
Private Member Functions |
| void | setBaseCameraPosition (const Point3F &) |
| void | setCurrCameraPosition (const Point3F &) |
Data Structures |
| struct | ZoneManager |
Constructor & Destructor Documentation
| SceneGraph::SceneGraph |
( |
bool |
isClient |
) |
|
| SceneGraph::~SceneGraph |
( |
|
) |
|
Member Function Documentation
| void SceneGraph::renderScene |
( |
const U32 |
objectMask = 0xffffffff |
) |
|
| const Point3F & SceneGraph::getBaseCameraPosition |
( |
|
) |
const [inline] |
| const Point3F & SceneGraph::getCurrCameraPosition |
( |
|
) |
const [inline] |
| ColorF SceneGraph::getFogColor |
( |
|
) |
const [inline] |
| F32 SceneGraph::getFogDistance |
( |
|
) |
const [inline] |
| F32 SceneGraph::getVisibleDistance |
( |
|
) |
const [inline] |
| F32 SceneGraph::getFogDistanceMod |
( |
|
) |
const [inline] |
| F32 SceneGraph::getVisibleDistanceMod |
( |
|
) |
const [inline] |
| void SceneGraph::setFogDistance |
( |
F32 |
dist |
) |
|
| void SceneGraph::setVisibleDistance |
( |
F32 |
dist |
) |
|
| void SceneGraph::getFogVolumes |
( |
U32 & |
numFogVolumes, |
|
|
FogVolume *& |
fogVolumes | |
|
) |
| | [inline] |
| void SceneGraph::getFogCoordData |
( |
F32 & |
invVisibleDistance, |
|
|
F32 & |
heightOffset, |
|
|
F32 & |
invHeightRange | |
|
) |
| | const [inline] |
| void SceneGraph::getFogCoordPair |
( |
F32 |
dist, |
|
|
F32 |
z, |
|
|
F32 & |
x, |
|
|
F32 & |
y | |
|
) |
| | const [inline] |
| F32 SceneGraph::getFogCoord |
( |
F32 |
dist, |
|
|
F32 |
z | |
|
) |
| | const [inline] |
| U32 SceneGraph::getStateKey |
( |
|
) |
const [inline] |
| void SceneGraph::setBaseCameraPosition |
( |
const Point3F & |
|
) |
[inline, private] |
| void SceneGraph::setCurrCameraPosition |
( |
const Point3F & |
|
) |
[inline, private] |
| void SceneGraph::addRefPoolBlock |
( |
|
) |
[protected] |
| SceneObjectRef * SceneGraph::allocateObjectRef |
( |
|
) |
[inline, protected] |
| Sky* SceneGraph::getCurrentSky |
( |
|
) |
[inline] |
| DecalManager* SceneGraph::getCurrentDecalManager |
( |
|
) |
[inline] |
| TextureHandle SceneGraph::getFogTexture |
( |
|
) |
[inline] |
| TextureHandle SceneGraph::getFogTextureIntensity |
( |
|
) |
[inline] |
| void SceneGraph::traverseSceneTree |
( |
SceneState * |
pState |
) |
[protected] |
| void SceneGraph::compactZonesCheck |
( |
|
) |
[protected] |
| bool SceneGraph::alreadyManagingZones |
( |
SceneObject * |
|
) |
const [protected] |
Field Documentation
Zone Lists.
- Note:
- The object refs in this are somewhat singular in that the object pointer does not point to a referenced object, but the owner of that zone...
|