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

Static Public Member Functions

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)

Protected Attributes

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

Detailed Description

Definition at line 257 of file llprimitive.h.


Constructor & Destructor Documentation

LLPrimitive::LLPrimitive (  ) 

Definition at line 117 of file llprimitive.cpp.

References f, LL_MCODE_STONE, LLQuaternion::loadIdentity(), mAcceleration, mAngularVelocity, LLXform::mChanged, mMaterial, mNumTEs, LLXform::mPosition, mPrimitiveCode, LLXform::mRotation, LLXform::mScale, mTextureList, mVelocity, mVolumep, NULL, LLVector3::setVec(), and LLXform::UNCHANGED.

Referenced by createPrimitive().

LLPrimitive::~LLPrimitive (  )  [virtual]

Definition at line 140 of file llprimitive.cpp.

References LLVolumeMgr::cleanupVolume(), gVolumeMgr, mTextureList, mVolumep, and NULL.


Member Function Documentation

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

Definition at line 341 of file llprimitive.h.

References mVelocity.

void LLPrimitive::copyTEs ( const LLPrimitive primitive  ) 

Definition at line 845 of file llprimitive.cpp.

References getNumTEs(), getTE(), i, llendl, llmin(), llwarns, s, setTEBumpShinyFullbright(), setTEColor(), setTEGlow(), setTEMediaTexGen(), setTEOffset(), setTERotation(), setTEScale(), setTETexture(), and t.

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

Definition at line 158 of file llprimitive.cpp.

References init(), llendl, llerrs, and LLPrimitive().

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

Definition at line 350 of file llprimitive.h.

References mAcceleration.

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

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

Definition at line 348 of file llprimitive.h.

References mAngularVelocity.

Referenced by LLViewerObject::applyAngularVelocity(), LLVOAvatar::getCharacterAngularVelocity(), LLViewerObject::idleUpdate(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), and LLVOAvatar::resolveHeightGlobal().

U8 LLPrimitive::getMaterial (  )  const [inline]

Definition at line 353 of file llprimitive.h.

References mMaterial.

Referenced by LLPanelObject::getState(), LLViewerObject::processUpdateMessage(), LLVOAvatar::resolveHeightGlobal(), LLSelectMgr::selectionSetFullbright(), LLSelectMgr::selectionSetMaterial(), and LLViewerObject::sendMaterialUpdate().

U8 LLPrimitive::getNumTEs (  )  const [inline]

Definition at line 351 of file llprimitive.h.

References mNumTEs.

Referenced by LLSelectMgr::addAsIndividual(), LLSelectMgr::adjustTexturesByScale(), LLVOVolume::animateTextures(), LLObjectSelection::applyToTEs(), LLViewerObject::boostTexturePriority(), copyTEs(), LLVOVolume::createDrawable(), LLVOTextBubble::createDrawable(), LLTextureView::draw(), LLToolDragAndDrop::dropTextureAllFaces(), LLSelectMgr::dump(), LLObjectSelection::getSelectedTEValue(), LLObjectSelection::getTECount(), LLViewerObject::getTEImage(), LLVOTextBubble::idleUpdate(), LLVOAvatar::isFullyBaked(), LLVOTextBubble::LLVOTextBubble(), LLFloaterAvatarTextures::onClickDump(), packTEMessage(), LLVolumeGeometryManager::rebuildGeom(), LLVOVolume::regenFaces(), LLSelectMgr::remove(), LLViewerObject::setNumTEs(), setTEArrays(), LLVOVolume::setTexture(), unpackTEMessage(), LLVOAvatar::updateMeshTextures(), LLVOTextBubble::updateTextures(), and LLVOAvatar::updateTextures().

LLPCode LLPrimitive::getPCode (  )  const [inline]

Definition at line 346 of file llprimitive.h.

References mPrimitiveCode.

Referenced by LLViewerWindow::analyzeHit(), LLSelectMgr::canSelectObject(), LLSelectMgr::dump(), LLSelectMgr::generateSilhouette(), LLPanelVolume::getState(), LLPanelObject::getState(), LLPanelFace::getState(), LLDrawable::getVOVolume(), handle_sit_or_stand(), LLObjectEnableSitOrStand::handleEvent(), LLManipTranslate::handleHover(), LLToolSelectRect::handleRectangleSelection(), LLSelectMgr::highlightObjectOnly(), LLDrawable::isLight(), LLViewerObject::markDead(), LLPanelVolume::onCommitFlexible(), LLPanelVolume::onCommitLight(), LLPanelVolume::onLightSelectColor(), LLViewerWindow::performPick(), LLToolPipette::pickCallback(), LLSelectMgr::selectionAllPCode(), LLPanelVolume::sendIsFlexible(), LLPanelVolume::sendIsLight(), LLSelectMgr::setHoverObject(), LLViewerObject::setScale(), LLSelectMgr::unhighlightObjectOnly(), LLViewerObjectList::update(), LLViewerObject::updateDrawable(), LLToolPie::useClickAction(), and LLToolDragAndDrop::willObjectAcceptInventory().

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

Definition at line 347 of file llprimitive.h.

References mPrimitiveCode, and pCodeToString().

Referenced by LLViewerObjectList::findOrphans().

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

Definition at line 195 of file llprimitive.cpp.

References mNumTEs, mTextureList, and NULL.

Referenced by LLVOVolume::addFace(), LLSelectMgr::adjustTexturesByScale(), LLPanelFaceSetMediaFunctor::apply(), copyTEs(), LLVOTextBubble::createDrawable(), LLPanelEditWearable::draw(), LLVOTextBubble::getGeometry(), LLPanelFace::getState(), LLFloaterAvatarTextures::onClickDump(), packTEMessage(), LLToolPipette::pickCallback(), LLSelectMgr::selectionSetAlphaOnly(), LLSelectMgr::selectionSetColorOnly(), LLViewerObject::setTE(), LLViewerObject::setTEBumpmap(), LLViewerObject::setTEColor(), LLViewerObject::setTEFullbright(), LLViewerObject::setTEMediaFlags(), LLViewerObject::setTEShiny(), LLViewerObject::setTETexGen(), LLViewerObject::setTETextureCore(), setVolume(), update_texture_ctrl(), LLVOVolume::updateFaceFlags(), LLVOTextBubble::updateTextures(), and LLVOAvatar::updateTextures().

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

Definition at line 1669 of file llprimitive.cpp.

References VX, VY, and VZ.

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

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

Definition at line 349 of file llprimitive.h.

References mVelocity.

Referenced by LLViewerObject::dump(), LLVOAvatar::getCharacterVelocity(), LLVOAvatar::idleUpdate(), LLViewerObject::idleUpdate(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLVOAvatar::processUpdateMessage(), LLViewerObject::processUpdateMessage(), LLVOAvatar::resolveHeightGlobal(), LLVOAvatar::updateCharacter(), and LLViewerObject::updateDrawable().

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

Definition at line 268 of file llprimitive.h.

References mVolumep.

Referenced by LLViewerCamera::areVertsVisible(), LLVOVolume::canBeFlexible(), LLVolumeImplFlexible::doFlexibleRebuild(), LLVolumeImplFlexible::doFlexibleUpdate(), LLVolumeImplFlexible::doUpdateGeometry(), LLVOVolume::genBBoxes(), LLVOVolume::generateSilhouette(), LLVOTextBubble::getGeometry(), LLPanelObject::getState(), LLVOVolume::isFlexible(), LLVOVolume::lineSegmentIntersect(), LLVolumeGeometryManager::rebuildGeom(), LLSelectNode::renderOneSilhouette(), LLVOVolume::sculpt(), LLViewerObject::sendShapeUpdate(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLVOVolume::setIsFlexible(), LLViewerObject::setPixelAreaAndAngle(), LLVOVolume::updateFaceFlags(), LLVOVolume::updateFaceSize(), LLVOTextBubble::updateFaceSize(), LLVOVolume::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOVolume::updateLighting(), and LLVOVolume::updateTextures().

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

Definition at line 267 of file llprimitive.h.

References mVolumep.

U8 LLPrimitive::getVolumeType (  ) 

void LLPrimitive::init ( LLPCode  p_code  ) 

Definition at line 175 of file llprimitive.cpp.

References mNumTEs, mPrimitiveCode, and mTextureList.

Referenced by createPrimitive().

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

Definition at line 399 of file llprimitive.h.

References LL_PCODE_APP, and LL_PCODE_BASE_MASK.

BOOL LLPrimitive::isAvatar (  )  const [inline]

Definition at line 381 of file llprimitive.h.

References LL_PCODE_LEGACY_AVATAR, and mPrimitiveCode.

Referenced by add_duplicate(), add_object(), LLViewerObject::addChild(), LLViewerObject::addThisAndAllChildren(), LLViewerObject::addThisAndNonJointChildren(), LLPanelGroupInvite::addUsers(), LLViewerWindow::analyzeHit(), LLAgent::calcFocusOffset(), LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLSelectMgr::canSelectObject(), complete_give_money(), derez_objects(), LLSelectMgr::deselectObjectAndFamily(), LLManipScale::drag(), LLManipRotate::drag(), LLManipScale::dragCorner(), LLHoverView::draw(), enable_take(), find_avatar(), find_avatar_from_object(), LLVOAvatar::findAvatarFromAttachment(), LLViewerObject::getBoundingBoxAgent(), LLFloaterReporter::getObjectInfo(), LLViewerObject::getRenderPosition(), LLFloaterPay::give(), LLAttachmentDetach::handleEvent(), LLAttachmentDrop::handleEvent(), LLAvatarGiveCard::handleEvent(), LLToolPie::handleHover(), LLToolTexEyedropper::handleMouseDown(), LLToolGrab::handleObjectHit(), LLToolSelect::handleObjectSelection(), invite_to_group(), LLVOVolume::isRootEdit(), LLAgent::lookAtObject(), 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(), LLAgent::setPointAt(), LLViewerObject::setPositionAbsoluteGlobal(), LLViewerObject::setPositionGlobal(), LLHUDEffectPointAt::setSourceObject(), LLHUDEffectLookAt::setSourceObject(), LLManipScale::stretchFace(), LLHUDEffectPointAt::unpackData(), LLHUDEffectLookAt::unpackData(), LLViewerObjectList::update(), LLViewerObject::updateDrawable(), LLSelectMgr::updateSelectionCenter(), and LLHoverView::updateText().

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

Definition at line 387 of file llprimitive.h.

References FALSE, LL_PCODE_APP, LL_PCODE_BASE_MASK, and TRUE.

Referenced by LLToolPie::useClickAction().

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

Definition at line 533 of file llprimitive.cpp.

References GRASS, LL_PCODE_LEGACY_AVATAR, LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_PART_SYS, LL_PCODE_LEGACY_TREE, LL_PCODE_TREE_NEW, LL_PCODE_VOLUME, llendl, llwarns, PART_SYS, PLAYER, PRIMITIVE_VOLUME, TREE, and TREE_NEW.

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

Definition at line 1196 of file llprimitive.cpp.

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

Referenced by packTEMessage().

BOOL LLPrimitive::packTEMessage ( LLDataPacker dp  )  const

Definition at line 1380 of file llprimitive.cpp.

References F_TWO_PI, FALSE, LLTextureEntry::getBumpShinyFullbright(), LLTextureEntry::getGlow(), LLTextureEntry::getMediaTexGen(), getNumTEs(), getTE(), llclamp(), llround(), mData, LLTextureEntry::mOffsetS, LLTextureEntry::mOffsetT, LLTextureEntry::mRotation, LLTextureEntry::mScaleS, LLTextureEntry::mScaleT, LLColor4U::mV, MVT_F32, MVT_LLUUID, MVT_S16Array, MVT_U8, LLDataPacker::packBinaryData(), packTEField(), S32, and LLColor4U::setVec().

BOOL LLPrimitive::packTEMessage ( LLMessageSystem mesgsys  )  const

Definition at line 1301 of file llprimitive.cpp.

References _PREHASH_TextureEntry, LLMessageSystem::addBinaryDataFast(), F_TWO_PI, FALSE, LLTextureEntry::getBumpShinyFullbright(), LLTextureEntry::getGlow(), LLTextureEntry::getMediaTexGen(), getNumTEs(), getTE(), llclamp(), llround(), mData, LLTextureEntry::mOffsetS, LLTextureEntry::mOffsetT, LLTextureEntry::mRotation, LLTextureEntry::mScaleS, LLTextureEntry::mScaleT, LLColor4U::mV, MVT_F32, MVT_LLUUID, MVT_S16Array, MVT_U8, packTEField(), S32, and LLColor4U::setVec().

Referenced by LLViewerObject::sendTEUpdate().

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

Definition at line 629 of file llprimitive.cpp.

References GRASS, LL_PCODE_LEGACY_AVATAR, LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_PART_SYS, LL_PCODE_LEGACY_TREE, LL_PCODE_TREE_NEW, LL_PCODE_VOLUME, llendl, llwarns, PART_SYS, PLAYER, PRIMITIVE_VOLUME, S32, TREE, and TREE_NEW.

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

Definition at line 727 of file llprimitive.cpp.

References LL_PCODE_APP, LL_PCODE_BASE_MASK, LL_PCODE_CONE, LL_PCODE_CUBE, LL_PCODE_CYLINDER, LL_PCODE_HEMI_MASK, LL_PCODE_LEGACY, LL_PCODE_LEGACY_AVATAR, LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_PART_SYS, LL_PCODE_LEGACY_TEXT_BUBBLE, LL_PCODE_LEGACY_TREE, LL_PCODE_PRISM, LL_PCODE_PYRAMID, LL_PCODE_SPHERE, LL_PCODE_TETRAHEDRON, LL_PCODE_TREE_NEW, LL_PCODE_VOLUME, llendl, llwarns, and mask.

Referenced by LLViewerObject::dump(), LLSelectMgr::dump(), getPCodeString(), output_statistics(), and LLFace::printDebugInfo().

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

Definition at line 343 of file llprimitive.h.

References mAcceleration, and LLVector3::setVec().

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

Definition at line 342 of file llprimitive.h.

References mAcceleration.

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

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

Definition at line 253 of file llprimitive.cpp.

References i, mNumTEs, and mTextureList.

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

Definition at line 335 of file llprimitive.h.

References mAngularVelocity, and LLVector3::setVec().

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

Definition at line 334 of file llprimitive.h.

References mAngularVelocity.

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 1137 of file llprimitive.cpp.

References FALSE, mMaterial, and TRUE.

Referenced by LLViewerObject::setMaterial().

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

Reimplemented in LLViewerObject.

Definition at line 209 of file llprimitive.cpp.

References i, mNumTEs, mTextureList, and NULL.

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

void LLPrimitive::setPCode ( const LLPCode  pcode  ) 

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

Reimplemented in LLViewerObject.

Definition at line 264 of file llprimitive.cpp.

References mTextureList.

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

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

Definition at line 305 of file llprimitive.cpp.

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

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

Definition at line 1150 of file llprimitive.cpp.

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 448 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEBumpmap().

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

Definition at line 460 of file llprimitive.cpp.

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

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

Definition at line 424 of file llprimitive.cpp.

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

Referenced by copyTEs(), and unpackTEMessage().

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

Definition at line 293 of file llprimitive.cpp.

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 281 of file llprimitive.cpp.

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

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 496 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEFullbright().

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

Definition at line 520 of file llprimitive.cpp.

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

Referenced by copyTEs(), and unpackTEMessage().

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 508 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEMediaFlags().

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

Definition at line 436 of file llprimitive.cpp.

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

Referenced by copyTEs(), and unpackTEMessage().

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

Reimplemented in LLViewerObject.

Definition at line 364 of file llprimitive.cpp.

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

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

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

Reimplemented in LLViewerObject.

Definition at line 379 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEOffsetS().

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

Reimplemented in LLViewerObject.

Definition at line 395 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEOffsetT().

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

Reimplemented in LLViewerObject.

Definition at line 410 of file llprimitive.cpp.

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

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 318 of file llprimitive.cpp.

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

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

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 333 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEScaleS().

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 349 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEScaleT().

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 484 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTEShiny().

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

Reimplemented in LLViewerObject, and LLVOVolume.

Definition at line 472 of file llprimitive.cpp.

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

Referenced by LLViewerObject::setTETexGen().

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

Reimplemented in LLViewerObject, LLVOAvatar, and LLVOVolume.

Definition at line 269 of file llprimitive.cpp.

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

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

void LLPrimitive::setTextureList ( LLTextureEntry listp  ) 

Definition at line 1655 of file llprimitive.cpp.

References mTextureList.

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

Definition at line 337 of file llprimitive.h.

References mVelocity, and LLVector3::setVec().

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

Definition at line 336 of file llprimitive.h.

References mVelocity.

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

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

Definition at line 338 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VX.

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

Definition at line 339 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VY.

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

Definition at line 340 of file llprimitive.h.

References LLVector3::mV, mVelocity, and VZ.

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

Reimplemented in LLVOVolume.

Definition at line 883 of file llprimitive.cpp.

References LLVolumeMgr::cleanupVolume(), face, face_index_from_id(), FALSE, LLXform::GEOMETRY, getTE(), LLVolumeMgr::getVolume(), LLVolumeLODGroup::getVolumeScaleFromDetail(), gVolumeMgr, i, LL_FACE_INNER_SIDE, LL_FACE_OUTER_SIDE_0, LL_FACE_PATH_BEGIN, LL_FACE_PATH_END, LL_FACE_PROFILE_BEGIN, LL_FACE_PROFILE_END, llendl, llinfos, llwarns, mVolumep, LLPointer< Type >::notNull(), S32, LLXform::setChanged(), setNumTEs(), setTE(), and TRUE.

Referenced by LLVOVolume::setVolume(), LLVOTextBubble::setVolume(), and LLViewerObject::updateVolume().

void LLPrimitive::setVolumeType ( const U8  code  ) 

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

Definition at line 1256 of file llprimitive.cpp.

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

Referenced by unpackTEMessage().

S32 LLPrimitive::unpackTEMessage ( LLDataPacker dp  ) 

Definition at line 1561 of file llprimitive.cpp.

References F_TWO_PI, getNumTEs(), i, llendl, llwarns, mData, LLColor4U::mV, LLColor4::mV, MVT_F32, MVT_LLUUID, MVT_S16Array, MVT_U8, S32, setTEBumpShinyFullbright(), setTEColor(), setTEGlow(), setTEMediaTexGen(), setTEOffset(), setTERotation(), setTEScale(), setTETexture(), size, TEM_INVALID, LLDataPacker::unpackBinaryData(), unpackTEField(), VALPHA, VBLUE, VGREEN, and VRED.

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

Definition at line 1463 of file llprimitive.cpp.

References _PREHASH_TextureEntry, F_TWO_PI, LLMessageSystem::getBinaryDataFast(), getNumTEs(), LLMessageSystem::getSizeFast(), i, LLColor4U::mV, LLColor4::mV, MVT_F32, MVT_LLUUID, MVT_S16Array, MVT_U8, S32, setTEBumpShinyFullbright(), setTEColor(), setTEGlow(), setTEMediaTexGen(), setTEOffset(), setTERotation(), setTEScale(), setTETexture(), size, unpackTEField(), VALPHA, VBLUE, VGREEN, and VRED.

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

Definition at line 1458 of file llprimitive.cpp.

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

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

Definition at line 555 of file llprimitive.h.

References mNumTEs.


Member Data Documentation

LLVector3 LLPrimitive::mAcceleration [protected]

Definition at line 373 of file llprimitive.h.

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

LLVector3 LLPrimitive::mAngularVelocity [protected]

Definition at line 374 of file llprimitive.h.

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

U8 LLPrimitive::mMaterial [protected]

Definition at line 377 of file llprimitive.h.

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

U8 LLPrimitive::mNumTEs [protected]

Definition at line 378 of file llprimitive.h.

Referenced by getNumTEs(), getTE(), init(), LLPrimitive(), setAllTETextures(), setNumTEs(), setTEAlpha(), setTEBumpmap(), setTEBumpShiny(), setTEBumpShinyFullbright(), setTEColor(), setTEFullbright(), setTEGlow(), setTEMediaFlags(), setTEMediaTexGen(), setTEOffset(), setTEOffsetS(), setTEOffsetT(), setTERotation(), setTEScale(), setTEScaleS(), setTEScaleT(), setTEShiny(), setTETexGen(), setTETexture(), and validTE().

LLPCode LLPrimitive::mPrimitiveCode [protected]

Definition at line 371 of file llprimitive.h.

Referenced by LLViewerObject::dump(), getPCode(), getPCodeString(), init(), isAvatar(), LLPrimitive(), and LLViewerObject::processUpdateMessage().

LLTextureEntry* LLPrimitive::mTextureList [protected]

Definition at line 376 of file llprimitive.h.

Referenced by getTE(), init(), LLPrimitive(), setAllTETextures(), setNumTEs(), setTE(), setTEAlpha(), setTEBumpmap(), setTEBumpShiny(), setTEBumpShinyFullbright(), setTEColor(), setTEFullbright(), setTEGlow(), setTEMediaFlags(), setTEMediaTexGen(), setTEOffset(), setTEOffsetS(), setTEOffsetT(), setTERotation(), setTEScale(), setTEScaleS(), setTEScaleT(), setTEShiny(), setTETexGen(), setTETexture(), setTextureList(), and ~LLPrimitive().

LLVector3 LLPrimitive::mVelocity [protected]

Definition at line 372 of file llprimitive.h.

Referenced by addVelocity(), getVelocity(), LLPrimitive(), setVelocity(), setVelocityX(), setVelocityY(), and setVelocityZ().

LLPointer<LLVolume> LLPrimitive::mVolumep [protected]

Definition at line 375 of file llprimitive.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:40 2010 for Second Life Viewer by  doxygen 1.4.7