LLVOClouds Class Reference

#include <llvoclouds.h>

Inheritance diagram for LLVOClouds:

Inheritance graph
Collaboration diagram for LLVOClouds:

Collaboration graph
List of all members.

Public Member Functions

 LLVOClouds (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
void updateDrawable (BOOL force_damped)
LLDrawablecreateDrawable (LLPipeline *pipeline)
BOOL updateGeometry (LLDrawable *drawable)
void getGeometry (S32 te, LLStrider< LLVector3 > &verticesp, LLStrider< LLVector3 > &normalsp, LLStrider< LLVector2 > &texcoordsp, LLStrider< LLColor4U > &colorsp, LLStrider< U32 > &indicesp)
BOOL isActive () const
BOOL isParticle ()
F32 getPartSize (S32 idx)
void updateTextures (LLAgent &agent)
void setPixelAreaAndAngle (LLAgent &agent)
void updateFaceSize (S32 idx)
BOOL idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time)
virtual U32 getPartitionType () const
void setCloudGroup (LLCloudGroup *cgp)

Static Public Member Functions

static void initClass ()

Protected Member Functions

virtual ~LLVOClouds ()

Protected Attributes


Detailed Description

Definition at line 45 of file llvoclouds.h.

Constructor & Destructor Documentation

LLVOClouds::LLVOClouds ( const LLUUID id,
const LLPCode  pcode,
LLViewerRegion regionp 

Definition at line 54 of file llvoclouds.cpp.

References LLViewerImage::BOOST_CLOUDS, FALSE, gCloudTextureID, LLViewerImageList::getImage(), gImageList, LLViewerObject::mbCanSelect, mCloudGroupp, NULL, LLViewerImage::setBoostLevel(), LLViewerObject::setNumTEs(), and LLViewerObject::setTEImage().

LLVOClouds::~LLVOClouds (  )  [protected, virtual]

Definition at line 66 of file llvoclouds.cpp.

Member Function Documentation

LLDrawable * LLVOClouds::createDrawable ( LLPipeline pipeline  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 102 of file llvoclouds.cpp.

References LLPipeline::allocDrawable(), FALSE, LLViewerObject::mDrawable, and LLPipeline::RENDER_TYPE_CLOUDS.

void LLVOClouds::getGeometry ( S32  te,
LLStrider< LLVector3 > &  verticesp,
LLStrider< LLVector3 > &  normalsp,
LLStrider< LLVector2 > &  texcoordsp,
LLStrider< LLColor4U > &  colorsp,
LLStrider< U32 > &  indicesp 
) [virtual]

Implements LLAlphaObject.

Definition at line 180 of file llvoclouds.cpp.

References CLOUD_PUFF_HEIGHT, CLOUD_PUFF_WIDTH, f, gCamera, LLCloudPuff::getAlpha(), LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLFace::getGeomIndex(), LLCloudGroup::getNumPuffs(), LLCloudGroup::getPuff(), LLFace::hasGeometry(), isParticle(), LLFace::mCenterLocal, mCloudGroupp, LLViewerObject::mDrawable, LLVector3::normVec(), right, S32, LLFace::setFaceColor(), and LLVector2::setVec().

U32 LLVOClouds::getPartitionType (  )  const [virtual]

Reimplemented from LLViewerObject.

Definition at line 276 of file llvoclouds.cpp.

References LLPipeline::PARTITION_CLOUD.

F32 LLVOClouds::getPartSize ( S32  idx  )  [virtual]

Reimplemented from LLAlphaObject.

Definition at line 175 of file llvoclouds.cpp.


BOOL LLVOClouds::idleUpdate ( LLAgent agent,
LLWorld world,
const F64 time 
) [virtual]

Reimplemented from LLViewerObject.

Definition at line 77 of file llvoclouds.cpp.

References gPipeline, LLPipeline::hasRenderType(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLPipeline::RENDER_TYPE_CLOUDS, and TRUE.

static void LLVOClouds::initClass (  )  [static]

BOOL LLVOClouds::isActive (  )  const [virtual]

Reimplemented from LLViewerObject.

Definition at line 71 of file llvoclouds.cpp.

References TRUE.

BOOL LLVOClouds::isParticle (  )  [virtual]

Reimplemented from LLAlphaObject.

Definition at line 170 of file llvoclouds.cpp.

References FALSE.

Referenced by getGeometry(), and updateGeometry().

void LLVOClouds::setCloudGroup ( LLCloudGroup cgp  )  [inline]

Definition at line 76 of file llvoclouds.h.

References mCloudGroupp.

void LLVOClouds::setPixelAreaAndAngle ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 91 of file llvoclouds.cpp.

References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.

void LLVOClouds::updateDrawable ( BOOL  force_damped  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 282 of file llvoclouds.cpp.

References LLXform::clearChanged(), gPipeline, LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLDrawable::REBUILD_ALL, LLXform::SHIFTED, and TRUE.

void LLVOClouds::updateFaceSize ( S32  idx  )  [inline, virtual]

Reimplemented from LLViewerObject.

Definition at line 71 of file llvoclouds.h.

BOOL LLVOClouds::updateGeometry ( LLDrawable drawable  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 111 of file llvoclouds.cpp.

References LLFastTimer::FTM_UPDATE_CLOUDS, gAgent, gCamera, LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLDrawable::getNumFaces(), LLCloudGroup::getNumPuffs(), LLCoordFrame::getOrigin(), LLAgent::getPosAgentFromGlobal(), LLViewerObject::getPositionAgent(), LLCloudPuff::getPositionGlobal(), LLCloudGroup::getPuff(), LLViewerObject::getTEImage(), gPipeline, LLPipeline::hasRenderType(), isParticle(), llendl, llwarns, LLFace::mCenterLocal, mCloudGroupp, LLAlphaObject::mDepth, LLDrawable::movePartition(), NULL, LLPipeline::RENDER_TYPE_CLOUDS, S32, LLDrawable::setNumFacesFast(), LLFace::setSize(), LLFace::setTEOffset(), LLFace::setTexture(), and TRUE.

void LLVOClouds::updateTextures ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 97 of file llvoclouds.cpp.

References LLViewerImage::addTextureStats(), LLViewerObject::getTEImage(), and LLViewerObject::mPixelArea.

Member Data Documentation

LLCloudGroup* LLVOClouds::mCloudGroupp [protected]

Definition at line 80 of file llvoclouds.h.

Referenced by getGeometry(), LLVOClouds(), setCloudGroup(), and updateGeometry().

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