#include <llprimitive.h>
Inheritance diagram for LLPrimitive:
Public Member Functions | |
LLPrimitive () | |
virtual | ~LLPrimitive () |
void | init (LLPCode p_code) |
void | setPCode (const LLPCode pcode) |
const LLVolume * | getVolumeConst () const |
LLVolume * | getVolume () const |
virtual BOOL | setVolume (const LLVolumeParams &volume_params, const S32 detail, bool unique_volume=false) |
BOOL | validTE (const U8 te_num) const |
const LLTextureEntry * | getTE (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 LLVector3 & | getAngularVelocity () const |
const LLVector3 & | getVelocity () const |
const LLVector3 & | getAcceleration () 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 LLPrimitive * | createPrimitive (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< LLVolume > | mVolumep |
LLTextureEntry * | mTextureList |
U8 | mMaterial |
U8 | mNumTEs |
Definition at line 257 of file llprimitive.h.
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.
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().
Definition at line 1669 of file llprimitive.cpp.
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] |
U8 LLPrimitive::getVolumeType | ( | ) |
Definition at line 175 of file llprimitive.cpp.
References mNumTEs, mPrimitiveCode, and mTextureList.
Referenced by createPrimitive().
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().
Definition at line 387 of file llprimitive.h.
References FALSE, LL_PCODE_APP, LL_PCODE_BASE_MASK, and TRUE.
Referenced by LLToolPie::useClickAction().
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().
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().
Definition at line 342 of file llprimitive.h.
References mAcceleration.
Referenced by LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), LLSelectMgr::selectObjectAndFamily(), and LLSelectMgr::selectObjectOnly().
Definition at line 334 of file llprimitive.h.
References mAngularVelocity.
Referenced by LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), and LLViewerObject::processUpdateMessage().
Reimplemented in LLViewerObject, and LLVOVolume.
Definition at line 1137 of file llprimitive.cpp.
References FALSE, mMaterial, and TRUE.
Referenced by LLViewerObject::setMaterial().
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::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().
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().
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().
Definition at line 460 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShiny().
Definition at line 424 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShinyFullbright().
Referenced by copyTEs(), and unpackTEMessage().
Definition at line 293 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setColor().
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().
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().
Definition at line 520 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setGlow().
Referenced by copyTEs(), and unpackTEMessage().
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().
Definition at line 436 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setMediaTexGen().
Referenced by copyTEs(), and unpackTEMessage().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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 336 of file llprimitive.h.
References mVelocity.
Referenced by LLViewerObject::idleUpdate(), LLVOTextBubble::LLVOTextBubble(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), LLSelectMgr::selectObjectAndFamily(), and LLSelectMgr::selectObjectOnly().
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().
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().
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().