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

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


Constructor & Destructor Documentation

LLPartData::LLPartData (  )  [inline]

Definition at line 85 of file llpartdata.h.


Member Function Documentation

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

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, mStartScale, and tut::sd().

LLPartData::operator LLSD (  )  const [inline]

Definition at line 93 of file llpartdata.h.

References asLLSD().

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

void LLPartData::setEndAlpha ( const F32  alpha  ) 

Definition at line 149 of file llpartdata.cpp.

References mEndColor, and LLColor4::mV.

void LLPartData::setEndColor ( const LLVector3 rgb  ) 

Definition at line 140 of file llpartdata.cpp.

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

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.

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 f, llclamp(), and mMaxAge.

void LLPartData::setStartAlpha ( const F32  alpha  ) 

Definition at line 145 of file llpartdata.cpp.

References mStartColor, and LLColor4::mV.

void LLPartData::setStartColor ( const LLVector3 rgb  ) 

Definition at line 134 of file llpartdata.cpp.

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

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.

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


Friends And Related Function Documentation

friend class LLPartSysData [friend]

Definition at line 129 of file llpartdata.h.

friend class LLViewerPartSourceScript [friend]

Definition at line 130 of file llpartdata.h.


Member Data Documentation

LLColor4 LLPartData::mEndColor

Definition at line 137 of file llpartdata.h.

Referenced by asLLSD(), fromLLSD(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), setEndAlpha(), setEndColor(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartGroup::updateParticles(), and LLFloaterEventLog::updateSelectedEventInfo().

LLVector2 LLPartData::mEndScale

Definition at line 139 of file llpartdata.h.

Referenced by asLLSD(), fromLLSD(), LLParticleEvent::getScore(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), setEndScale(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartGroup::updateParticles(), and LLFloaterEventLog::updateSelectedEventInfo().

U32 LLPartData::mFlags

Definition at line 134 of file llpartdata.h.

Referenced by LLViewerPartGroup::addPart(), asLLSD(), fromLLSD(), LLVOPartGroup::getGeometry(), LLParticleEvent::getScore(), LLViewerPart::init(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), LLViewerPartSim::put(), setFlags(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartSourceBeam::updatePart(), LLViewerPartGroup::updateParticles(), and LLFloaterEventLog::updateSelectedEventInfo().

F32 LLPartData::mMaxAge

Definition at line 135 of file llpartdata.h.

Referenced by asLLSD(), fromLLSD(), LLParticleEvent::getScore(), LLViewerPart::init(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), setMaxAge(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartSourceChat::updatePart(), LLViewerPartSourceBeam::updatePart(), LLViewerPartSourceSpiral::updatePart(), and LLViewerPartGroup::updateParticles().

F32 LLPartData::mParameter

Definition at line 142 of file llpartdata.h.

Referenced by LLViewerPart::operator=(), LLViewerPartSourceChat::updatePart(), and LLViewerPartSourceSpiral::updatePart().

LLVector3 LLPartData::mPosOffset

Definition at line 141 of file llpartdata.h.

Referenced by LLViewerPart::operator=(), and LLViewerPartGroup::updateParticles().

LLColor4 LLPartData::mStartColor

Definition at line 136 of file llpartdata.h.

Referenced by asLLSD(), fromLLSD(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), setStartAlpha(), setStartColor(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartGroup::updateParticles(), and LLFloaterEventLog::updateSelectedEventInfo().

LLVector2 LLPartData::mStartScale

Definition at line 138 of file llpartdata.h.

Referenced by asLLSD(), fromLLSD(), LLParticleEvent::getScore(), LLPartSysData::LLPartSysData(), LLViewerPart::operator=(), pack(), setStartScale(), unpack(), LLViewerPartSourceScript::update(), LLViewerPartGroup::updateParticles(), and LLFloaterEventLog::updateSelectedEventInfo().


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