#include <llviewerpartsource.h>


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 |
Definition at line 109 of file llviewerpartsource.h.
| 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().


| 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.

| 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().

| 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().


| LLPointer< LLViewerPartSourceScript > LLViewerPartSourceScript::unpackPSS | ( | LLViewerObject * | source_objp, | |
| LLPointer< LLViewerPartSourceScript > | pssp, | |||
| LLDataPacker & | dp | |||
| ) | [static] |
Definition at line 437 of file llviewerpartsource.cpp.
References LLViewerObjectList::findObject(), gObjectList, LLViewerPartSourceScript(), LLMemType::MTYPE_PARTICLES, LLPointer< Type >::notNull(), and NULL.

| 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().


| LLViewerImage* LLViewerPartSourceScript::getImage | ( | ) | const [inline] |
| void LLViewerPartSourceScript::setImage | ( | LLViewerImage * | imagep | ) |
Definition at line 488 of file llviewerpartsource.cpp.
References LLViewerPartSource::mImagep, and LLMemType::MTYPE_PARTICLES.
| void LLViewerPartSourceScript::setTargetObject | ( | LLViewerObject * | objp | ) |
Definition at line 494 of file llviewerpartsource.cpp.
References mTargetObjectp, and LLMemType::MTYPE_PARTICLES.
Referenced by update().

LLQuaternion LLViewerPartSourceScript::mRotation [protected] |
Definition at line 132 of file llviewerpartsource.h.
Referenced by setDead(), setTargetObject(), and update().
1.5.5