#include <llprimitive.h>
Public Member Functions | |
LLPrimitive () | |
virtual | ~LLPrimitive () |
void | init_primitive (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 |
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 LLVolumeMgr * | getVolumeManager () |
static void | setVolumeManager (LLVolumeMgr *volume_manager) |
static bool | cleanupVolumeManager () |
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) |
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< LLVolume > | mVolumep |
LLTextureEntry * | mTextureList |
U8 | mMaterial |
U8 | mNumTEs |
U32 | mMiscFlags |
Static Protected Attributes | |
static LLVolumeMgr * | sVolumeManager = NULL |
Definition at line 270 of file llprimitive.h.
LLPrimitive::LLPrimitive | ( | ) |
Definition at line 147 of file llprimitive.cpp.
References 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 171 of file llprimitive.cpp.
References mTextureList, mVolumep, NULL, sVolumeManager, and LLVolumeMgr::unrefVolume().
static LLVolumeMgr* LLPrimitive::getVolumeManager | ( | ) | [inline, static] |
Definition at line 277 of file llprimitive.h.
References sVolumeManager.
Referenced by LLAppViewer::cleanup().
void LLPrimitive::setVolumeManager | ( | LLVolumeMgr * | volume_manager | ) | [static] |
Definition at line 123 of file llprimitive.cpp.
References llendl, llerrs, and sVolumeManager.
Referenced by LLAppViewer::initConfiguration().
bool LLPrimitive::cleanupVolumeManager | ( | ) | [static] |
Definition at line 133 of file llprimitive.cpp.
References LLVolumeMgr::cleanup(), FALSE, NULL, and sVolumeManager.
Referenced by LLAppViewer::cleanup().
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.
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().
void LLPrimitive::setPCode | ( | const LLPCode | pcode | ) |
const LLVolume* LLPrimitive::getVolumeConst | ( | ) | const [inline] |
LLVolume* LLPrimitive::getVolume | ( | ) | const [inline] |
Definition at line 302 of file llprimitive.h.
References mVolumep.
Referenced by LLViewerCamera::areVertsVisible(), LLVOVolume::calcLOD(), 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(), and LLVOVolume::updateTextures().
BOOL LLPrimitive::setVolume | ( | const LLVolumeParams & | volume_params, | |
const S32 | detail, | |||
bool | unique_volume = false | |||
) | [virtual] |
Reimplemented in LLVOTextBubble, and LLVOVolume.
Definition at line 919 of file llprimitive.cpp.
References face_index_from_id(), FALSE, LLXform::GEOMETRY, getTE(), LLVolumeLODGroup::getVolumeScaleFromDetail(), 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, LLMemType::MTYPE_VOLUME, mVolumep, LLPointer< Type >::notNull(), LLVolumeMgr::refVolume(), S32, LLXform::setChanged(), setNumTEs(), setTE(), sVolumeManager, TRUE, and LLVolumeMgr::unrefVolume().
Referenced by LLVOVolume::setVolume(), LLVOTextBubble::setVolume(), and LLViewerObject::updateVolume().
const LLTextureEntry * LLPrimitive::getTE | ( | const U8 | te_num | ) | const |
Definition at line 228 of file llprimitive.cpp.
References mNumTEs, mTextureList, and NULL.
Referenced by LLVOVolume::addFace(), LLPanelFaceSetMediaFunctor::apply(), copyTEs(), LLVOTextBubble::createDrawable(), LLPanelEditWearable::draw(), LLVOTextBubble::getGeometry(), LLFloaterAvatarTextures::onClickDump(), packTEMessage(), LLToolPipette::pickCallback(), LLViewerObject::setTE(), LLViewerObject::setTEBumpmap(), LLViewerObject::setTEColor(), LLViewerObject::setTEFullbright(), LLViewerObject::setTEGlow(), LLViewerObject::setTEMediaFlags(), LLViewerObject::setTEShiny(), LLViewerObject::setTETexGen(), LLViewerObject::setTETextureCore(), setVolume(), update_texture_ctrl(), LLVOVolume::updateFaceFlags(), LLVOTextBubble::updateTextures(), and LLVOAvatar::updateTextures().
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().
void LLPrimitive::setAllTETextures | ( | const LLUUID & | tex_id | ) | [virtual] |
Definition at line 287 of file llprimitive.cpp.
References i, mNumTEs, mTextureList, and LLTextureEntry::setID().
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().
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().
Reimplemented in LLViewerObject, and LLVOVolume.
Definition at line 327 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setColor().
Definition at line 339 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setAlpha().
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().
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().
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().
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().
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().
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().
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().
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().
Definition at line 458 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShinyFullbright().
Referenced by copyTEs(), and unpackTEMessage().
Definition at line 494 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setBumpShiny().
Definition at line 470 of file llprimitive.cpp.
References llendl, llwarns, mNumTEs, mTextureList, and LLTextureEntry::setMediaTexGen().
Referenced by copyTEs(), and unpackTEMessage().
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().
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().
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().
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().
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().
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().
Reimplemented in LLViewerObject, and LLVOVolume.
Definition at line 1174 of file llprimitive.cpp.
References FALSE, mMaterial, and TRUE.
Referenced by LLViewerObject::setMaterial().
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().
void LLPrimitive::copyTEs | ( | const LLPrimitive * | primitive | ) |
Definition at line 881 of file llprimitive.cpp.
References LLTextureEntry::getBumpShinyFullbright(), LLTextureEntry::getColor(), LLTextureEntry::getGlow(), LLTextureEntry::getID(), LLTextureEntry::getMediaTexGen(), getNumTEs(), LLTextureEntry::getOffset(), LLTextureEntry::getRotation(), LLTextureEntry::getScale(), getTE(), i, llendl, llmin(), llwarns, setTEBumpShinyFullbright(), setTEColor(), setTEGlow(), setTEMediaTexGen(), setTEOffset(), setTERotation(), setTEScale(), and setTETexture().
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().
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().
BOOL LLPrimitive::packTEMessage | ( | LLMessageSystem * | mesgsys | ) | const |
Definition at line 1338 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().
BOOL LLPrimitive::packTEMessage | ( | LLDataPacker & | dp | ) | const |
Definition at line 1417 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().
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().
S32 LLPrimitive::unpackTEMessage | ( | LLMessageSystem * | mesgsys, | |
char * | block_name, | |||
const S32 | block_num | |||
) |
Definition at line 1500 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(), unpackTEField(), VALPHA, VBLUE, VGREEN, and VRED.
S32 LLPrimitive::unpackTEMessage | ( | LLDataPacker & | dp | ) |
Definition at line 1598 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(), TEM_INVALID, LLDataPacker::unpackBinaryData(), unpackTEField(), VALPHA, VBLUE, VGREEN, and VRED.
void LLPrimitive::setAngularVelocity | ( | const LLVector3 & | avel | ) | [inline] |
Definition at line 368 of file llprimitive.h.
References mAngularVelocity.
Referenced by LLSelectMgr::deselectAll(), LLSelectMgr::deselectAllForStandingUp(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), and LLViewerObject::processUpdateMessage().
Definition at line 369 of file llprimitive.h.
References mAngularVelocity, and LLVector3::setVec().
void LLPrimitive::setVelocity | ( | const LLVector3 & | vel | ) | [inline] |
Definition at line 370 of file llprimitive.h.
References mVelocity.
Referenced by LLSelectMgr::deselectAll(), LLSelectMgr::deselectAllForStandingUp(), LLViewerObject::idleUpdate(), LLVOTextBubble::LLVOTextBubble(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), and LLSelectMgr::selectObjectAndFamily().
Definition at line 371 of file llprimitive.h.
References mVelocity, and LLVector3::setVec().
void LLPrimitive::setVelocityX | ( | const F32 | x | ) | [inline] |
void LLPrimitive::setVelocityY | ( | const F32 | y | ) | [inline] |
void LLPrimitive::setVelocityZ | ( | const F32 | z | ) | [inline] |
void LLPrimitive::addVelocity | ( | const LLVector3 & | vel | ) | [inline] |
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().
Definition at line 377 of file llprimitive.h.
References mAcceleration, and LLVector3::setVec().
LLPCode LLPrimitive::getPCode | ( | ) | const [inline] |
Definition at line 380 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::highlightObjectAndFamily(), LLSelectMgr::highlightObjectOnly(), LLDrawable::isLight(), LLViewerObject::markDead(), LLPanelVolume::onCommitFlexible(), LLPanelVolume::onCommitLight(), LLPanelVolume::onLightSelectColor(), output_statistics(), 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 381 of file llprimitive.h.
References mPrimitiveCode, and pCodeToString().
Referenced by LLViewerObjectList::findOrphans().
const LLVector3& LLPrimitive::getAngularVelocity | ( | ) | const [inline] |
Definition at line 382 of file llprimitive.h.
References mAngularVelocity.
Referenced by LLViewerObject::applyAngularVelocity(), LLVOAvatar::getCharacterAngularVelocity(), LLViewerObject::idleUpdate(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), and LLVOAvatar::resolveHeightGlobal().
const LLVector3& LLPrimitive::getVelocity | ( | ) | const [inline] |
Definition at line 383 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().
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().
U8 LLPrimitive::getNumTEs | ( | ) | const [inline] |
Definition at line 385 of file llprimitive.h.
References mNumTEs.
Referenced by LLSelectMgr::addAsFamily(), LLSelectMgr::addAsIndividual(), LLSelectMgr::adjustTexturesByScale(), LLVOVolume::animateTextures(), LLObjectSelection::applyToTEs(), LLViewerObject::boostTexturePriority(), copyTEs(), LLVOVolume::createDrawable(), LLVOTextBubble::createDrawable(), LLTextureView::draw(), LLToolDragAndDrop::dropTextureAllFaces(), LLSelectMgr::dump(), LLViewerObject::getTEImage(), handle_selected_texture_info(), LLToolTexEyedropper::handleMouseDown(), 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().
U8 LLPrimitive::getMaterial | ( | ) | const [inline] |
Definition at line 387 of file llprimitive.h.
References mMaterial.
Referenced by LLViewerObject::processUpdateMessage(), LLVOAvatar::resolveHeightGlobal(), and LLViewerObject::sendMaterialUpdate().
void LLPrimitive::setVolumeType | ( | const U8 | code | ) |
U8 LLPrimitive::getVolumeType | ( | ) |
void LLPrimitive::setTextureList | ( | LLTextureEntry * | listp | ) |
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.
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.
void LLPrimitive::setFlags | ( | U32 | flags | ) | [inline] |
void LLPrimitive::addFlags | ( | U32 | flags | ) | [inline] |
void LLPrimitive::removeFlags | ( | U32 | flags | ) | [inline] |
U32 LLPrimitive::getFlags | ( | ) | const [inline] |
Definition at line 401 of file llprimitive.h.
References mMiscFlags.
Referenced by isSittingAvatar(), and isSittingAvatarOnGround().
const char * LLPrimitive::pCodeToString | ( | const LLPCode | pcode | ) | [static] |
Definition at line 763 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, and llwarns.
Referenced by LLViewerObject::dump(), LLSelectMgr::dump(), getPCodeString(), output_statistics(), and LLFace::printDebugInfo().
Definition at line 567 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.
Definition at line 665 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.
Definition at line 1706 of file llprimitive.cpp.
Referenced by LLSelectMgr::adjustTexturesByScale(), LLPanelFace::getState(), LLSelectNode::saveTextureScaleRatios(), and LLSelectMgr::selectionTexScaleAutofit().
Definition at line 445 of file llprimitive.h.
References FALSE, LL_PCODE_APP, LL_PCODE_BASE_MASK, and TRUE.
Referenced by LLToolPie::useClickAction().
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.
const U32 LLPrimitive::PRIM_FLAG_COLLISION_CALLBACK = 0x1 << 5 [static] |
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] |
const U32 LLPrimitive::PRIM_FLAG_SITTING_ON_GROUND = 0x1 << 9 [static] |
Definition at line 292 of file llprimitive.h.
Referenced by isSittingAvatar(), and isSittingAvatarOnGround().
LLPCode LLPrimitive::mPrimitiveCode [protected] |
Definition at line 412 of file llprimitive.h.
Referenced by LLViewerObject::dump(), getPCode(), getPCodeString(), init_primitive(), isAvatar(), isSittingAvatar(), isSittingAvatarOnGround(), LLPrimitive(), and LLViewerObject::processUpdateMessage().
LLVector3 LLPrimitive::mVelocity [protected] |
Definition at line 413 of file llprimitive.h.
Referenced by addVelocity(), getVelocity(), LLPrimitive(), setVelocity(), setVelocityX(), setVelocityY(), and setVelocityZ().
LLVector3 LLPrimitive::mAcceleration [protected] |
Definition at line 414 of file llprimitive.h.
Referenced by getAcceleration(), LLPrimitive(), and setAcceleration().
LLVector3 LLPrimitive::mAngularVelocity [protected] |
Definition at line 415 of file llprimitive.h.
Referenced by getAngularVelocity(), LLPrimitive(), and setAngularVelocity().
LLPointer<LLVolume> LLPrimitive::mVolumep [protected] |
Definition at line 416 of file llprimitive.h.
Referenced by getVolume(), getVolumeConst(), LLPrimitive(), setVolume(), and ~LLPrimitive().
LLTextureEntry* LLPrimitive::mTextureList [protected] |
Definition at line 417 of file llprimitive.h.
Referenced by getTE(), init_primitive(), 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().
U8 LLPrimitive::mMaterial [protected] |
Definition at line 418 of file llprimitive.h.
Referenced by getMaterial(), LLPrimitive(), setMaterial(), and LLVOVolume::updateFaceFlags().
U8 LLPrimitive::mNumTEs [protected] |
Definition at line 419 of file llprimitive.h.
Referenced by getNumTEs(), getTE(), init_primitive(), LLPrimitive(), setAllTETextures(), setNumTEs(), setTEAlpha(), setTEBumpmap(), setTEBumpShiny(), setTEBumpShinyFullbright(), setTEColor(), setTEFullbright(), setTEGlow(), setTEMediaFlags(), setTEMediaTexGen(), setTEOffset(), setTEOffsetS(), setTEOffsetT(), setTERotation(), setTEScale(), setTEScaleS(), setTEScaleT(), setTEShiny(), setTETexGen(), setTETexture(), and validTE().
U32 LLPrimitive::mMiscFlags [protected] |
Definition at line 420 of file llprimitive.h.
Referenced by addFlags(), getFlags(), removeFlags(), and setFlags().
LLVolumeMgr * LLPrimitive::sVolumeManager = NULL [static, protected] |
Definition at line 422 of file llprimitive.h.
Referenced by cleanupVolumeManager(), getVolumeManager(), setVolume(), setVolumeManager(), and ~LLPrimitive().