LLCloudLayer Class Reference

#include <llcloud.h>

Collaboration diagram for LLCloudLayer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLCloudLayer ()
 ~LLCloudLayer ()
void create (LLViewerRegion *regionp)
void destroy ()
void reset ()
void updatePuffs (const F32 dt)
void updatePuffOwnership ()
void updatePuffCount ()
LLCloudGroupfindCloudGroup (const LLCloudPuff &puff)
void setRegion (LLViewerRegion *regionp)
LLViewerRegiongetRegion () const
void setWindPointer (LLWind *windp)
void setOriginGlobal (const LLVector3d &origin_global)
void setWidth (F32 width)
void setBrightness (F32 brightness)
void setSunColor (const LLColor4 &color)
F32 getDensityRegion (const LLVector3 &pos_region)
void decompress (LLBitPack &bitpack, LLGroupHeader *group_header)
LLCloudLayergetNeighbor (const S32 n) const
void connectNeighbor (LLCloudLayer *cloudp, U32 direction)
void disconnectNeighbor (U32 direction)
void disconnectAllNeighbors ()

Public Attributes

LLVector3d mOriginGlobal
F32 mMetersPerEdge
F32 mMetersPerGrid
F32 mMaxAlpha

Protected Attributes

LLCloudLayermNeighbors [4]
LLWindmWindp
LLViewerRegionmRegionp
F32mDensityp
LLCloudGroup mCloudGroups [CLOUD_GROUPS_PER_EDGE][CLOUD_GROUPS_PER_EDGE]


Detailed Description

Definition at line 149 of file llcloud.h.


Constructor & Destructor Documentation

LLCloudLayer::LLCloudLayer (  ) 

Definition at line 274 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, CLOUD_HEIGHT_MEAN, i, j, mCloudGroups, mNeighbors, NULL, S32, LLCloudGroup::setCenterRegion(), and LLCloudGroup::setCloudLayerp().

Here is the call graph for this function:

LLCloudLayer::~LLCloudLayer (  ) 

Definition at line 303 of file llcloud.cpp.

References destroy().

Here is the call graph for this function:


Member Function Documentation

void LLCloudLayer::create ( LLViewerRegion regionp  ) 

Definition at line 309 of file llcloud.cpp.

References CLOUD_GRIDS_PER_EDGE, i, llassert, mDensityp, and mRegionp.

Referenced by LLWorld::addRegion().

Here is the caller graph for this function:

void LLCloudLayer::destroy (  ) 

Definition at line 328 of file llcloud.cpp.

References LLCloudGroup::cleanup(), CLOUD_GROUPS_PER_EDGE, i, j, mCloudGroups, mDensityp, mWindp, NULL, and S32.

Referenced by ~LLCloudLayer(), and LLViewerRegion::~LLViewerRegion().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudLayer::reset (  ) 

Definition at line 347 of file llcloud.cpp.

void LLCloudLayer::updatePuffs ( const F32  dt  ) 

Definition at line 444 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, i, j, mCloudGroups, S32, and LLCloudGroup::updatePuffs().

Referenced by LLWorld::updateClouds().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudLayer::updatePuffOwnership (  ) 

Definition at line 460 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, i, j, mCloudGroups, S32, and LLCloudGroup::updatePuffOwnership().

Referenced by LLWorld::updateClouds().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudLayer::updatePuffCount (  ) 

Definition at line 473 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, i, j, mCloudGroups, S32, and LLCloudGroup::updatePuffCount().

Referenced by LLWorld::updateClouds().

Here is the call graph for this function:

Here is the caller graph for this function:

LLCloudGroup * LLCloudLayer::findCloudGroup ( const LLCloudPuff puff  ) 

Definition at line 486 of file llcloud.cpp.

References CLOUD_GROUPS_PER_EDGE, i, j, mCloudGroups, NULL, and S32.

Referenced by LLWorld::findCloudGroup().

Here is the caller graph for this function:

void LLCloudLayer::setRegion ( LLViewerRegion regionp  ) 

Definition at line 323 of file llcloud.cpp.

References mRegionp.

LLViewerRegion* LLCloudLayer::getRegion (  )  const [inline]

Definition at line 168 of file llcloud.h.

References mRegionp.

Referenced by LLCloudGroup::inGroup(), and LLCloudGroup::updatePuffs().

Here is the caller graph for this function:

void LLCloudLayer::setWindPointer ( LLWind windp  ) 

Definition at line 352 of file llcloud.cpp.

References mDensityp, mWindp, NULL, and LLWind::setCloudDensityPointer().

Referenced by LLWorld::addRegion().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudLayer::setOriginGlobal ( const LLVector3d origin_global  )  [inline]

Definition at line 170 of file llcloud.h.

References mOriginGlobal.

Referenced by LLViewerRegion::setOriginGlobal().

Here is the caller graph for this function:

void LLCloudLayer::setWidth ( F32  width  ) 

Definition at line 366 of file llcloud.cpp.

References CLOUD_GRIDS_PER_EDGE, mMetersPerEdge, and mMetersPerGrid.

Referenced by LLWorld::addRegion().

Here is the caller graph for this function:

void LLCloudLayer::setBrightness ( F32  brightness  ) 

void LLCloudLayer::setSunColor ( const LLColor4 color  ) 

F32 LLCloudLayer::getDensityRegion ( const LLVector3 pos_region  ) 

Definition at line 373 of file llcloud.cpp.

References CLOUD_GRIDS_PER_EDGE, i, j, lltrunc(), mDensityp, mMetersPerGrid, LLVector3::mV, S32, VX, and VY.

Referenced by LLAppViewer::idle(), and LLCloudGroup::updatePuffs().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCloudLayer::decompress ( LLBitPack bitpack,
LLGroupHeader group_header 
)

Definition at line 428 of file llcloud.cpp.

References decode_patch(), decode_patch_header(), decompress_patch(), gBuffer, init_patch_decompressor(), mDensityp, LLGroupHeader::patch_size, set_group_of_patch_header(), and LLGroupHeader::stride.

Referenced by LLVLManager::unpackData().

Here is the call graph for this function:

Here is the caller graph for this function:

LLCloudLayer* LLCloudLayer::getNeighbor ( const S32  n  )  const [inline]

Definition at line 180 of file llcloud.h.

References mNeighbors.

void LLCloudLayer::connectNeighbor ( LLCloudLayer cloudp,
U32  direction 
)

Definition at line 505 of file llcloud.cpp.

References gDirOpposite, and mNeighbors.

Referenced by LLViewerRegion::connectNeighbor().

Here is the caller graph for this function:

void LLCloudLayer::disconnectNeighbor ( U32  direction  ) 

Definition at line 519 of file llcloud.cpp.

References gDirOpposite, mNeighbors, and NULL.

Referenced by disconnectAllNeighbors().

Here is the caller graph for this function:

void LLCloudLayer::disconnectAllNeighbors (  ) 

Definition at line 535 of file llcloud.cpp.

References disconnectNeighbor(), i, and S32.

Referenced by LLViewerRegion::disconnectAllNeighbors().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 187 of file llcloud.h.

Referenced by setOriginGlobal().

Definition at line 188 of file llcloud.h.

Referenced by setWidth().

Definition at line 189 of file llcloud.h.

Referenced by getDensityRegion(), and setWidth().

Definition at line 192 of file llcloud.h.

Definition at line 195 of file llcloud.h.

Referenced by connectNeighbor(), disconnectNeighbor(), getNeighbor(), and LLCloudLayer().

Definition at line 196 of file llcloud.h.

Referenced by destroy(), and setWindPointer().

Definition at line 197 of file llcloud.h.

Referenced by create(), getRegion(), and setRegion().

Definition at line 198 of file llcloud.h.

Referenced by create(), decompress(), destroy(), getDensityRegion(), and setWindPointer().


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

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