LLPartData Class Reference

#include <llpartdata.h>

Inheritance diagram for LLPartData:

Inheritance graph
[legend]
Collaboration diagram for LLPartData:

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  LL_PART_INTERP_COLOR_MASK = 0x01, LL_PART_INTERP_SCALE_MASK = 0x02, LL_PART_BOUNCE_MASK = 0x04, LL_PART_WIND_MASK = 0x08,
  LL_PART_FOLLOW_SRC_MASK = 0x10, LL_PART_FOLLOW_VELOCITY_MASK = 0x20, LL_PART_TARGET_POS_MASK = 0x40, LL_PART_TARGET_LINEAR_MASK = 0x80,
  LL_PART_EMISSIVE_MASK = 0x100, LL_PART_BEAM_MASK = 0x200, LL_PART_DEAD_MASK = 0x80000000
}

Public Member Functions

 LLPartData ()
BOOL unpack (LLDataPacker &dp)
BOOL pack (LLDataPacker &dp)
LLSD asLLSD () const
 operator LLSD () const
bool fromLLSD (LLSD &sd)
void setFlags (const U32 flags)
void setMaxAge (const F32 max_age)
void setStartScale (const F32 xs, F32 ys)
void setEndScale (const F32 xs, F32 ys)
void setStartColor (const LLVector3 &rgb)
void setEndColor (const LLVector3 &rgb)
void setStartAlpha (const F32 alpha)
void setEndAlpha (const F32 alpha)

Public Attributes

U32 mFlags
F32 mMaxAge
LLColor4 mStartColor
LLColor4 mEndColor
LLVector2 mStartScale
LLVector2 mEndScale
LLVector3 mPosOffset
F32 mParameter

Friends

class LLPartSysData
class LLViewerPartSourceScript


Detailed Description

Definition at line 82 of file llpartdata.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
LL_PART_INTERP_COLOR_MASK 
LL_PART_INTERP_SCALE_MASK 
LL_PART_BOUNCE_MASK 
LL_PART_WIND_MASK 
LL_PART_FOLLOW_SRC_MASK 
LL_PART_FOLLOW_VELOCITY_MASK 
LL_PART_TARGET_POS_MASK 
LL_PART_TARGET_LINEAR_MASK 
LL_PART_EMISSIVE_MASK 
LL_PART_BEAM_MASK 
LL_PART_DEAD_MASK 

Definition at line 98 of file llpartdata.h.


Constructor & Destructor Documentation

LLPartData::LLPartData (  )  [inline]

Definition at line 85 of file llpartdata.h.


Member Function Documentation

BOOL LLPartData::unpack ( LLDataPacker dp  ) 

Definition at line 89 of file llpartdata.cpp.

References FALSE, mEndColor, mEndScale, mFlags, mMaxAge, mStartColor, mStartScale, LLVector2::mV, LLColor4::setVec(), TRUE, LLDataPacker::unpackColor4U(), LLDataPacker::unpackFixed(), and LLDataPacker::unpackU32().

Referenced by LLPartSysData::unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPartData::pack ( LLDataPacker dp  ) 

Definition at line 49 of file llpartdata.cpp.

References FALSE, mEndColor, mEndScale, mFlags, mMaxAge, mStartColor, mStartScale, LLVector2::mV, LLDataPacker::packColor4U(), LLDataPacker::packFixed(), LLDataPacker::packU32(), LLColor4U::setVec(), and TRUE.

Referenced by LLPartSysData::pack().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLPartData::asLLSD (  )  const

Definition at line 65 of file llpartdata.cpp.

References ll_sd_from_color4(), ll_sd_from_U32(), ll_sd_from_vector2(), mEndColor, mEndScale, mFlags, mMaxAge, mStartColor, mStartScale, and tut::sd().

Referenced by operator LLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

LLPartData::operator LLSD (  )  const [inline]

Definition at line 94 of file llpartdata.h.

References asLLSD().

Here is the call graph for this function:

bool LLPartData::fromLLSD ( LLSD sd  ) 

Definition at line 77 of file llpartdata.cpp.

References ll_color4_from_sd(), ll_U32_from_sd(), ll_vector2_from_sd(), mEndColor, mEndScale, mFlags, mMaxAge, mStartColor, and mStartScale.

Here is the call graph for this function:

void LLPartData::setFlags ( const U32  flags  ) 

Definition at line 108 of file llpartdata.cpp.

References mFlags.

void LLPartData::setMaxAge ( const F32  max_age  ) 

Definition at line 114 of file llpartdata.cpp.

References llclamp(), and mMaxAge.

Here is the call graph for this function:

void LLPartData::setStartScale ( const F32  xs,
F32  ys 
)

Definition at line 120 of file llpartdata.cpp.

References llmin(), MAX_PART_SCALE, mStartScale, LLVector2::mV, VX, and VY.

Here is the call graph for this function:

void LLPartData::setEndScale ( const F32  xs,
F32  ys 
)

Definition at line 127 of file llpartdata.cpp.

References llmin(), MAX_PART_SCALE, mEndScale, LLVector2::mV, VX, and VY.

Here is the call graph for this function:

void LLPartData::setStartColor ( const LLVector3 rgb  ) 

Definition at line 134 of file llpartdata.cpp.

References mStartColor, LLVector3::mV, and LLColor4::setVec().

Here is the call graph for this function:

void LLPartData::setEndColor ( const LLVector3 rgb  ) 

Definition at line 140 of file llpartdata.cpp.

References mEndColor, LLVector3::mV, and LLColor4::setVec().

Here is the call graph for this function:

void LLPartData::setStartAlpha ( const F32  alpha  ) 

Definition at line 145 of file llpartdata.cpp.

References mStartColor, and LLColor4::mV.

void LLPartData::setEndAlpha ( const F32  alpha  ) 

Definition at line 149 of file llpartdata.cpp.

References mEndColor, and LLColor4::mV.


Friends And Related Function Documentation

friend class LLPartSysData [friend]

Definition at line 130 of file llpartdata.h.

friend class LLViewerPartSourceScript [friend]

Definition at line 131 of file llpartdata.h.


Member Data Documentation

Definition at line 142 of file llpartdata.h.

Referenced by LLViewerPartGroup::updateParticles().


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

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