#include <llwind.h>
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 |
F32 * | mVelX |
F32 * | mVelY |
F32 * | mCloudVelX |
F32 * | mCloudVelY |
F32 * | mCloudDensityp |
LLVector3d | mOriginGlobal |
Definition at line 45 of file llwind.h.
LLWind::LLWind | ( | ) |
Definition at line 62 of file llwind.cpp.
References init().
LLWind::~LLWind | ( | ) |
void LLWind::renderVectors | ( | ) |
Definition at line 460 of file llglsandbox.cpp.
References LLGLImmediate::begin(), LLGLImmediate::color3f(), LLGLImmediate::end(), gAgent, LLSingleton< LLWorld >::getInstance(), LLAgent::getPosAgentFromGlobal(), LLWorld::getRegionWidthInMeters(), gGL, i, j, LLVertexBuffer::LINES, mCloudVelX, mCloudVelY, mOriginGlobal, mSize, LLVector3::mV, LLVertexBuffer::POINTS, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), S32, LLGLImmediate::translatef(), LLGLImmediate::vertex3f(), VX, VY, WIND_ALTITUDE, and WIND_SCALE_HACK.
Definition at line 228 of file llwind.cpp.
References LLSingleton< LLWorld >::getInstance(), LLWorld::getRegionWidthInMeters(), i, j, llassert, llfloor(), mSize, LLVector3::mV, mVelX, mVelY, S32, VX, VY, VZ, and WIND_SCALE_HACK.
Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), getVelocityNoisy(), LLAppViewer::idle(), LLVOTree::idleUpdate(), LLVOTree::LLVOTree(), and LLViewerPartGroup::updateParticles().
Definition at line 290 of file llwind.cpp.
References LLSingleton< LLWorld >::getInstance(), LLWorld::getRegionWidthInMeters(), i, j, llassert, llfloor(), mCloudVelX, mCloudVelY, mSize, LLVector3::mV, S32, VX, VY, VZ, and WIND_SCALE_HACK.
Referenced by LLCloudGroup::updatePuffs().
Definition at line 198 of file llwind.cpp.
References getVelocity(), and WIND_SCALE_HACK.
void LLWind::decompress | ( | LLBitPack & | bitpack, | |
LLGroupHeader * | group_headerp | |||
) |
Definition at line 104 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.
Referenced by LLVLManager::unpackData().
LLVector3 LLWind::getAverage | ( | ) |
Definition at line 181 of file llwind.cpp.
References i, mSize, LLVector3::mV, mVelX, mVelY, S32, VX, VY, and WIND_SCALE_HACK.
Referenced by LLAppViewer::idle().
void LLWind::setCloudDensityPointer | ( | F32 * | densityp | ) |
Definition at line 352 of file llwind.cpp.
References mCloudDensityp.
Referenced by LLCloudLayer::setWindPointer().
void LLWind::setOriginGlobal | ( | const LLVector3d & | origin_global | ) |
Definition at line 357 of file llwind.cpp.
References mOriginGlobal.
Referenced by LLViewerRegion::setOriginGlobal().
void LLWind::init | ( | void | ) | [private] |
Definition at line 84 of file llwind.cpp.
References i, mCloudVelX, mCloudVelY, mSize, mVelX, mVelY, and S32.
Referenced by LLWind().
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().
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().
F32* LLWind::mCloudDensityp [private] |
LLVector3d LLWind::mOriginGlobal [private] |