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.

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

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

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

void LLCloudGroup::setCenterRegion ( const LLVector3 center  ) 

Definition at line 107 of file llcloud.cpp.

References mCenterRegion.

Referenced by LLCloudLayer::LLCloudLayer().

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

Definition at line 126 of file llcloud.h.

References mCloudLayerp.

Referenced by LLCloudLayer::LLCloudLayer().

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, f, i, ll_frand(), LL_PUFF_DYING, llmax(), llmin(), llround(), mCloudPuffs, mDensity, mVOCloudsp, S32, LLCloudPuff::sPuffCount, x, y, and z.

void LLCloudGroup::updatePuffOwnership (  ) 

Definition at line 143 of file llcloud.cpp.

References CLOUD_DECAY_RATE, CLOUD_UPDATE_RATE, gWorldPointer, i, inGroup(), LL_PUFF_DYING, LLCloudPuff::mAlpha, mCloudPuffs, and LLCloudPuff::mPositionGlobal.

void LLCloudGroup::updatePuffs ( const F32  dt  ) 

Definition at line 112 of file llcloud.cpp.

References LLPipeline::addObject(), CLOUD_GROUPS_PER_EDGE, CLOUD_HEIGHT_RANGE, CLOUD_PUFF_HEIGHT, CLOUD_PUFF_WIDTH, CLOUD_UPDATE_RATE, CLOUD_VELOCITY_SCALE, LLViewerObjectList::createObjectViewer(), f, LLWind::getCloudVelocity(), LLCloudLayer::getDensityRegion(), LLViewerRegion::getPosRegionFromGlobal(), LLCloudLayer::getRegion(), gObjectList, gPipeline, i, LLViewerObject::LL_VO_CLOUDS, llmax(), llmin(), mCenterRegion, mCloudLayerp, mCloudPuffs, mDensity, mVOCloudsp, LLViewerRegion::mWind, and LLVector3d::setVec().


Member Data Documentation

LLVector3 LLCloudGroup::mCenterRegion [protected]

Definition at line 140 of file llcloud.h.

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

LLCloudLayer* LLCloudGroup::mCloudLayerp [protected]

Definition at line 139 of file llcloud.h.

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

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

Definition at line 144 of file llcloud.h.

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

F32 LLCloudGroup::mDensity [protected]

Definition at line 141 of file llcloud.h.

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

S32 LLCloudGroup::mTargetPuffCount [protected]

Definition at line 142 of file llcloud.h.

LLPointer<LLVOClouds> LLCloudGroup::mVOCloudsp [protected]

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 Thu Jul 1 06:11:12 2010 for Second Life Viewer by  doxygen 1.4.7