LLWind Class Reference

#include <llwind.h>

Collaboration diagram for LLWind:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLWind ()
 ~LLWind ()
void renderVectors ()
LLVector3 getVelocity (const LLVector3 &location)
LLVector3 getCloudVelocity (const LLVector3 &location)
LLVector3 getVelocityNoisy (const LLVector3 &location, const F32 dim)
void decompress (LLBitPack &bitpack, LLGroupHeader *group_headerp)
LLVector3 getAverage ()
void setCloudDensityPointer (F32 *densityp)
void setOriginGlobal (const LLVector3d &origin_global)

Private Member Functions

void init ()

Private Attributes

S32 mSize
F32mVelX
F32mVelY
F32mCloudVelX
F32mCloudVelY
F32mCloudDensityp
LLVector3d mOriginGlobal

Detailed Description

Definition at line 45 of file llwind.h.


Constructor & Destructor Documentation

LLWind::LLWind (  ) 

Definition at line 63 of file llwind.cpp.

References init().

LLWind::~LLWind (  ) 

Definition at line 71 of file llwind.cpp.

References mCloudVelX, mCloudVelY, mVelX, and mVelY.


Member Function Documentation

void LLWind::decompress ( LLBitPack bitpack,
LLGroupHeader group_headerp 
)

Definition at line 105 of file llwind.cpp.

References CLOUD_DIVERGENCE_COEF, decode_patch(), decode_patch_header(), decompress_patch(), i, init_patch_decompressor(), j, mCloudDensityp, mCloudVelX, mCloudVelY, mSize, mVelX, mVelY, LLGroupHeader::patch_size, S32, set_group_of_patch_header(), and LLGroupHeader::stride.

LLVector3 LLWind::getAverage (  ) 

Definition at line 182 of file llwind.cpp.

References f, i, mSize, LLVector3::mV, mVelX, mVelY, S32, VX, VY, and WIND_SCALE_HACK.

Referenced by idle().

LLVector3 LLWind::getCloudVelocity ( const LLVector3 location  ) 

Definition at line 291 of file llwind.cpp.

References f, gWorldPointer, i, j, llassert, llfloor(), mCloudVelX, mCloudVelY, mSize, LLVector3::mV, S32, VX, VY, VZ, and WIND_SCALE_HACK.

Referenced by LLCloudGroup::updatePuffs().

LLVector3 LLWind::getVelocity ( const LLVector3 location  ) 

Definition at line 229 of file llwind.cpp.

References f, gWorldPointer, i, j, llassert, llfloor(), mSize, LLVector3::mV, mVelX, mVelY, S32, VX, VY, VZ, and WIND_SCALE_HACK.

Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), getVelocityNoisy(), idle(), LLVOTree::idleUpdate(), LLVOTree::LLVOTree(), and LLViewerPartGroup::updateParticles().

LLVector3 LLWind::getVelocityNoisy ( const LLVector3 location,
const F32  dim 
)

Definition at line 199 of file llwind.cpp.

References getVelocity(), and WIND_SCALE_HACK.

void LLWind::init (  )  [private]

Definition at line 85 of file llwind.cpp.

References f, i, mCloudVelX, mCloudVelY, mSize, mVelX, mVelY, and S32.

Referenced by LLWind().

void LLWind::renderVectors (  ) 

Definition at line 477 of file llglsandbox.cpp.

References f, gAgent, LLAgent::getPosAgentFromGlobal(), glBegin, glEnd, glPopMatrix, glTranslatef, gWorldPointer, i, j, mCloudVelX, mCloudVelY, mOriginGlobal, mSize, LLVector3::mV, S32, VX, VY, WIND_ALTITUDE, WIND_SCALE_HACK, x, and y.

void LLWind::setCloudDensityPointer ( F32 densityp  ) 

Definition at line 353 of file llwind.cpp.

References mCloudDensityp.

Referenced by LLCloudLayer::setWindPointer().

void LLWind::setOriginGlobal ( const LLVector3d origin_global  ) 

Definition at line 358 of file llwind.cpp.

References mOriginGlobal.

Referenced by LLViewerRegion::setOriginGlobal().


Member Data Documentation

F32* LLWind::mCloudDensityp [private]

Definition at line 66 of file llwind.h.

Referenced by decompress(), and setCloudDensityPointer().

F32* LLWind::mCloudVelX [private]

Definition at line 64 of file llwind.h.

Referenced by decompress(), getCloudVelocity(), init(), renderVectors(), and ~LLWind().

F32* LLWind::mCloudVelY [private]

Definition at line 65 of file llwind.h.

Referenced by decompress(), getCloudVelocity(), init(), renderVectors(), and ~LLWind().

LLVector3d LLWind::mOriginGlobal [private]

Definition at line 68 of file llwind.h.

Referenced by renderVectors(), and setOriginGlobal().

S32 LLWind::mSize [private]

Definition at line 61 of file llwind.h.

Referenced by decompress(), getAverage(), getCloudVelocity(), getVelocity(), init(), and renderVectors().

F32* LLWind::mVelX [private]

Definition at line 62 of file llwind.h.

Referenced by decompress(), getAverage(), getVelocity(), init(), and ~LLWind().

F32* LLWind::mVelY [private]

Definition at line 63 of file llwind.h.

Referenced by decompress(), getAverage(), getVelocity(), init(), and ~LLWind().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:03 2010 for Second Life Viewer by  doxygen 1.4.7