LLCloudGroup Class Reference

#include <llcloud.h>

Collaboration diagram for LLCloudGroup:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLCloudGroup ()
void cleanup ()
void setCloudLayerp (LLCloudLayer *clp)
void setCenterRegion (const LLVector3 &center)
void updatePuffs (const F32 dt)
void updatePuffOwnership ()
void updatePuffCount ()
BOOL inGroup (const LLCloudPuff &puff) const
F32 getDensity () const
S32 getNumPuffs () const
const LLCloudPuffgetPuff (const S32 i)

Protected Attributes

LLCloudLayermCloudLayerp
LLVector3 mCenterRegion
F32 mDensity
S32 mTargetPuffCount
std::vector< LLCloudPuffmCloudPuffs
LLPointer< LLVOCloudsmVOCloudsp


Detailed Description

Definition at line 119 of file llcloud.h.


Constructor & Destructor Documentation

LLCloudGroup::LLCloudGroup (  ) 

Definition at line 87 of file llcloud.cpp.


Member Function Documentation

void LLCloudGroup::cleanup (  ) 

Definition at line 95 of file llcloud.cpp.

References gObjectList, LLViewerObjectList::killObject(), mVOCloudsp, and NULL.

Referenced by LLCloudLayer::destroy().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudGroup::setCloudLayerp ( LLCloudLayer clp  )  [inline]

Definition at line 126 of file llcloud.h.

References mCloudLayerp.

Referenced by LLCloudLayer::LLCloudLayer().

Here is the caller graph for this function:

void LLCloudGroup::setCenterRegion ( const LLVector3 center  ) 

Definition at line 107 of file llcloud.cpp.

References mCenterRegion.

Referenced by LLCloudLayer::LLCloudLayer().

Here is the caller graph for this function:

void LLCloudGroup::updatePuffs ( const F32  dt  ) 

void LLCloudGroup::updatePuffOwnership (  ) 

Definition at line 143 of file llcloud.cpp.

References CLOUD_DECAY_RATE, CLOUD_UPDATE_RATE, LLWorld::findCloudGroup(), LLSingleton< LLWorld >::getInstance(), i, inGroup(), LL_PUFF_DYING, LLCloudPuff::mAlpha, mCloudPuffs, and LLCloudPuff::mPositionGlobal.

Referenced by LLCloudLayer::updatePuffOwnership().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudGroup::updatePuffCount (  ) 

Definition at line 180 of file llcloud.cpp.

References CLOUD_COUNT_MAX, CLOUD_DECAY_RATE, CLOUD_DENSITY, CLOUD_GROUPS_PER_EDGE, CLOUD_HEIGHT_RANGE, CLOUD_UPDATE_RATE, i, ll_frand(), LL_PUFF_DYING, llmax(), llmin(), llround(), mCloudPuffs, mDensity, mVOCloudsp, S32, and LLCloudPuff::sPuffCount.

Referenced by LLCloudLayer::updatePuffCount().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLCloudGroup::inGroup ( const LLCloudPuff puff  )  const

Definition at line 252 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, FALSE, LLCloudPuff::getPositionGlobal(), LLViewerRegion::getPosRegionFromGlobal(), LLCloudLayer::getRegion(), mCenterRegion, mCloudLayerp, LLVector3::mV, TRUE, VX, and VY.

Referenced by updatePuffOwnership().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLCloudGroup::getDensity (  )  const [inline]

Definition at line 135 of file llcloud.h.

References mDensity.

S32 LLCloudGroup::getNumPuffs (  )  const [inline]

Definition at line 136 of file llcloud.h.

References mCloudPuffs, and S32.

Referenced by LLVOClouds::getGeometry(), and LLVOClouds::updateGeometry().

Here is the caller graph for this function:

const LLCloudPuff& LLCloudGroup::getPuff ( const S32  i  )  [inline]

Definition at line 137 of file llcloud.h.

References mCloudPuffs.

Referenced by LLVOClouds::getGeometry(), and LLVOClouds::updateGeometry().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 139 of file llcloud.h.

Referenced by inGroup(), setCloudLayerp(), and updatePuffs().

Definition at line 140 of file llcloud.h.

Referenced by inGroup(), setCenterRegion(), and updatePuffs().

Definition at line 141 of file llcloud.h.

Referenced by getDensity(), updatePuffCount(), and updatePuffs().

Definition at line 142 of file llcloud.h.

std::vector<LLCloudPuff> LLCloudGroup::mCloudPuffs [protected]

Definition at line 144 of file llcloud.h.

Referenced by getNumPuffs(), getPuff(), updatePuffCount(), updatePuffOwnership(), and updatePuffs().

Definition at line 145 of file llcloud.h.

Referenced by cleanup(), updatePuffCount(), and updatePuffs().


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

Generated on Fri May 16 08:42:52 2008 for SecondLife by  doxygen 1.5.5