LLViewerPartSourceScript Class Reference

#include <llviewerpartsource.h>

Inheritance diagram for LLViewerPartSourceScript:

Inheritance graph
[legend]
Collaboration diagram for LLViewerPartSourceScript:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLViewerPartSourceScript (LLViewerObject *source_objp)
void update (const F32 dt)
void setDead ()
BOOL updateFromMesg ()
LLViewerImage * getImage () const
void setImage (LLViewerImage *imagep)
void setTargetObject (LLViewerObject *objp)

Static Public Member Functions

static LLPointer
< LLViewerPartSourceScript > 
unpackPSS (LLViewerObject *source_objp, LLPointer< LLViewerPartSourceScript > pssp, const S32 block_num)
static LLPointer
< LLViewerPartSourceScript > 
unpackPSS (LLViewerObject *source_objp, LLPointer< LLViewerPartSourceScript > pssp, LLDataPacker &dp)
static LLPointer
< LLViewerPartSourceScript > 
createPSS (LLViewerObject *source_objp, const LLPartSysData &particle_parameters)

Public Attributes

LLPartSysData mPartSysData

Protected Attributes

LLQuaternion mRotation
LLPointer< LLViewerObject > mTargetObjectp


Detailed Description

Definition at line 109 of file llviewerpartsource.h.


Constructor & Destructor Documentation

LLViewerPartSourceScript::LLViewerPartSourceScript ( LLViewerObject *  source_objp  ) 

Definition at line 94 of file llviewerpartsource.cpp.

References LLViewerImageList::getImageFromFile(), gImageList, llassert, LLViewerPartSource::mImagep, LLViewerPartSource::mPosAgent, LLViewerPartSource::mSourceObjectp, LLMemType::MTYPE_PARTICLES, and TRUE.

Referenced by createPSS(), and unpackPSS().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

void LLViewerPartSourceScript::update ( const F32  dt  )  [virtual]

Reimplemented from LLViewerPartSource.

Definition at line 115 of file llviewerpartsource.cpp.

References LLViewerPartSim::addPart(), F_PI, FALSE, LLViewerObjectList::findObject(), LLSingleton< LLViewerCamera >::getInstance(), LLSingleton< LLViewerPartSim >::getInstance(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelMeterRatio(), gObjectList, gPipeline, LLPipeline::hasRenderDebugMask(), i, LLPointer< Type >::isNull(), ll_frand(), LLPartData::LL_PART_FOLLOW_SRC_MASK, LLPartSysData::LL_PART_SRC_PATTERN_ANGLE, LLPartSysData::LL_PART_SRC_PATTERN_ANGLE_CONE, LLPartSysData::LL_PART_SRC_PATTERN_DROP, LLPartSysData::LL_PART_SRC_PATTERN_EXPLODE, LLPartData::LL_PART_TARGET_LINEAR_MASK, LLPartSysData::LL_PART_USE_NEW_ANGLE, llmax(), llmin(), LLVector3::magVec(), LLVector3::magVecSquared(), LLPartSysData::mAngularVelocity, LLPartSysData::mBurstPartCount, LLPartSysData::mBurstRadius, LLPartSysData::mBurstRate, LLPartSysData::mBurstSpeedMax, LLPartSysData::mBurstSpeedMin, LLViewerPartSource::mDelay, LLPartData::mEndColor, LLPartData::mEndScale, LLPartSysData::mFlags, LLPartData::mFlags, LLViewerPartSource::mImagep, LLPartSysData::mInnerAngle, LLViewerPartSource::mIsSuspended, LLViewerPartSource::mLastPartTime, LLViewerPartSource::mLastUpdateTime, LLPartData::mMaxAge, LLPartSysData::mMaxAge, LLPartSysData::mOuterAngle, LLPartSysData::mPartAccel, LLPartSysData::mPartData, mPartSysData, LLPartSysData::mPattern, LLViewerPartSource::mPosAgent, mRotation, LLViewerPartSource::mSourceObjectp, LLPartSysData::mStartAge, LLPartData::mStartColor, LLPartData::mStartScale, mTargetObjectp, LLViewerPartSource::mTargetPosAgent, LLPartSysData::mTargetUUID, LLMemType::MTYPE_PARTICLES, LLVector3::mV, LLVector3::normVec(), LLUUID::notNull(), LLPointer< Type >::notNull(), NULL, LLPipeline::RENDER_DEBUG_PARTICLES, LLVector3::rotVec(), S32, setDead(), LLQuaternion::setQuat(), setTargetObject(), TRUE, VX, VY, and VZ.

Here is the call graph for this function:

void LLViewerPartSourceScript::setDead (  )  [virtual]

Reimplemented from LLViewerPartSource.

Definition at line 107 of file llviewerpartsource.cpp.

References LLViewerPartSource::mIsDead, LLViewerPartSource::mSourceObjectp, mTargetObjectp, LLMemType::MTYPE_PARTICLES, NULL, and TRUE.

Referenced by update().

Here is the caller graph for this function:

BOOL LLViewerPartSourceScript::updateFromMesg (  ) 

LLPointer< LLViewerPartSourceScript > LLViewerPartSourceScript::unpackPSS ( LLViewerObject *  source_objp,
LLPointer< LLViewerPartSourceScript >  pssp,
const S32  block_num 
) [static]

Definition at line 395 of file llviewerpartsource.cpp.

References LLViewerObjectList::findObject(), gObjectList, LLPartSysData::isNullPS(), LLViewerPartSourceScript(), LLMemType::MTYPE_PARTICLES, LLPointer< Type >::notNull(), and NULL.

Referenced by LLViewerObject::unpackParticleSource().

Here is the call graph for this function:

Here is the caller graph for this function:

LLPointer< LLViewerPartSourceScript > LLViewerPartSourceScript::unpackPSS ( LLViewerObject *  source_objp,
LLPointer< LLViewerPartSourceScript >  pssp,
LLDataPacker &  dp 
) [static]

LLPointer< LLViewerPartSourceScript > LLViewerPartSourceScript::createPSS ( LLViewerObject *  source_objp,
const LLPartSysData &  particle_parameters 
) [static]

Definition at line 471 of file llviewerpartsource.cpp.

References LLViewerObjectList::findObject(), gObjectList, LLViewerPartSourceScript(), LLMemType::MTYPE_PARTICLES, and LLPointer< Type >::notNull().

Referenced by LLViewerObject::setParticleSource().

Here is the call graph for this function:

Here is the caller graph for this function:

LLViewerImage* LLViewerPartSourceScript::getImage (  )  const [inline]

Definition at line 124 of file llviewerpartsource.h.

References LLViewerPartSource::mImagep.

void LLViewerPartSourceScript::setImage ( LLViewerImage *  imagep  ) 

void LLViewerPartSourceScript::setTargetObject ( LLViewerObject *  objp  ) 

Definition at line 494 of file llviewerpartsource.cpp.

References mTargetObjectp, and LLMemType::MTYPE_PARTICLES.

Referenced by update().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 126 of file llviewerpartsource.h.

Referenced by update().

Definition at line 131 of file llviewerpartsource.h.

Referenced by update().

Definition at line 132 of file llviewerpartsource.h.

Referenced by setDead(), setTargetObject(), and update().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:32:54 2008 for SecondLife by  doxygen 1.5.5