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 renderDensityField ()
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, f, i, j, mCloudGroups, mNeighbors, NULL, S32, LLCloudGroup::setCenterRegion(), LLCloudGroup::setCloudLayerp(), x, and y.

LLCloudLayer::~LLCloudLayer (  ) 

Definition at line 303 of file llcloud.cpp.

References destroy().


Member Function Documentation

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

Definition at line 540 of file llcloud.cpp.

References gDirOpposite, and mNeighbors.

Referenced by LLViewerRegion::connectNeighbor().

void LLCloudLayer::create ( LLViewerRegion regionp  ) 

Definition at line 309 of file llcloud.cpp.

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

Referenced by LLWorld::addRegion().

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

Definition at line 463 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.

void LLCloudLayer::destroy (  ) 

Definition at line 328 of file llcloud.cpp.

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

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

void LLCloudLayer::disconnectAllNeighbors (  ) 

Definition at line 570 of file llcloud.cpp.

References disconnectNeighbor(), i, and S32.

Referenced by LLViewerRegion::disconnectAllNeighbors().

void LLCloudLayer::disconnectNeighbor ( U32  direction  ) 

Definition at line 554 of file llcloud.cpp.

References gDirOpposite, mNeighbors, and NULL.

Referenced by disconnectAllNeighbors().

LLCloudGroup * LLCloudLayer::findCloudGroup ( const LLCloudPuff puff  ) 

Definition at line 521 of file llcloud.cpp.

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

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 idle(), and LLCloudGroup::updatePuffs().

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

Definition at line 181 of file llcloud.h.

References mNeighbors.

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

Definition at line 168 of file llcloud.h.

References mRegionp.

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

void LLCloudLayer::renderDensityField (  ) 

Definition at line 429 of file llcloud.cpp.

void LLCloudLayer::reset (  ) 

Definition at line 347 of file llcloud.cpp.

void LLCloudLayer::setBrightness ( F32  brightness  ) 

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

Definition at line 170 of file llcloud.h.

References mOriginGlobal.

Referenced by LLViewerRegion::setOriginGlobal().

void LLCloudLayer::setRegion ( LLViewerRegion regionp  ) 

Definition at line 323 of file llcloud.cpp.

References mRegionp.

void LLCloudLayer::setSunColor ( const LLColor4 color  ) 

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

void LLCloudLayer::setWindPointer ( LLWind windp  ) 

Definition at line 352 of file llcloud.cpp.

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

Referenced by LLWorld::addRegion().

void LLCloudLayer::updatePuffCount (  ) 

Definition at line 508 of file llcloud.cpp.

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

void LLCloudLayer::updatePuffOwnership (  ) 

Definition at line 495 of file llcloud.cpp.

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

void LLCloudLayer::updatePuffs ( const F32  dt  ) 

Definition at line 479 of file llcloud.cpp.

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


Member Data Documentation

LLCloudGroup LLCloudLayer::mCloudGroups[CLOUD_GROUPS_PER_EDGE][CLOUD_GROUPS_PER_EDGE] [protected]

Definition at line 201 of file llcloud.h.

Referenced by destroy(), findCloudGroup(), LLCloudLayer(), updatePuffCount(), updatePuffOwnership(), and updatePuffs().

F32* LLCloudLayer::mDensityp [protected]

Definition at line 199 of file llcloud.h.

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

F32 LLCloudLayer::mMaxAlpha

Definition at line 193 of file llcloud.h.

F32 LLCloudLayer::mMetersPerEdge

Definition at line 189 of file llcloud.h.

Referenced by setWidth().

F32 LLCloudLayer::mMetersPerGrid

Definition at line 190 of file llcloud.h.

Referenced by getDensityRegion(), and setWidth().

LLCloudLayer* LLCloudLayer::mNeighbors[4] [protected]

Definition at line 196 of file llcloud.h.

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

LLVector3d LLCloudLayer::mOriginGlobal

Definition at line 188 of file llcloud.h.

Referenced by setOriginGlobal().

LLViewerRegion* LLCloudLayer::mRegionp [protected]

Definition at line 198 of file llcloud.h.

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

LLWind* LLCloudLayer::mWindp [protected]

Definition at line 197 of file llcloud.h.

Referenced by destroy(), and setWindPointer().


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