#include <llvolumemgr.h>
Inheritance diagram for LLVolumeLODGroup:
Public Types | |
NUM_LODS = 4 | |
enum | { NUM_LODS = 4 } |
Public Member Functions | |
LLVolumeLODGroup (const LLVolumeParams ¶ms) | |
BOOL | derefLOD (LLVolume *volumep) |
LLVolume * | getLOD (const S32 detail) |
const LLVolumeParams & | getParams () const |
F32 | dump () |
Static Public Member Functions | |
static S32 | getDetailFromTan (const F32 tan_angle) |
static F32 | getVolumeScaleFromDetail (const S32 detail) |
Protected Member Functions | |
~LLVolumeLODGroup () | |
Protected Attributes | |
LLVolumeParams | mParams |
S32 | mLODRefs [NUM_LODS] |
LLVolume * | mVolumeLODs [NUM_LODS] |
S32 | mAccessCount [NUM_LODS] |
Static Protected Attributes | |
static F32 | mDetailThresholds [NUM_LODS] |
static F32 | mDetailScales [NUM_LODS] = {1.f, 1.5f, 2.5f, 4.f} |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLVolumeLODGroup &volgroup) |
Definition at line 44 of file llvolumemgr.h.
anonymous enum |
LLVolumeLODGroup::~LLVolumeLODGroup | ( | ) | [protected] |
LLVolumeLODGroup::LLVolumeLODGroup | ( | const LLVolumeParams & | params | ) |
Definition at line 217 of file llvolumemgr.cpp.
References i, mAccessCount, mLODRefs, mParams, mVolumeLODs, NULL, NUM_LODS, params, and S32.
Definition at line 253 of file llvolumemgr.cpp.
References FALSE, i, llendl, llerrs, mLODRefs, mVolumeLODs, NULL, NUM_LODS, S32, and TRUE.
Referenced by LLVolumeMgr::cleanupVolume().
F32 LLVolumeLODGroup::dump | ( | ) |
Definition at line 291 of file llvolumemgr.cpp.
References f, i, llendl, llinfos, mAccessCount, NUM_LODS, and S32.
Definition at line 272 of file llvolumemgr.cpp.
References i, mDetailThresholds, NUM_LODS, and S32.
Referenced by LLVOVolume::computeLODDetail().
Definition at line 241 of file llvolumemgr.cpp.
References llassert, mAccessCount, mDetailScales, mLODRefs, mParams, mVolumeLODs, and NUM_LODS.
Referenced by LLVolumeMgr::getVolume().
const LLVolumeParams& LLVolumeLODGroup::getParams | ( | ) | const [inline] |
Definition at line 62 of file llvolumemgr.h.
References mParams.
Referenced by LLVolumeMgr::getVolume().
Definition at line 286 of file llvolumemgr.cpp.
References mDetailScales.
Referenced by LLPrimitive::setVolume().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLVolumeLODGroup & | volgroup | |||
) | [friend] |
Definition at line 310 of file llvolumemgr.cpp.
S32 LLVolumeLODGroup::mAccessCount[NUM_LODS] [protected] |
Definition at line 74 of file llvolumemgr.h.
Referenced by dump(), getLOD(), and LLVolumeLODGroup().
F32 LLVolumeLODGroup::mDetailScales = {1.f, 1.5f, 2.5f, 4.f} [static, protected] |
Definition at line 73 of file llvolumemgr.h.
Referenced by getLOD(), and getVolumeScaleFromDetail().
F32 LLVolumeLODGroup::mDetailThresholds [static, protected] |
Initial value:
{BASE_THRESHOLD, 2*BASE_THRESHOLD, 8*BASE_THRESHOLD, 100*BASE_THRESHOLD}
Definition at line 72 of file llvolumemgr.h.
Referenced by getDetailFromTan().
S32 LLVolumeLODGroup::mLODRefs[NUM_LODS] [protected] |
Definition at line 70 of file llvolumemgr.h.
Referenced by derefLOD(), getLOD(), and LLVolumeLODGroup().
LLVolumeParams LLVolumeLODGroup::mParams [protected] |
Definition at line 68 of file llvolumemgr.h.
Referenced by getLOD(), getParams(), LLVolumeLODGroup(), and operator<<().
LLVolume* LLVolumeLODGroup::mVolumeLODs[NUM_LODS] [protected] |
Definition at line 71 of file llvolumemgr.h.
Referenced by derefLOD(), getLOD(), LLVolumeLODGroup(), and ~LLVolumeLODGroup().