LLPrimitive Class Reference

#include <llprimitive.h>

Inheritance diagram for LLPrimitive:

Inheritance graph
[legend]
Collaboration diagram for LLPrimitive:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPrimitive ()
virtual ~LLPrimitive ()
void init_primitive (LLPCode p_code)
void setPCode (const LLPCode pcode)
const LLVolumegetVolumeConst () const
LLVolumegetVolume () const
virtual BOOL setVolume (const LLVolumeParams &volume_params, const S32 detail, bool unique_volume=false)
BOOL validTE (const U8 te_num) const
const LLTextureEntrygetTE (const U8 te_num) const
virtual void setNumTEs (const U8 num_tes)
virtual void setAllTETextures (const LLUUID &tex_id)
virtual void setTE (const U8 index, const LLTextureEntry &te)
virtual S32 setTEColor (const U8 te, const LLColor4 &color)
virtual S32 setTEColor (const U8 te, const LLColor3 &color)
virtual S32 setTEAlpha (const U8 te, const F32 alpha)
virtual S32 setTETexture (const U8 te, const LLUUID &tex_id)
virtual S32 setTEScale (const U8 te, const F32 s, const F32 t)
virtual S32 setTEScaleS (const U8 te, const F32 s)
virtual S32 setTEScaleT (const U8 te, const F32 t)
virtual S32 setTEOffset (const U8 te, const F32 s, const F32 t)
virtual S32 setTEOffsetS (const U8 te, const F32 s)
virtual S32 setTEOffsetT (const U8 te, const F32 t)
virtual S32 setTERotation (const U8 te, const F32 r)
virtual S32 setTEBumpShinyFullbright (const U8 te, const U8 bump)
virtual S32 setTEBumpShiny (const U8 te, const U8 bump)
virtual S32 setTEMediaTexGen (const U8 te, const U8 media)
virtual S32 setTEBumpmap (const U8 te, const U8 bump)
virtual S32 setTETexGen (const U8 te, const U8 texgen)
virtual S32 setTEShiny (const U8 te, const U8 shiny)
virtual S32 setTEFullbright (const U8 te, const U8 fullbright)
virtual S32 setTEMediaFlags (const U8 te, const U8 flags)
virtual S32 setTEGlow (const U8 te, const F32 glow)
virtual BOOL setMaterial (const U8 material)
void setTEArrays (const U8 size, const LLUUID *image_ids, const F32 *scale_s, const F32 *scale_t)
void copyTEs (const LLPrimitive *primitive)
S32 packTEField (U8 *cur_ptr, U8 *data_ptr, U8 data_size, U8 last_face_index, EMsgVariableType type) const
S32 unpackTEField (U8 *cur_ptr, U8 *buffer_end, U8 *data_ptr, U8 data_size, U8 face_count, EMsgVariableType type)
BOOL packTEMessage (LLMessageSystem *mesgsys) const
BOOL packTEMessage (LLDataPacker &dp) const
S32 unpackTEMessage (LLMessageSystem *mesgsys, char *block_name)
S32 unpackTEMessage (LLMessageSystem *mesgsys, char *block_name, const S32 block_num)
BOOL unpackTEMessage (LLDataPacker &dp)
void setAngularVelocity (const LLVector3 &avel)
void setAngularVelocity (const F32 x, const F32 y, const F32 z)
void setVelocity (const LLVector3 &vel)
void setVelocity (const F32 x, const F32 y, const F32 z)
void setVelocityX (const F32 x)
void setVelocityY (const F32 y)
void setVelocityZ (const F32 z)
void addVelocity (const LLVector3 &vel)
void setAcceleration (const LLVector3 &accel)
void setAcceleration (const F32 x, const F32 y, const F32 z)
LLPCode getPCode () const
const char * getPCodeString () const
const LLVector3getAngularVelocity () const
const LLVector3getVelocity () const
const LLVector3getAcceleration () const
U8 getNumTEs () const
U8 getMaterial () const
void setVolumeType (const U8 code)
U8 getVolumeType ()
void setTextureList (LLTextureEntry *listp)
BOOL isAvatar () const
BOOL isSittingAvatar () const
BOOL isSittingAvatarOnGround () const
void setFlags (U32 flags)
void addFlags (U32 flags)
void removeFlags (U32 flags)
U32 getFlags () const

Static Public Member Functions

static LLVolumeMgrgetVolumeManager ()
static void setVolumeManager (LLVolumeMgr *volume_manager)
static bool cleanupVolumeManager ()
static LLPrimitivecreatePrimitive (LLPCode p_code)
static const char * pCodeToString (const LLPCode pcode)
static LLPCode legacyToPCode (const U8 legacy)
static U8 pCodeToLegacy (const LLPCode pcode)
static bool getTESTAxes (const U8 face, U32 *s_axis, U32 *t_axis)
static BOOL isPrimitive (const LLPCode pcode)
static BOOL isApp (const LLPCode pcode)

Static Public Attributes

static const U32 PRIM_FLAG_PHANTOM = 0x1 << 0
static const U32 PRIM_FLAG_VOLUME_DETECT = 0x1 << 1
static const U32 PRIM_FLAG_DYNAMIC = 0x1 << 2
static const U32 PRIM_FLAG_AVATAR = 0x1 << 3
static const U32 PRIM_FLAG_SCULPT = 0x1 << 4
static const U32 PRIM_FLAG_COLLISION_CALLBACK = 0x1 << 5
static const U32 PRIM_FLAG_CONVEX = 0x1 << 6
static const U32 PRIM_FLAG_DEFAULT_VOLUME = 0x1 << 7
static const U32 PRIM_FLAG_SITTING = 0x1 << 8
static const U32 PRIM_FLAG_SITTING_ON_GROUND = 0x1 << 9

Protected Attributes

LLPCode mPrimitiveCode
LLVector3 mVelocity
LLVector3 mAcceleration
LLVector3 mAngularVelocity
LLPointer< LLVolumemVolumep
LLTextureEntrymTextureList
U8 mMaterial
U8 mNumTEs
U32 mMiscFlags

Static Protected Attributes

static LLVolumeMgrsVolumeManager = NULL


Detailed Description

Definition at line 270 of file llprimitive.h.


Constructor & Destructor Documentation

LLPrimitive::LLPrimitive (  ) 

LLPrimitive::~LLPrimitive (  )  [virtual]

Definition at line 171 of file llprimitive.cpp.

References mTextureList, mVolumep, NULL, sVolumeManager, and LLVolumeMgr::unrefVolume().

Here is the call graph for this function:


Member Function Documentation

static LLVolumeMgr* LLPrimitive::getVolumeManager (  )  [inline, static]

Definition at line 277 of file llprimitive.h.

References sVolumeManager.

Referenced by LLAppViewer::cleanup().

Here is the caller graph for this function:

void LLPrimitive::setVolumeManager ( LLVolumeMgr volume_manager  )  [static]

Definition at line 123 of file llprimitive.cpp.

References llendl, llerrs, and sVolumeManager.

Referenced by LLAppViewer::initConfiguration().

Here is the caller graph for this function:

bool LLPrimitive::cleanupVolumeManager (  )  [static]

Definition at line 133 of file llprimitive.cpp.

References LLVolumeMgr::cleanup(), FALSE, NULL, and sVolumeManager.

Referenced by LLAppViewer::cleanup().

Here is the call graph for this function:

Here is the caller graph for this function:

LLPrimitive * LLPrimitive::createPrimitive ( LLPCode  p_code  )  [static]

Definition at line 189 of file llprimitive.cpp.

References init_primitive(), llendl, llerrs, LLPrimitive(), and LLMemType::MTYPE_PRIMITIVE.

Here is the call graph for this function:

void LLPrimitive::init_primitive ( LLPCode  p_code  ) 

Definition at line 207 of file llprimitive.cpp.

References mNumTEs, mPrimitiveCode, mTextureList, and LLMemType::MTYPE_PRIMITIVE.

Referenced by createPrimitive(), and LLViewerObject::LLViewerObject().

Here is the caller graph for this function:

void LLPrimitive::setPCode ( const LLPCode  pcode  ) 

const LLVolume* LLPrimitive::getVolumeConst (  )  const [inline]

Definition at line 301 of file llprimitive.h.

References mVolumep.

LLVolume* LLPrimitive::getVolume (  )  const [inline]

BOOL LLPrimitive::setVolume ( const LLVolumeParams volume_params,
const S32  detail,
bool  unique_volume = false 
) [virtual]

BOOL LLPrimitive::validTE ( const U8  te_num  )  const [inline]

Definition at line 613 of file llprimitive.h.

References mNumTEs.

const LLTextureEntry * LLPrimitive::getTE ( const U8  te_num  )  const

void LLPrimitive::setNumTEs ( const U8  num_tes  )  [virtual]

Reimplemented in LLViewerObject.

Definition at line 242 of file llprimitive.cpp.

References i, mNumTEs, mTextureList, LLMemType::MTYPE_PRIMITIVE, and NULL.

Referenced by LLViewerObject::setNumTEs(), and setVolume().

Here is the caller graph for this function:

void LLPrimitive::setAllTETextures ( const LLUUID tex_id  )  [virtual]

Definition at line 287 of file llprimitive.cpp.

References i, mNumTEs, mTextureList, and LLTextureEntry::setID().

Here is the call graph for this function:

void LLPrimitive::setTE ( const U8  index,
const LLTextureEntry te 
) [virtual]

Reimplemented in LLViewerObject.

Definition at line 298 of file llprimitive.cpp.

References mTextureList.

Referenced by LLViewerObject::setTE(), and setVolume().

Here is the caller graph for this function:

S32 LLPrimitive::setTEColor ( const U8  te,
const LLColor4 color 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 315 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setColor().

Referenced by copyTEs(), LLViewerObject::setTEColor(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEColor ( const U8  te,
const LLColor3 color 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 327 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setColor().

Here is the call graph for this function:

S32 LLPrimitive::setTEAlpha ( const U8  te,
const F32  alpha 
) [virtual]

Definition at line 339 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setAlpha().

Here is the call graph for this function:

S32 LLPrimitive::setTETexture ( const U8  te,
const LLUUID tex_id 
) [virtual]

Reimplemented in LLViewerObject, LLVOAvatar, and LLVOVolume.

Definition at line 303 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setID().

Referenced by copyTEs(), setTEArrays(), LLViewerObject::setTEImage(), LLViewerObject::setTETextureCore(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEScale ( const U8  te,
const F32  s,
const F32  t 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 352 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setScale().

Referenced by copyTEs(), setTEArrays(), LLViewerObject::setTEScale(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEScaleS ( const U8  te,
const F32  s 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 367 of file llprimitive.cpp.

References LLTextureEntry::getScale(), llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setScale().

Referenced by LLViewerObject::setTEScaleS().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEScaleT ( const U8  te,
const F32  t 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 383 of file llprimitive.cpp.

References LLTextureEntry::getScale(), llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setScale().

Referenced by LLViewerObject::setTEScaleT().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEOffset ( const U8  te,
const F32  s,
const F32  t 
) [virtual]

Reimplemented in LLViewerObject.

Definition at line 398 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setOffset().

Referenced by copyTEs(), LLViewerObject::setTEOffset(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEOffsetS ( const U8  te,
const F32  s 
) [virtual]

Reimplemented in LLViewerObject.

Definition at line 413 of file llprimitive.cpp.

References LLTextureEntry::getOffset(), llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setOffset().

Referenced by LLViewerObject::setTEOffsetS().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEOffsetT ( const U8  te,
const F32  t 
) [virtual]

Reimplemented in LLViewerObject.

Definition at line 429 of file llprimitive.cpp.

References LLTextureEntry::getOffset(), llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setOffset().

Referenced by LLViewerObject::setTEOffsetT().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTERotation ( const U8  te,
const F32  r 
) [virtual]

Reimplemented in LLViewerObject.

Definition at line 444 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setRotation().

Referenced by copyTEs(), LLViewerObject::setTERotation(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEBumpShinyFullbright ( const U8  te,
const U8  bump 
) [virtual]

Definition at line 458 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShinyFullbright().

Referenced by copyTEs(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEBumpShiny ( const U8  te,
const U8  bump 
) [virtual]

Definition at line 494 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShiny().

Here is the call graph for this function:

S32 LLPrimitive::setTEMediaTexGen ( const U8  te,
const U8  media 
) [virtual]

Definition at line 470 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setMediaTexGen().

Referenced by copyTEs(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEBumpmap ( const U8  te,
const U8  bump 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 482 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpmap().

Referenced by LLViewerObject::setTEBumpmap().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTETexGen ( const U8  te,
const U8  texgen 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 506 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setTexGen().

Referenced by LLViewerObject::setTETexGen().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEShiny ( const U8  te,
const U8  shiny 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 518 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setShiny().

Referenced by LLViewerObject::setTEShiny().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEFullbright ( const U8  te,
const U8  fullbright 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 530 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setFullbright().

Referenced by LLViewerObject::setTEFullbright().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEMediaFlags ( const U8  te,
const U8  flags 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 542 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setMediaFlags().

Referenced by LLViewerObject::setTEMediaFlags().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::setTEGlow ( const U8  te,
const F32  glow 
) [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 554 of file llprimitive.cpp.

References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setGlow().

Referenced by copyTEs(), LLViewerObject::setTEGlow(), and unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPrimitive::setMaterial ( const U8  material  )  [virtual]

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 1174 of file llprimitive.cpp.

References FALSE, mMaterial, and TRUE.

Referenced by LLViewerObject::setMaterial().

Here is the caller graph for this function:

void LLPrimitive::setTEArrays ( const U8  size,
const LLUUID image_ids,
const F32 scale_s,
const F32 scale_t 
)

Definition at line 1187 of file llprimitive.cpp.

References getNumTEs(), i, llendl, llwarns, NULL, S32, setTEScale(), and setTETexture().

Here is the call graph for this function:

void LLPrimitive::copyTEs ( const LLPrimitive primitive  ) 

S32 LLPrimitive::packTEField ( U8 cur_ptr,
U8 data_ptr,
U8  data_size,
U8  last_face_index,
EMsgVariableType  type 
) const

Definition at line 1233 of file llprimitive.cpp.

References FALSE, htonmemcpy(), i, S32, and TRUE.

Referenced by packTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLPrimitive::unpackTEField ( U8 cur_ptr,
U8 buffer_end,
U8 data_ptr,
U8  data_size,
U8  face_count,
EMsgVariableType  type 
)

Definition at line 1293 of file llprimitive.cpp.

References htonmemcpy(), i, j, and S32.

Referenced by unpackTEMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPrimitive::packTEMessage ( LLMessageSystem mesgsys  )  const

BOOL LLPrimitive::packTEMessage ( LLDataPacker dp  )  const

S32 LLPrimitive::unpackTEMessage ( LLMessageSystem mesgsys,
char *  block_name 
)

Definition at line 1495 of file llprimitive.cpp.

Referenced by LLVOAvatar::processAvatarAppearance(), LLVOVolume::processUpdateMessage(), and LLVOAvatar::processUpdateMessage().

Here is the caller graph for this function:

S32 LLPrimitive::unpackTEMessage ( LLMessageSystem mesgsys,
char *  block_name,
const S32  block_num 
)

S32 LLPrimitive::unpackTEMessage ( LLDataPacker dp  ) 

void LLPrimitive::setAngularVelocity ( const LLVector3 avel  )  [inline]

void LLPrimitive::setAngularVelocity ( const F32  x,
const F32  y,
const F32  z 
) [inline]

Definition at line 369 of file llprimitive.h.

References mAngularVelocity, and LLVector3::setVec().

Here is the call graph for this function:

void LLPrimitive::setVelocity ( const LLVector3 vel  )  [inline]

void LLPrimitive::setVelocity ( const F32  x,
const F32  y,
const F32  z 
) [inline]

Definition at line 371 of file llprimitive.h.

References mVelocity, and LLVector3::setVec().

Here is the call graph for this function:

void LLPrimitive::setVelocityX ( const F32  x  )  [inline]

Definition at line 372 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VX.

void LLPrimitive::setVelocityY ( const F32  y  )  [inline]

Definition at line 373 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VY.

void LLPrimitive::setVelocityZ ( const F32  z  )  [inline]

Definition at line 374 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VZ.

void LLPrimitive::addVelocity ( const LLVector3 vel  )  [inline]

Definition at line 375 of file llprimitive.h.

References mVelocity.

void LLPrimitive::setAcceleration ( const LLVector3 accel  )  [inline]

Definition at line 376 of file llprimitive.h.

References mAcceleration.

Referenced by LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), and LLSelectMgr::selectObjectAndFamily().

Here is the caller graph for this function:

void LLPrimitive::setAcceleration ( const F32  x,
const F32  y,
const F32  z 
) [inline]

Definition at line 377 of file llprimitive.h.

References mAcceleration, and LLVector3::setVec().

Here is the call graph for this function:

LLPCode LLPrimitive::getPCode (  )  const [inline]

const char* LLPrimitive::getPCodeString (  )  const [inline]

Definition at line 381 of file llprimitive.h.

References mPrimitiveCode, and pCodeToString().

Referenced by LLViewerObjectList::findOrphans().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLVector3& LLPrimitive::getAngularVelocity (  )  const [inline]

const LLVector3& LLPrimitive::getVelocity (  )  const [inline]

const LLVector3& LLPrimitive::getAcceleration (  )  const [inline]

Definition at line 384 of file llprimitive.h.

References mAcceleration.

Referenced by LLViewerObject::idleUpdate(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), and LLViewerObject::processUpdateMessage().

Here is the caller graph for this function:

U8 LLPrimitive::getNumTEs (  )  const [inline]

U8 LLPrimitive::getMaterial (  )  const [inline]

Definition at line 387 of file llprimitive.h.

References mMaterial.

Referenced by LLViewerObject::processUpdateMessage(), LLVOAvatar::resolveHeightGlobal(), and LLViewerObject::sendMaterialUpdate().

Here is the caller graph for this function:

void LLPrimitive::setVolumeType ( const U8  code  ) 

U8 LLPrimitive::getVolumeType (  ) 

void LLPrimitive::setTextureList ( LLTextureEntry listp  ) 

Definition at line 1692 of file llprimitive.cpp.

References mTextureList.

BOOL LLPrimitive::isAvatar (  )  const [inline]

Definition at line 425 of file llprimitive.h.

References FALSE, LL_PCODE_LEGACY_AVATAR, mPrimitiveCode, and TRUE.

Referenced by LLViewerObject::addChild(), LLToolPlacer::addDuplicate(), LLToolPlacer::addObject(), LLViewerObject::addThisAndAllChildren(), LLViewerObject::addThisAndNonJointChildren(), LLPanelGroupInvite::addUsers(), LLViewerWindow::analyzeHit(), LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLSelectMgr::canSelectObject(), complete_give_money(), LLToolDragAndDrop::dad3dRezScript(), LLToolDragAndDrop::dad3dUpdateInventory(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), derez_objects(), LLSelectMgr::deselectObjectAndFamily(), LLVolumeImplFlexible::doUpdateGeometry(), LLManipScale::drag(), LLManipRotate::drag(), LLManipScale::dragCorner(), LLHoverView::draw(), enable_take(), find_avatar(), find_avatar_from_object(), LLVOAvatar::findAvatarFromAttachment(), LLViewerObject::getBoundingBoxAgent(), LLFloaterReporter::getObjectInfo(), LLFloaterPay::give(), LLAttachmentDetach::handleEvent(), LLAttachmentDrop::handleEvent(), LLAvatarGiveCard::handleEvent(), LLToolPie::handleHover(), LLToolTexEyedropper::handleMouseDown(), LLToolGrab::handleObjectHit(), LLToolSelect::handleObjectSelection(), invite_to_group(), LLMuteList::isMuted(), LLVOVolume::isRootEdit(), LLViewerObject::isSeat(), LLAgent::lookAtLastChat(), LLToolPie::pickAndShowMenu(), LLToolFace::pickCallback(), LLToolDragAndDrop::pickCallback(), process_chat_from_simulator(), process_offer_callingcard(), LLViewerObject::processUpdateMessage(), LLViewerObject::removeChild(), LLSelectMgr::removeObjectFromSelections(), renderPhysicalBeacons(), renderScriptedBeacons(), renderScriptedTouchBeacons(), request_friendship(), LLSelectMgr::selectObjectAndFamily(), LLAgent::setFocusGlobal(), LLViewerObject::setPositionAbsoluteGlobal(), LLViewerObject::setPositionGlobal(), LLHUDEffectPointAt::setSourceObject(), LLHUDEffectLookAt::setSourceObject(), LLSpatialBridge::setVisible(), LLAgent::startTyping(), LLManipScale::stretchFace(), LLHUDEffectPointAt::unpackData(), LLHUDEffectLookAt::unpackData(), LLViewerObjectList::update(), LLAudioSourceVO::updateGain(), and LLHoverView::updateText().

BOOL LLPrimitive::isSittingAvatar (  )  const [inline]

Definition at line 430 of file llprimitive.h.

References FALSE, getFlags(), LL_PCODE_LEGACY_AVATAR, mPrimitiveCode, PRIM_FLAG_SITTING, PRIM_FLAG_SITTING_ON_GROUND, and TRUE.

Here is the call graph for this function:

BOOL LLPrimitive::isSittingAvatarOnGround (  )  const [inline]

Definition at line 437 of file llprimitive.h.

References FALSE, getFlags(), LL_PCODE_LEGACY_AVATAR, mPrimitiveCode, PRIM_FLAG_SITTING_ON_GROUND, and TRUE.

Here is the call graph for this function:

void LLPrimitive::setFlags ( U32  flags  )  [inline]

Definition at line 398 of file llprimitive.h.

References mMiscFlags.

void LLPrimitive::addFlags ( U32  flags  )  [inline]

Definition at line 399 of file llprimitive.h.

References mMiscFlags.

void LLPrimitive::removeFlags ( U32  flags  )  [inline]

Definition at line 400 of file llprimitive.h.

References mMiscFlags.

U32 LLPrimitive::getFlags (  )  const [inline]

Definition at line 401 of file llprimitive.h.

References mMiscFlags.

Referenced by isSittingAvatar(), and isSittingAvatarOnGround().

Here is the caller graph for this function:

const char * LLPrimitive::pCodeToString ( const LLPCode  pcode  )  [static]

LLPCode LLPrimitive::legacyToPCode ( const U8  legacy  )  [static]

U8 LLPrimitive::pCodeToLegacy ( const LLPCode  pcode  )  [static]

bool LLPrimitive::getTESTAxes ( const U8  face,
U32 s_axis,
U32 t_axis 
) [static]

Definition at line 1706 of file llprimitive.cpp.

References VX, VY, and VZ.

Referenced by LLSelectMgr::adjustTexturesByScale(), LLPanelFace::getState(), LLSelectNode::saveTextureScaleRatios(), and LLSelectMgr::selectionTexScaleAutofit().

Here is the caller graph for this function:

BOOL LLPrimitive::isPrimitive ( const LLPCode  pcode  )  [inline, static]

Definition at line 445 of file llprimitive.h.

References FALSE, LL_PCODE_APP, LL_PCODE_BASE_MASK, and TRUE.

Referenced by LLToolPie::useClickAction().

Here is the caller graph for this function:

BOOL LLPrimitive::isApp ( const LLPCode  pcode  )  [inline, static]

Definition at line 457 of file llprimitive.h.

References LL_PCODE_APP, and LL_PCODE_BASE_MASK.


Member Data Documentation

const U32 LLPrimitive::PRIM_FLAG_PHANTOM = 0x1 << 0 [static]

Definition at line 282 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_VOLUME_DETECT = 0x1 << 1 [static]

Definition at line 283 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_DYNAMIC = 0x1 << 2 [static]

Definition at line 284 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_AVATAR = 0x1 << 3 [static]

Definition at line 285 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_SCULPT = 0x1 << 4 [static]

Definition at line 286 of file llprimitive.h.

Definition at line 288 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_CONVEX = 0x1 << 6 [static]

Definition at line 289 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_DEFAULT_VOLUME = 0x1 << 7 [static]

Definition at line 290 of file llprimitive.h.

const U32 LLPrimitive::PRIM_FLAG_SITTING = 0x1 << 8 [static]

Definition at line 291 of file llprimitive.h.

Referenced by isSittingAvatar().

const U32 LLPrimitive::PRIM_FLAG_SITTING_ON_GROUND = 0x1 << 9 [static]

Definition at line 292 of file llprimitive.h.

Referenced by isSittingAvatar(), and isSittingAvatarOnGround().

Definition at line 414 of file llprimitive.h.

Referenced by getAcceleration(), LLPrimitive(), and setAcceleration().

Definition at line 415 of file llprimitive.h.

Referenced by getAngularVelocity(), LLPrimitive(), and setAngularVelocity().

Definition at line 416 of file llprimitive.h.

Referenced by getVolume(), getVolumeConst(), LLPrimitive(), setVolume(), and ~LLPrimitive().

Definition at line 418 of file llprimitive.h.

Referenced by getMaterial(), LLPrimitive(), setMaterial(), and LLVOVolume::updateFaceFlags().

U8 LLPrimitive::mNumTEs [protected]

Definition at line 420 of file llprimitive.h.

Referenced by addFlags(), getFlags(), removeFlags(), and setFlags().

LLVolumeMgr * LLPrimitive::sVolumeManager = NULL [static, protected]


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

Generated on Fri May 16 09:00:47 2008 for SecondLife by  doxygen 1.5.5