#include <llcloud.h>
Collaboration diagram for LLCloudGroup:
Public Member Functions | |
LLCloudGroup () | |
void | cleanup () |
void | setCloudLayerp (LLCloudLayer *clp) |
void | setCenterRegion (const LLVector3 ¢er) |
void | updatePuffs (const F32 dt) |
void | updatePuffOwnership () |
void | updatePuffCount () |
BOOL | inGroup (const LLCloudPuff &puff) const |
F32 | getDensity () const |
S32 | getNumPuffs () const |
const LLCloudPuff & | getPuff (const S32 i) |
Protected Attributes | |
LLCloudLayer * | mCloudLayerp |
LLVector3 | mCenterRegion |
F32 | mDensity |
S32 | mTargetPuffCount |
std::vector< LLCloudPuff > | mCloudPuffs |
LLPointer< LLVOClouds > | mVOCloudsp |
Definition at line 119 of file llcloud.h.
LLCloudGroup::LLCloudGroup | ( | ) |
Definition at line 87 of file llcloud.cpp.
void LLCloudGroup::cleanup | ( | ) |
Definition at line 95 of file llcloud.cpp.
References gObjectList, LLViewerObjectList::killObject(), mVOCloudsp, and NULL.
F32 LLCloudGroup::getDensity | ( | ) | const [inline] |
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().
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.
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().
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] |
LLPointer<LLVOClouds> LLCloudGroup::mVOCloudsp [protected] |
Definition at line 145 of file llcloud.h.
Referenced by cleanup(), updatePuffCount(), and updatePuffs().