LLVolumeLODGroup Class Reference

#include <llvolumemgr.h>

Inheritance diagram for LLVolumeLODGroup:

Inheritance graph
Collaboration diagram for LLVolumeLODGroup:

Collaboration graph
List of all members.

Public Types

enum  { NUM_LODS = 4 }

Public Member Functions

 LLVolumeLODGroup (const LLVolumeParams &params)
BOOL derefLOD (LLVolume *volumep)
LLVolumegetLOD (const S32 detail)
const LLVolumeParamsgetParams () 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
LLVolumemVolumeLODs [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}


std::ostream & operator<< (std::ostream &s, const LLVolumeLODGroup &volgroup)

Detailed Description

Definition at line 44 of file llvolumemgr.h.

Member Enumeration Documentation

anonymous enum


Definition at line 50 of file llvolumemgr.h.

Constructor & Destructor Documentation

LLVolumeLODGroup::~LLVolumeLODGroup (  )  [protected]

Definition at line 230 of file llvolumemgr.cpp.

References i, mVolumeLODs, NULL, NUM_LODS, and S32.

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.

Member Function Documentation

BOOL LLVolumeLODGroup::derefLOD ( LLVolume volumep  ) 

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.

S32 LLVolumeLODGroup::getDetailFromTan ( const F32  tan_angle  )  [static]

Definition at line 272 of file llvolumemgr.cpp.

References i, mDetailThresholds, NUM_LODS, and S32.

Referenced by LLVOVolume::computeLODDetail().

LLVolume * LLVolumeLODGroup::getLOD ( const S32  detail  ) 

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().

F32 LLVolumeLODGroup::getVolumeScaleFromDetail ( const S32  detail  )  [static]

Definition at line 286 of file llvolumemgr.cpp.

References mDetailScales.

Referenced by LLPrimitive::setVolume().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLVolumeLODGroup volgroup 
) [friend]

Definition at line 310 of file llvolumemgr.cpp.

Member Data Documentation

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:


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().

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:02 2010 for Second Life Viewer by  doxygen 1.4.7