LLPartSysData Class Reference

#include <llpartdata.h>

Collaboration diagram for LLPartSysData:

Collaboration graph
[legend]

List of all members.

Public Types

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 147 of file llpartdata.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
LL_PART_SRC_OBJ_REL_MASK 
LL_PART_USE_NEW_ANGLE 

Definition at line 163 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 170 of file llpartdata.h.


Constructor & Destructor Documentation

LLPartSysData::LLPartSysData (  ) 


Member Function Documentation

BOOL LLPartSysData::unpack ( LLDataPacker dp  ) 

BOOL LLPartSysData::pack ( LLDataPacker dp  ) 

BOOL LLPartSysData::unpackBlock ( const S32  block_num  ) 

Definition at line 311 of file llpartdata.cpp.

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

Here is the call graph for this function:

BOOL LLPartSysData::packBlock (  ) 

Definition at line 297 of file llpartdata.cpp.

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

Here is the call graph for this function:

BOOL LLPartSysData::packNull (  )  [static]

Definition at line 289 of file llpartdata.cpp.

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

Here is the call graph for this function:

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

Definition at line 257 of file llpartdata.cpp.

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

Referenced by LLViewerPartSourceScript::unpackPSS().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 181 of file llpartdata.h.

References llclamp(), and mBurstSpeedMin.

Here is the call graph for this function:

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

Definition at line 182 of file llpartdata.h.

References llclamp(), and mBurstSpeedMax.

Here is the call graph for this function:

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

Definition at line 183 of file llpartdata.h.

References llclamp(), and mBurstRadius.

Here is the call graph for this function:

void LLPartSysData::setPartAccel ( const LLVector3 accel  ) 

Definition at line 343 of file llpartdata.cpp.

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

Here is the call graph for this function:

void LLPartSysData::setUseNewAngle (  )  [inline]

Definition at line 185 of file llpartdata.h.

References LL_PART_USE_NEW_ANGLE, and mFlags.

void LLPartSysData::unsetUseNewAngle (  )  [inline]

Definition at line 186 of file llpartdata.h.

References LL_PART_USE_NEW_ANGLE, and mFlags.

void LLPartSysData::clampSourceParticleRate (  ) 

Definition at line 333 of file llpartdata.cpp.

References llfloor(), mBurstPartCount, and mBurstRate.

Here is the call graph for this function:


Friends And Related Function Documentation

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

Definition at line 242 of file llpartdata.cpp.


Member Data Documentation

Definition at line 204 of file llpartdata.h.

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

Definition at line 210 of file llpartdata.h.

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

Definition at line 220 of file llpartdata.h.

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

Definition at line 231 of file llpartdata.h.

Referenced by LLVOAvatar::idleUpdate(), pack(), and unpack().

Definition at line 239 of file llpartdata.h.

Referenced by LLPartSysData().


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

Generated on Fri May 16 08:58:59 2008 for SecondLife by  doxygen 1.5.5