#include <llcoordframe.h>
Inheritance diagram for LLCoordFrame:
Definition at line 45 of file llcoordframe.h.
LLCoordFrame::LLCoordFrame | ( | ) |
Definition at line 50 of file llcoordframe.cpp.
LLCoordFrame::LLCoordFrame | ( | const LLVector3 & | origin | ) | [explicit] |
Definition at line 58 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, and reset().
LLCoordFrame::LLCoordFrame | ( | const LLVector3 & | x_axis, | |
const LLVector3 & | y_axis, | |||
const LLVector3 & | z_axis | |||
) |
Definition at line 83 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, and reset().
LLCoordFrame::LLCoordFrame | ( | const LLVector3 & | origin, | |
const LLVector3 & | x_axis, | |||
const LLVector3 & | y_axis, | |||
const LLVector3 & | z_axis | |||
) |
Definition at line 98 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, and reset().
Definition at line 115 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, and reset().
Definition at line 71 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, lookDir(), and reset().
LLCoordFrame::LLCoordFrame | ( | const LLQuaternion & | q | ) | [explicit] |
Definition at line 129 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, LLMatrix3::mMatrix, mXAxis, mYAxis, mZAxis, reset(), LLVector3::setVec(), VX, VY, and VZ.
LLCoordFrame::LLCoordFrame | ( | const LLVector3 & | origin, | |
const LLQuaternion & | q | |||
) |
Definition at line 144 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, LLMatrix3::mMatrix, mXAxis, mYAxis, mZAxis, reset(), LLVector3::setVec(), VX, VY, and VZ.
LLCoordFrame::LLCoordFrame | ( | const LLMatrix4 & | mat | ) | [explicit] |
Definition at line 159 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, and reset().
const LLVector3& LLCoordFrame::getAtAxis | ( | ) | const [inline] |
Definition at line 113 of file llcoordframe.h.
References mXAxis.
Referenced by LLParticlePartition::addGeometryCount(), audio_update_listener(), LLAgent::autoPilot(), LLAgent::calcCameraPositionTargetGlobal(), LLSpatialPartition::calcDistance(), LLAgent::cameraPanIn(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToThirdPerson(), LLNetMap::draw(), LLHorizontalCompass::draw(), LLCompass::draw(), LLWorldMapView::drawFrustum(), LLAgent::endAnimationUpdateUI(), LLDrawPoolClouds::enqueue(), LLAgent::getAtAxis(), LLVOClouds::getGeometry(), LLAgent::getHeadRotation(), LLManip::getManipNormal(), LLViewerCamera::getPixelVectors(), LLNetMap::globalPosToView(), LLToolGun::handleHover(), LLManipTranslate::handleHover(), LLToolSelectRect::handleRectangleSelection(), hud_render_text(), init_audio(), LLViewerWindow::mouseDirectionGlobal(), LLPanelLandOptions::onClickSet(), LLAgent::pitch(), LLVOGrass::plantBlades(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), raycast_for_new_obj_pos(), LLViewerParcelOverlay::renderPropertyLines(), LLManipScale::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLManip::renderXYZ(), LLAgent::resetCamera(), send_agent_update(), LLAgent::setFocusOnAvatar(), LLAgent::setStartPosition(), LLAgent::setupSitCamera(), LLSpatialBridge::transformCamera(), LLDebugText::update(), LLAgent::updateCamera(), LLViewerCamera::updateCameraLocation(), LLVOAvatar::updateCharacter(), LLDrawable::updateDistance(), LLSprite::updateFace(), LLVOSky::updateFog(), LLVOSky::updateGeometry(), LLVOGround::updateGeometry(), LLVOClouds::updateGeometry(), LLAgent::updateLookAt(), LLVOSky::updateReflectionGeometry(), LLManipScale::updateSnapGuides(), LLVOTextBubble::updateTextures(), LLHUDText::updateVisibility(), LLManipRotate::updateVisiblity(), and LLNetMap::viewPosToGlobal().
const LLVector3& LLCoordFrame::getLeftAxis | ( | ) | const [inline] |
Definition at line 114 of file llcoordframe.h.
References mYAxis.
Referenced by LLAgent::cameraOrbitOver(), LLAgent::cameraPanLeft(), LLAgent::getHeadRotation(), LLAgent::getLeftAxis(), LLViewerCamera::getPixelVectors(), LLToolGrab::handleHoverActive(), LLVOAvatar::idleUpdate(), LLViewerWindow::mouseDirectionGlobal(), LLToolCamera::pickCallback(), LLVoiceVisualizer::render(), LLTracker::renderBeacon(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLViewerCamera::rotateToLeftEye(), LLViewerCamera::rotateToRightEye(), send_agent_update(), LLAgent::setCameraPosAndFocusGlobal(), LLSpatialBridge::transformCamera(), LLDebugText::update(), LLAgent::updateCamera(), LLSprite::updateFace(), and LLVOGround::updateGeometry().
Definition at line 471 of file llcoordframe.cpp.
References LLMatrix4::mMatrix, mOrigin, mXAxis, mYAxis, mZAxis, LLMatrix4::setFwdCol(), LLMatrix4::setLeftCol(), and LLMatrix4::setUpCol().
Referenced by LLViewerCamera::getModelview(), and LLDrawPoolAvatar::renderAvatars().
Definition at line 668 of file llcoordframe.cpp.
References f, LLVector3::mV, mXAxis, mYAxis, mZAxis, VX, VY, and VZ.
Definition at line 693 of file llcoordframe.cpp.
References f, mOrigin, LLVector3::mV, mXAxis, mYAxis, mZAxis, VX, VY, and VZ.
Referenced by LLViewerCamera::setPerspective().
Definition at line 644 of file llcoordframe.cpp.
const LLVector3& LLCoordFrame::getOrigin | ( | ) | const [inline] |
Definition at line 107 of file llcoordframe.h.
References mOrigin.
Referenced by LLParticlePartition::addGeometryCount(), calc_desired_size(), LLSpatialPartition::calcDistance(), LLAgent::calcFocusOffset(), LLPipeline::calcNearbyLights(), LLPipeline::calcPixelArea(), LLViewerCamera::cameraUnderWater(), display(), earlyFail(), LLDrawPoolClouds::enqueue(), LLPipeline::generateReflectionMap(), LLAgent::getCameraPositionAgent(), LLAgent::getCameraPositionGlobal(), LLViewerWindow::getObjectUnderCursor(), LLViewerCamera::getPixelVectors(), LLAgent::getPositionAgent(), LLAgent::getPositionGlobal(), LLManip::getSubdivisionLevel(), LLToolsLookAtSelection::handleEvent(), LLToolSelectRect::handleRectangleSelection(), LLManipTranslate::highlightIntersection(), LLManipTranslate::highlightManipulators(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), hud_render_text(), LLVOAvatar::idleUpdate(), LLSnapshotLivePreview::onIdle(), operator<<(), LLVOGrass::plantBlades(), LLPipeline::postSort(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLHUDConnector::render(), LLPreviewAnimation::render(), LLDrawPoolStars::render(), LLDrawPoolSky::render(), LLDrawPoolGlow::render(), LLDrawPoolGround::render(), LLHUDIcon::renderIcon(), LLSelectNode::renderOneSilhouette(), LLViewerParcelOverlay::renderPropertyLines(), LLManipTranslate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLManip::renderXYZ(), LLViewerCamera::roundToPixel(), setOrigin(), LLVOPartGroup::setPixelAreaAndAngle(), LLVOAvatar::setPixelAreaAndAngle(), LLAgent::setRegion(), setup_clip_plane(), LLDrawPoolWater::shade(), LLSpatialBridge::transformCamera(), LLViewerJoystick::updateCamera(), LLAgent::updateCamera(), LLViewerCamera::updateCameraLocation(), LLDrawable::updateDistance(), LLSprite::updateFace(), LLViewerCamera::updateFrustumPlanes(), LLVOPartGroup::updateGeometry(), LLVOClouds::updateGeometry(), LLSelectMgr::updateSilhouettes(), LLManipScale::updateSnapGuides(), LLViewerCamera::updateStereoValues(), and LLHUDText::updateVisibility().
LLQuaternion LLCoordFrame::getQuaternion | ( | ) | const |
Definition at line 464 of file llcoordframe.cpp.
References mXAxis, mYAxis, and mZAxis.
Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLVOAvatar::getOffObject(), LLAgent::getQuat(), LLLandSit::handleEvent(), hud_render_text(), LLSnapshotLivePreview::onIdle(), send_agent_update(), LLViewerJoystick::updateCamera(), LLAgent::updateCamera(), and LLAgent::updateLookAt().
Definition at line 483 of file llcoordframe.cpp.
References mXAxis, mYAxis, mZAxis, LLMatrix4::setFwdRow(), LLMatrix4::setLeftRow(), and LLMatrix4::setUpRow().
const LLVector3& LLCoordFrame::getUpAxis | ( | ) | const [inline] |
Definition at line 115 of file llcoordframe.h.
References mZAxis.
Referenced by audio_update_listener(), LLAgent::cameraPanUp(), LLViewerCamera::getPixelVectors(), LLAgent::getUpAxis(), LLToolGrab::handleHoverActive(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), init_audio(), LLViewerWindow::mouseDirectionGlobal(), LLVoiceVisualizer::render(), LLDrawPoolWater::render(), LLHUDIcon::renderIcon(), LLDrawPoolWater::renderShaderSimple(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLViewerCamera::rotateToLeftEye(), LLViewerCamera::rotateToRightEye(), send_agent_update(), LLDrawPoolWater::shade(), LLSpatialBridge::transformCamera(), LLAgent::updateCamera(), LLSprite::updateFace(), and LLManipScale::updateSnapGuides().
const LLVector3& LLCoordFrame::getXAxis | ( | ) | const [inline] |
Definition at line 109 of file llcoordframe.h.
References mXAxis.
Referenced by LLDrawable::applyLightsAsPoint(), LLVOPartGroup::getGeometry(), hud_render_text(), operator<<(), and setAxes().
const LLVector3& LLCoordFrame::getYAxis | ( | ) | const [inline] |
Definition at line 110 of file llcoordframe.h.
References mYAxis.
Referenced by hud_render_text(), operator<<(), and setAxes().
const LLVector3& LLCoordFrame::getZAxis | ( | ) | const [inline] |
Definition at line 111 of file llcoordframe.h.
References mZAxis.
Referenced by operator<<(), and setAxes().
BOOL LLCoordFrame::isFinite | ( | ) | [inline] |
Definition at line 69 of file llcoordframe.h.
References LLVector3::isFinite(), mOrigin, mXAxis, mYAxis, and mZAxis.
Referenced by LLCoordFrame(), readOrientation(), rotate(), and setAxes().
Definition at line 750 of file llcoordframe.cpp.
References f, lookDir(), LLVector3::normVec(), and setOrigin().
void LLCoordFrame::lookAt | ( | const LLVector3 & | origin, | |
const LLVector3 & | point_of_interest, | |||
const LLVector3 & | up | |||
) |
Definition at line 742 of file llcoordframe.cpp.
References lookDir(), LLVector3::normVec(), and setOrigin().
Referenced by setOriginAndLookAt().
void LLCoordFrame::orthonormalize | ( | ) |
Definition at line 585 of file llcoordframe.cpp.
References mXAxis, mYAxis, mZAxis, and LLVector3::normVec().
Referenced by rotate().
Definition at line 435 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mXAxis, mYAxis, mZAxis, reset(), and rotate().
Referenced by LLAgent::pitch(), and LLAgent::updateLookAt().
size_t LLCoordFrame::readOrientation | ( | const char * | buffer | ) |
Definition at line 504 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, mOrigin, LLVector3::mV, mXAxis, mYAxis, mZAxis, and reset().
void LLCoordFrame::reset | ( | ) |
Definition at line 205 of file llcoordframe.cpp.
References f, mOrigin, resetAxes(), and LLVector3::setVec().
Referenced by LLCoordFrame(), pitch(), readOrientation(), roll(), rotate(), setAxes(), setOrigin(), translate(), and yaw().
void LLCoordFrame::resetAxes | ( | ) |
Definition at line 212 of file llcoordframe.cpp.
References f, mXAxis, mYAxis, mZAxis, and LLVector3::setVec().
Referenced by reset(), and LLAgent::resetAxes().
Definition at line 422 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mXAxis, mYAxis, mZAxis, reset(), and rotate().
Referenced by LLAgent::roll().
Definition at line 408 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, mXAxis, mYAxis, orthonormalize(), reset(), and LLVector3::rotVec().
void LLCoordFrame::rotate | ( | const LLQuaternion & | q | ) |
Definition at line 387 of file llcoordframe.cpp.
Referenced by LLAgent::cameraOrbitAround(), pitch(), roll(), rotate(), LLAgent::rotate(), yaw(), and LLAgent::yaw().
Definition at line 568 of file llcoordframe.cpp.
References LLVector3::mV, LLVector4::mV, mXAxis, mYAxis, mZAxis, VW, VX, VY, and VZ.
Definition at line 552 of file llcoordframe.cpp.
References LLVector3::mV, mXAxis, mYAxis, mZAxis, VX, VY, and VZ.
Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLCamera::calculateWorldFrustumPlanes(), and transformToAbsolute().
Definition at line 535 of file llcoordframe.cpp.
References LLVector3::mV, LLVector4::mV, mXAxis, mYAxis, mZAxis, VW, VX, VY, and VZ.
Definition at line 526 of file llcoordframe.cpp.
References mXAxis, mYAxis, and mZAxis.
Referenced by audio_update_wind(), and transformToLocal().
void LLCoordFrame::setAxes | ( | const LLCoordFrame & | frame | ) |
Definition at line 329 of file llcoordframe.cpp.
References getXAxis(), getYAxis(), getZAxis(), isFinite(), llendl, llwarns, mXAxis, mYAxis, mZAxis, and reset().
Definition at line 309 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, LLVector3::mV, mXAxis, mYAxis, mZAxis, reset(), VX, VY, and VZ.
void LLCoordFrame::setAxes | ( | const LLQuaternion & | q | ) |
Definition at line 297 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, reset(), and setAxes().
Definition at line 284 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, LLMatrix3::mMatrix, mXAxis, mYAxis, mZAxis, reset(), LLVector3::setVec(), VX, VY, and VZ.
void LLCoordFrame::setAxes | ( | const LLVector3 & | x_axis, | |
const LLVector3 & | y_axis, | |||
const LLVector3 & | z_axis | |||
) |
Definition at line 269 of file llcoordframe.cpp.
References isFinite(), llendl, llwarns, mXAxis, mYAxis, mZAxis, and reset().
Referenced by display(), lookDir(), LLDynamicTexture::postRender(), LLDynamicTexture::preRender(), LLAgent::resetAxes(), setAxes(), and LLSpatialBridge::transformCamera().
void LLCoordFrame::setOrigin | ( | const LLCoordFrame & | frame | ) |
Definition at line 255 of file llcoordframe.cpp.
References getOrigin(), LLVector3::isFinite(), llendl, llwarns, mOrigin, and reset().
Definition at line 242 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, LLVector3::mV, reset(), VX, VY, and VZ.
Definition at line 232 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, and reset().
Definition at line 221 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, reset(), and LLVector3::setVec().
Referenced by display(), LLPipeline::generateReflectionMap(), LLAgent::getPositionAgent(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), lookAt(), LLDynamicTexture::postRender(), LLDynamicTexture::preRender(), LLSpatialPartition::processImagery(), LLAgent::setPositionAgent(), LLAgent::setRegion(), LLSpatialBridge::transformCamera(), and LLViewerJoystick::updateCamera().
void LLCoordFrame::setOriginAndLookAt | ( | const LLVector3 & | origin, | |
const LLVector3 & | up, | |||
const LLVector3 & | point_of_interest | |||
) | [inline] |
Definition at line 163 of file llcoordframe.h.
References lookAt().
Referenced by LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), LLVisualParamHint::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), and LLViewerCamera::updateCameraLocation().
Definition at line 617 of file llcoordframe.cpp.
References mOrigin, LLVector3::mV, LLVector4::mV, rotateToAbsolute(), VX, VY, and VZ.
Definition at line 611 of file llcoordframe.cpp.
References mOrigin, and rotateToAbsolute().
Referenced by LLCamera::calculateFrustumPlanes().
Definition at line 601 of file llcoordframe.cpp.
References mOrigin, LLVector3::mV, LLVector4::mV, rotateToLocal(), VX, VY, and VZ.
Definition at line 371 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, LLVector3::mV, reset(), VX, VY, and VZ.
Definition at line 359 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, reset(), and v.
Definition at line 345 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mOrigin, LLVector3::mV, reset(), VX, VY, and VZ.
Referenced by LLAgent::updateCamera().
size_t LLCoordFrame::writeOrientation | ( | char * | buffer | ) | const |
Definition at line 491 of file llcoordframe.cpp.
References mOrigin, LLVector3::mV, mXAxis, mYAxis, and mZAxis.
Definition at line 448 of file llcoordframe.cpp.
References LLVector3::isFinite(), llendl, llwarns, mXAxis, mYAxis, mZAxis, reset(), and rotate().
Referenced by LLCamera::calculateWorldFrustumPlanes(), and LLAgent::updateLookAt().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLCoordFrame & | C | |||
) | [friend] |
Definition at line 763 of file llcoordframe.cpp.
Definition at line 171 of file llcoordframe.h.
Referenced by LLCamera::calculateWorldFrustumPlanes(), getMatrixToLocal(), getOpenGLTransform(), getOpenGLTranslation(), getOrigin(), LLCamera::heightInPixels(), isFinite(), LLCoordFrame(), operator<<(), readOrientation(), reset(), setOrigin(), setOriginX(), setOriginY(), setOriginZ(), LLCamera::sphereInFrustumOld(), transformToAbsolute(), transformToLocal(), translate(), LLCamera::visibleDistance(), LLCamera::visibleHorizDistance(), and writeOrientation().
Definition at line 172 of file llcoordframe.h.
Referenced by LLCamera::calculateWorldFrustumPlanes(), getAtAxis(), getMatrixToLocal(), getOpenGLRotation(), getOpenGLTransform(), LLCamera::getPitch(), getQuaternion(), getRotMatrixToParent(), getXAxis(), LLCamera::getYaw(), isFinite(), LLCoordFrame(), operator<<(), orthonormalize(), pitch(), readOrientation(), resetAxes(), roll(), rotate(), rotateToAbsolute(), rotateToLocal(), setAxes(), LLCamera::sphereInFrustumOld(), LLViewerJoystick::updateCamera(), LLCamera::visibleDistance(), writeOrientation(), and yaw().
Definition at line 173 of file llcoordframe.h.
Referenced by getLeftAxis(), getMatrixToLocal(), getOpenGLRotation(), getOpenGLTransform(), getQuaternion(), getRotMatrixToParent(), getYAxis(), isFinite(), LLCoordFrame(), operator<<(), orthonormalize(), pitch(), readOrientation(), resetAxes(), roll(), rotate(), rotateToAbsolute(), rotateToLocal(), setAxes(), LLCamera::sphereInFrustumOld(), LLViewerJoystick::updateCamera(), LLVOPartGroup::updateGeometry(), writeOrientation(), and yaw().
Definition at line 174 of file llcoordframe.h.
Referenced by getMatrixToLocal(), getOpenGLRotation(), getOpenGLTransform(), getQuaternion(), getRotMatrixToParent(), getUpAxis(), getZAxis(), isFinite(), LLCoordFrame(), operator<<(), orthonormalize(), pitch(), readOrientation(), resetAxes(), roll(), rotateToAbsolute(), rotateToLocal(), setAxes(), LLCamera::sphereInFrustumOld(), LLViewerJoystick::updateCamera(), LLVOPartGroup::updateGeometry(), writeOrientation(), and yaw().