LLTranspMap Class Reference

#include <llvosky.h>

Collaboration diagram for LLTranspMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTranspMap ()
 ~LLTranspMap ()
void init (const F32 elev, const F32 step, const F32 h, const LLHaze *const haze)
F32 calcHeight (const LLVector3 &pos) const
BOOL hasHaze () const
LLColor3 calcSigExt (const F32 h) const
void calcAirTransp (const F32 cos_angle, LLColor3 &result) const
LLColor3 calcAirTranspDir (const F32 elevation, const LLVector3 &dir) const
LLColor3 getHorizonAirTransp () const
F32 hitsAtmEdge (const LLVector3 &orig, const LLVector3 &dir) const

Protected Attributes

F32 mAtmHeight
F32 mElevation
F32 mMaxAngle
F32 mCosMaxAngle
F32 mStep
F32 mStepInv
S32 mMapSize
const LLHazemHaze
LLColor3mT

Detailed Description

Definition at line 437 of file llvosky.h.


Constructor & Destructor Documentation

LLTranspMap::LLTranspMap (  )  [inline]

Definition at line 440 of file llvosky.h.

LLTranspMap::~LLTranspMap (  )  [inline]

Definition at line 441 of file llvosky.h.

References mT, and NULL.


Member Function Documentation

void LLTranspMap::calcAirTransp ( const F32  cos_angle,
LLColor3 result 
) const [inline]

Definition at line 775 of file llvosky.h.

References f, llfloor(), mCosMaxAngle, mMapSize, mStepInv, mT, LLColor3::mV, S32, LLColor3::setVec(), VX, VY, and VZ.

Referenced by LLTranspMapSet::calcTransp().

LLColor3 LLTranspMap::calcAirTranspDir ( const F32  elevation,
const LLVector3 dir 
) const

Definition at line 274 of file llvosky.cpp.

References calcSigExt(), EARTH_RADIUS, LLColor3::exp(), F_PI, FIRST_STEP, gFastLn, hitsAtmEdge(), INV_FIRST_STEP, INV_NO_STEPS, LLVector3::magVec(), NO_STEPS, LLFastLn::pow(), s, and S32.

Referenced by init().

F32 LLTranspMap::calcHeight ( const LLVector3 pos  )  const [inline]

Definition at line 449 of file llvosky.h.

References EARTH_RADIUS, and LLVector3::magVec().

LLColor3 LLTranspMap::calcSigExt ( const F32  h  )  const [inline]

Definition at line 459 of file llvosky.h.

References LLHaze::calcAirSca(), LLHaze::calcSigExt(), hasHaze(), and mHaze.

Referenced by calcAirTranspDir().

LLColor3 LLTranspMap::getHorizonAirTransp (  )  const [inline]

Definition at line 466 of file llvosky.h.

References mMapSize, and mT.

BOOL LLTranspMap::hasHaze (  )  const [inline]

Definition at line 454 of file llvosky.h.

References mHaze, and NULL.

Referenced by calcSigExt().

F32 LLTranspMap::hitsAtmEdge ( const LLVector3 orig,
const LLVector3 dir 
) const

Definition at line 326 of file llvosky.cpp.

References EARTH_RADIUS, and mAtmHeight.

Referenced by calcAirTranspDir().

void LLTranspMap::init ( const F32  elev,
const F32  step,
const F32  h,
const LLHaze *const   haze 
)

Definition at line 251 of file llvosky.cpp.

References calcAirTranspDir(), EARTH_RADIUS, i, mAtmHeight, mCosMaxAngle, mElevation, mHaze, mMapSize, mStep, mStepInv, mT, and S32.

Referenced by LLTranspMapSet::init().


Member Data Documentation

F32 LLTranspMap::mAtmHeight [protected]

Definition at line 470 of file llvosky.h.

Referenced by hitsAtmEdge(), and init().

F32 LLTranspMap::mCosMaxAngle [protected]

Definition at line 473 of file llvosky.h.

Referenced by calcAirTransp(), and init().

F32 LLTranspMap::mElevation [protected]

Definition at line 471 of file llvosky.h.

Referenced by init().

const LLHaze* LLTranspMap::mHaze [protected]

Definition at line 477 of file llvosky.h.

Referenced by calcSigExt(), hasHaze(), and init().

S32 LLTranspMap::mMapSize [protected]

Definition at line 476 of file llvosky.h.

Referenced by calcAirTransp(), getHorizonAirTransp(), and init().

F32 LLTranspMap::mMaxAngle [protected]

Definition at line 472 of file llvosky.h.

F32 LLTranspMap::mStep [protected]

Definition at line 474 of file llvosky.h.

Referenced by init().

F32 LLTranspMap::mStepInv [protected]

Definition at line 475 of file llvosky.h.

Referenced by calcAirTransp(), and init().

LLColor3* LLTranspMap::mT [protected]

Definition at line 478 of file llvosky.h.

Referenced by calcAirTransp(), getHorizonAirTransp(), init(), and ~LLTranspMap().


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