LLPartSysData Class Reference

#include <llpartdata.h>

Collaboration diagram for LLPartSysData:

Collaboration graph
[legend]
List of all members.

Public Types

 LL_PART_SRC_OBJ_REL_MASK = 0x01
 LL_PART_USE_NEW_ANGLE = 0x02
 LL_PART_SRC_PATTERN_DROP = 0x01
 LL_PART_SRC_PATTERN_EXPLODE = 0x02
 LL_PART_SRC_PATTERN_ANGLE = 0x04
 LL_PART_SRC_PATTERN_ANGLE_CONE = 0x08
 LL_PART_SRC_PATTERN_ANGLE_CONE_EMPTY = 0x10
enum  { LL_PART_SRC_OBJ_REL_MASK = 0x01, LL_PART_USE_NEW_ANGLE = 0x02 }
enum  {
  LL_PART_SRC_PATTERN_DROP = 0x01, LL_PART_SRC_PATTERN_EXPLODE = 0x02, LL_PART_SRC_PATTERN_ANGLE = 0x04, LL_PART_SRC_PATTERN_ANGLE_CONE = 0x08,
  LL_PART_SRC_PATTERN_ANGLE_CONE_EMPTY = 0x10
}

Public Member Functions

 LLPartSysData ()
BOOL unpack (LLDataPacker &dp)
BOOL pack (LLDataPacker &dp)
BOOL unpackBlock (const S32 block_num)
BOOL packBlock ()
void setBurstSpeedMin (const F32 spd)
void setBurstSpeedMax (const F32 spd)
void setBurstRadius (const F32 rad)
void setPartAccel (const LLVector3 &accel)
void setUseNewAngle ()
void unsetUseNewAngle ()
void clampSourceParticleRate ()

Static Public Member Functions

static BOOL packNull ()
static BOOL isNullPS (const S32 block_num)

Public Attributes

U32 mCRC
U32 mFlags
U8 mPattern
F32 mInnerAngle
F32 mOuterAngle
LLVector3 mAngularVelocity
F32 mBurstRate
U8 mBurstPartCount
F32 mBurstRadius
F32 mBurstSpeedMin
F32 mBurstSpeedMax
F32 mMaxAge
LLUUID mTargetUUID
F32 mStartAge
LLVector3 mPartAccel
LLUUID mPartImageID
LLPartData mPartData

Protected Attributes

S32 mNumParticles

Friends

std::ostream & operator<< (std::ostream &s, const LLPartSysData &data)

Detailed Description

Definition at line 146 of file llpartdata.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
LL_PART_SRC_OBJ_REL_MASK 
LL_PART_USE_NEW_ANGLE 

Definition at line 162 of file llpartdata.h.

anonymous enum

Enumerator:
LL_PART_SRC_PATTERN_DROP 
LL_PART_SRC_PATTERN_EXPLODE 
LL_PART_SRC_PATTERN_ANGLE 
LL_PART_SRC_PATTERN_ANGLE_CONE 
LL_PART_SRC_PATTERN_ANGLE_CONE_EMPTY 

Definition at line 169 of file llpartdata.h.


Constructor & Destructor Documentation

LLPartSysData::LLPartSysData (  ) 

Definition at line 155 of file llpartdata.cpp.

References f, LL_PART_SRC_PATTERN_DROP, mBurstPartCount, mBurstRadius, mBurstRate, mBurstSpeedMax, mBurstSpeedMin, mCRC, LLPartData::mEndColor, LLPartData::mEndScale, LLPartData::mFlags, mInnerAngle, mMaxAge, LLPartData::mMaxAge, mOuterAngle, mPartData, mPattern, mStartAge, LLPartData::mStartColor, and LLPartData::mStartScale.


Member Function Documentation

void LLPartSysData::clampSourceParticleRate (  ) 

Definition at line 329 of file llpartdata.cpp.

References f, llfloor(), mBurstPartCount, and mBurstRate.

BOOL LLPartSysData::isNullPS ( const S32  block_num  )  [static]

Definition at line 253 of file llpartdata.cpp.

References FALSE, LLMessageSystem::getBinaryData(), LLMessageSystem::getSize(), gMessageSystem, llendl, llwarns, PS_DATA_BLOCK_SIZE, S32, size, TRUE, and LLDataPackerBinaryBuffer::unpackU32().

Referenced by LLViewerPartSourceScript::unpackPSS().

BOOL LLPartSysData::pack ( LLDataPacker dp  ) 

Definition at line 178 of file llpartdata.cpp.

References FALSE, mAngularVelocity, mBurstPartCount, mBurstRadius, mBurstRate, mBurstSpeedMax, mBurstSpeedMin, mCRC, mFlags, mInnerAngle, mMaxAge, mOuterAngle, mPartAccel, mPartData, mPartImageID, mPattern, mStartAge, mTargetUUID, LLVector3::mV, LLPartData::pack(), LLDataPacker::packFixed(), LLDataPacker::packU32(), LLDataPacker::packU8(), LLDataPacker::packUUID(), and TRUE.

Referenced by packBlock().

BOOL LLPartSysData::packBlock (  ) 

Definition at line 293 of file llpartdata.cpp.

References LLMessageSystem::addBinaryData(), gMessageSystem, pack(), PS_DATA_BLOCK_SIZE, and TRUE.

BOOL LLPartSysData::packNull (  )  [static]

Definition at line 285 of file llpartdata.cpp.

References LLMessageSystem::addBinaryData(), gMessageSystem, PS_DATA_BLOCK_SIZE, and TRUE.

void LLPartSysData::setBurstRadius ( const F32  rad  )  [inline]

Definition at line 182 of file llpartdata.h.

References f, llclamp(), and mBurstRadius.

void LLPartSysData::setBurstSpeedMax ( const F32  spd  )  [inline]

Definition at line 181 of file llpartdata.h.

References f, llclamp(), and mBurstSpeedMax.

void LLPartSysData::setBurstSpeedMin ( const F32  spd  )  [inline]

Definition at line 180 of file llpartdata.h.

References f, llclamp(), and mBurstSpeedMin.

void LLPartSysData::setPartAccel ( const LLVector3 accel  ) 

Definition at line 339 of file llpartdata.cpp.

References llclamp(), mPartAccel, LLVector3::mV, VX, VY, and VZ.

void LLPartSysData::setUseNewAngle (  )  [inline]

Definition at line 184 of file llpartdata.h.

References LL_PART_USE_NEW_ANGLE, and mFlags.

BOOL LLPartSysData::unpack ( LLDataPacker dp  ) 

Definition at line 208 of file llpartdata.cpp.

References f, FALSE, llmax(), mAngularVelocity, mBurstPartCount, mBurstRadius, mBurstRate, mBurstSpeedMax, mBurstSpeedMin, mCRC, mFlags, mInnerAngle, mMaxAge, mOuterAngle, mPartAccel, mPartData, mPartImageID, mPattern, mStartAge, mTargetUUID, LLVector3::mV, TRUE, LLPartData::unpack(), LLDataPacker::unpackFixed(), LLDataPacker::unpackU32(), LLDataPacker::unpackU8(), and LLDataPacker::unpackUUID().

Referenced by unpackBlock().

BOOL LLPartSysData::unpackBlock ( const S32  block_num  ) 

Definition at line 307 of file llpartdata.cpp.

References FALSE, LLMessageSystem::getBinaryData(), LLMessageSystem::getSize(), gMessageSystem, llendl, llwarns, PS_DATA_BLOCK_SIZE, S32, size, TRUE, and unpack().

void LLPartSysData::unsetUseNewAngle (  )  [inline]

Definition at line 185 of file llpartdata.h.

References LL_PART_USE_NEW_ANGLE, and mFlags.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLPartSysData data 
) [friend]

Definition at line 238 of file llpartdata.cpp.


Member Data Documentation

LLVector3 LLPartSysData::mAngularVelocity

Definition at line 209 of file llpartdata.h.

Referenced by operator<<(), pack(), unpack(), and LLViewerPartSourceScript::update().

U8 LLPartSysData::mBurstPartCount

Definition at line 212 of file llpartdata.h.

Referenced by clampSourceParticleRate(), LLParticleEvent::getScore(), LLPartSysData(), operator<<(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mBurstRadius

Definition at line 213 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), setBurstRadius(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mBurstRate

Definition at line 211 of file llpartdata.h.

Referenced by clampSourceParticleRate(), LLParticleEvent::getScore(), LLPartSysData(), operator<<(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mBurstSpeedMax

Definition at line 215 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), setBurstSpeedMax(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mBurstSpeedMin

Definition at line 214 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), setBurstSpeedMin(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

U32 LLPartSysData::mCRC

Definition at line 203 of file llpartdata.h.

Referenced by LLPartSysData(), pack(), and unpack().

U32 LLPartSysData::mFlags

Definition at line 204 of file llpartdata.h.

Referenced by operator<<(), pack(), setUseNewAngle(), unpack(), unsetUseNewAngle(), and LLViewerPartSourceScript::update().

F32 LLPartSysData::mInnerAngle

Definition at line 207 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mMaxAge

Definition at line 217 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), unpack(), and LLViewerPartSourceScript::update().

S32 LLPartSysData::mNumParticles [protected]

Definition at line 238 of file llpartdata.h.

F32 LLPartSysData::mOuterAngle

Definition at line 208 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

LLVector3 LLPartSysData::mPartAccel

Definition at line 229 of file llpartdata.h.

Referenced by operator<<(), pack(), setPartAccel(), unpack(), and LLViewerPartSourceScript::update().

LLPartData LLPartSysData::mPartData

Definition at line 235 of file llpartdata.h.

Referenced by LLParticleEvent::getScore(), LLPartSysData(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

LLUUID LLPartSysData::mPartImageID

Definition at line 230 of file llpartdata.h.

Referenced by LLParticleEvent::LLParticleEvent(), pack(), and unpack().

U8 LLPartSysData::mPattern

Definition at line 206 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), unpack(), LLViewerPartSourceScript::update(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartSysData::mStartAge

Definition at line 221 of file llpartdata.h.

Referenced by LLPartSysData(), operator<<(), pack(), unpack(), and LLViewerPartSourceScript::update().

LLUUID LLPartSysData::mTargetUUID

Definition at line 219 of file llpartdata.h.

Referenced by pack(), unpack(), and LLViewerPartSourceScript::update().


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