LLFlexibleObjectData Class Reference

#include <llprimitive.h>

Inheritance diagram for LLFlexibleObjectData:

Inheritance graph
[legend]
Collaboration diagram for LLFlexibleObjectData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void setSimulateLOD (S32 lod)
void setGravity (F32 gravity)
void setAirFriction (F32 friction)
void setWindSensitivity (F32 wind)
void setTension (F32 tension)
void setUserForce (LLVector3 &force)
S32 getSimulateLOD () const
F32 getGravity () const
F32 getAirFriction () const
F32 getWindSensitivity () const
F32 getTension () const
LLVector3 getUserForce () const
 LLFlexibleObjectData ()
BOOL pack (LLDataPacker &dp) const
BOOL unpack (LLDataPacker &dp)
bool operator== (const LLNetworkData &data) const
void copy (const LLNetworkData &data)
LLSD asLLSD () const
 operator LLSD () const
bool fromLLSD (LLSD &sd)

Protected Attributes

S32 mSimulateLOD
F32 mGravity
F32 mAirFriction
F32 mWindSensitivity
F32 mTension
LLVector3 mUserForce


Detailed Description

Definition at line 206 of file llprimitive.h.


Constructor & Destructor Documentation

LLFlexibleObjectData::LLFlexibleObjectData (  ) 


Member Function Documentation

void LLFlexibleObjectData::setSimulateLOD ( S32  lod  )  [inline]

Definition at line 219 of file llprimitive.h.

References FLEXIBLE_OBJECT_MAX_SECTIONS, FLEXIBLE_OBJECT_MIN_SECTIONS, llclamp(), mSimulateLOD, and S32.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFlexibleObjectData::setGravity ( F32  gravity  )  [inline]

Definition at line 220 of file llprimitive.h.

References FLEXIBLE_OBJECT_MAX_GRAVITY, FLEXIBLE_OBJECT_MIN_GRAVITY, llclamp(), and mGravity.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFlexibleObjectData::setAirFriction ( F32  friction  )  [inline]

Definition at line 221 of file llprimitive.h.

References FLEXIBLE_OBJECT_MAX_AIR_FRICTION, FLEXIBLE_OBJECT_MIN_AIR_FRICTION, llclamp(), and mAirFriction.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFlexibleObjectData::setWindSensitivity ( F32  wind  )  [inline]

Definition at line 222 of file llprimitive.h.

References FLEXIBLE_OBJECT_MAX_WIND_SENSITIVITY, FLEXIBLE_OBJECT_MIN_WIND_SENSITIVITY, llclamp(), and mWindSensitivity.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFlexibleObjectData::setTension ( F32  tension  )  [inline]

Definition at line 223 of file llprimitive.h.

References FLEXIBLE_OBJECT_MAX_TENSION, FLEXIBLE_OBJECT_MIN_TENSION, llclamp(), and mTension.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFlexibleObjectData::setUserForce ( LLVector3 force  )  [inline]

Definition at line 224 of file llprimitive.h.

References mUserForce.

Referenced by fromLLSD(), and LLPanelVolume::onCommitFlexible().

Here is the caller graph for this function:

S32 LLFlexibleObjectData::getSimulateLOD (  )  const [inline]

Definition at line 226 of file llprimitive.h.

References mSimulateLOD.

Referenced by asLLSD(), LLVolumeImplFlexible::doIdleUpdate(), LLVolumeImplFlexible::getEndPosition(), LLVolumeImplFlexible::getNodePosition(), and LLPanelVolume::getState().

Here is the caller graph for this function:

F32 LLFlexibleObjectData::getGravity (  )  const [inline]

Definition at line 227 of file llprimitive.h.

References mGravity.

Referenced by asLLSD(), LLVolumeImplFlexible::doFlexibleUpdate(), and LLPanelVolume::getState().

Here is the caller graph for this function:

F32 LLFlexibleObjectData::getAirFriction (  )  const [inline]

Definition at line 228 of file llprimitive.h.

References mAirFriction.

Referenced by asLLSD(), LLVolumeImplFlexible::doFlexibleUpdate(), and LLPanelVolume::getState().

Here is the caller graph for this function:

F32 LLFlexibleObjectData::getWindSensitivity (  )  const [inline]

Definition at line 229 of file llprimitive.h.

References mWindSensitivity.

Referenced by asLLSD(), LLVolumeImplFlexible::doFlexibleUpdate(), and LLPanelVolume::getState().

Here is the caller graph for this function:

F32 LLFlexibleObjectData::getTension (  )  const [inline]

Definition at line 230 of file llprimitive.h.

References mTension.

Referenced by asLLSD(), LLVolumeImplFlexible::doFlexibleUpdate(), and LLPanelVolume::getState().

Here is the caller graph for this function:

LLVector3 LLFlexibleObjectData::getUserForce (  )  const [inline]

Definition at line 231 of file llprimitive.h.

References mUserForce.

Referenced by asLLSD(), LLVolumeImplFlexible::doFlexibleUpdate(), and LLPanelVolume::getState().

Here is the caller graph for this function:

BOOL LLFlexibleObjectData::pack ( LLDataPacker dp  )  const [virtual]

Implements LLNetworkData.

Definition at line 1892 of file llprimitive.cpp.

References mAirFriction, mGravity, mSimulateLOD, mTension, mUserForce, mWindSensitivity, LLDataPacker::packU8(), LLDataPacker::packVector3(), and TRUE.

Here is the call graph for this function:

BOOL LLFlexibleObjectData::unpack ( LLDataPacker dp  )  [virtual]

bool LLFlexibleObjectData::operator== ( const LLNetworkData data  )  const [virtual]

void LLFlexibleObjectData::copy ( const LLNetworkData data  )  [virtual]

Implements LLNetworkData.

Definition at line 1944 of file llprimitive.cpp.

References mAirFriction, mGravity, mSimulateLOD, mTension, mUserForce, and mWindSensitivity.

LLSD LLFlexibleObjectData::asLLSD (  )  const

Definition at line 1957 of file llprimitive.cpp.

References getAirFriction(), getGravity(), getSimulateLOD(), getTension(), getUserForce(), LLVector3::getValue(), getWindSensitivity(), and tut::sd().

Referenced by operator LLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

LLFlexibleObjectData::operator LLSD (  )  const [inline]

Definition at line 240 of file llprimitive.h.

References asLLSD().

Here is the call graph for this function:

bool LLFlexibleObjectData::fromLLSD ( LLSD sd  ) 

Definition at line 1971 of file llprimitive.cpp.

References LLSD::has(), ll_vector3_from_sd(), setAirFriction(), setGravity(), setSimulateLOD(), setTension(), setUserForce(), and setWindSensitivity().

Here is the call graph for this function:


Member Data Documentation

Definition at line 210 of file llprimitive.h.

Referenced by copy(), getGravity(), LLFlexibleObjectData(), operator==(), pack(), setGravity(), and unpack().

Definition at line 213 of file llprimitive.h.

Referenced by copy(), getTension(), LLFlexibleObjectData(), operator==(), pack(), setTension(), and unpack().


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

Generated on Fri May 16 08:44:43 2008 for SecondLife by  doxygen 1.5.5