#include <llmanipscale.h>
Definition at line 57 of file llmanipscale.h.
typedef std::set<ManipulatorHandle*, compare_manipulators> LLManipScale::minpulator_list_t [private] |
Definition at line 152 of file llmanipscale.h.
LLManipScale::LLManipScale | ( | LLToolComposite * | composite | ) |
Definition at line 176 of file llmanipscale.cpp.
References i, mManipulatorScales, NUM_MANIPULATORS, and S32.
LLManipScale::~LLManipScale | ( | ) |
Definition at line 199 of file llmanipscale.cpp.
References mManipulatorScales, and mProjectedManipulators.
Reimplemented from LLTool.
Definition at line 315 of file llmanipscale.cpp.
References FALSE, gViewerWindow, handleMouseDownOnPart(), LLViewerWindow::lastObjectHit(), LLManip::LL_NO_PART, and LLManip::mHighlightedPart.
Reimplemented from LLManip.
Definition at line 367 of file llmanipscale.cpp.
References LLSelectMgr::adjustTexturesByScale(), LLSelectMgr::enableSilhouette(), FALSE, LLSingleton< LLSelectMgr >::getInstance(), getStretchTextures(), handleHover(), LLManip::handleMouseUp(), LLTool::hasMouseCapture(), LLManip::LL_CORNER_MAX, LLManip::LL_CORNER_MIN, LLManip::LL_FACE_MAX, LLManip::LL_FACE_MIN, LLManip::LL_NO_PART, mLastUpdateFlags, mManipPart, S32, LLSelectMgr::saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, LLSelectMgr::sendMultipleUpdate(), sendUpdates(), and TRUE.
Reimplemented from LLManip.
Definition at line 402 of file llmanipscale.cpp.
References LLSelectMgr::adjustTexturesByScale(), drag(), FALSE, LLSingleton< LLSelectMgr >::getInstance(), getStretchTextures(), LLViewerWindow::getWindow(), gViewerWindow, LLTool::hasMouseCapture(), highlightManipulators(), lldebugst, llendl, mInSnapRegime, LLManip::mObjectSelection, LLWindow::setCursor(), LLTool::setMouseCapture(), TRUE, and UI_CURSOR_TOOLSCALE.
Referenced by handleMouseUp().
void LLManipScale::render | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 205 of file llmanipscale.cpp.
References canAffectSelection(), dist_vec(), gAgent, LLQuaternion::getAngleAxis(), LLAgent::getAvatarObject(), LLSelectMgr::getBBoxOfSelection(), LLControlGroup::getBOOL(), LLAgent::getCameraPositionAgent(), LLBBox::getExtentLocal(), LLControlGroup::getF32(), LLSingleton< LLViewerCamera >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLAgent::getPosAgentFromGlobal(), LLBBox::getPositionAgent(), LLAgent::getPositionAgent(), LLBBox::getRotation(), LLCamera::getView(), LLCamera::getViewHeightInPixels(), gSavedSettings, LLManip::LL_NO_PART, mBoxHandleSize, LLVOAvatar::mHUDCurZoom, mManipPart, LLManip::mObjectSelection, LLVector3::mV, RAD_TO_DEG, renderCorners(), renderFaces(), renderGuidelinesPart(), renderSnapGuides(), LLManip::renderXYZ(), SELECT_TYPE_HUD, VX, VY, and VZ.
void LLManipScale::handleSelect | ( | ) | [virtual] |
Reimplemented from LLManip.
Definition at line 160 of file llmanipscale.cpp.
References LLSelectMgr::getBBoxOfSelection(), LLSingleton< LLSelectMgr >::getInstance(), gFloaterTools, LLManip::handleSelect(), LLSelectMgr::saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, LLFloaterTools::setStatusText(), and updateSnapGuides().
void LLManipScale::handleDeselect | ( | ) | [virtual] |
Reimplemented from LLManip.
Definition at line 169 of file llmanipscale.cpp.
References LLManip::handleDeselect(), LLManip::LL_NO_PART, LLManip::mHighlightedPart, and mManipPart.
Implements LLManip.
Definition at line 330 of file llmanipscale.cpp.
References canAffectSelection(), LLSelectMgr::enableSilhouette(), FALSE, gAgent, LLSelectMgr::getBBoxOfSelection(), LLBBox::getCenterAgent(), LLSingleton< LLSelectMgr >::getInstance(), LLAgent::getPosGlobalFromAgent(), highlightManipulators(), LLBBox::localToAgent(), mDragFarHitGlobal, mDragPointGlobal, mDragStartCenterGlobal, mDragStartPointGlobal, LLManip::mHelpTextTimer, LLManip::mHighlightedPart, mManipPart, partToUnitVector(), LLFrameTimer::reset(), S32, LLSelectMgr::saveSelectedObjectTransform(), SELECT_ACTION_TYPE_SCALE, LLTool::setMouseCapture(), LLManip::sNumTimesHelpTextShown, TRUE, unitVectorToLocalBBoxExtent(), and updateSnapGuides().
Referenced by handleMouseDown().
Implements LLManip.
Definition at line 431 of file llmanipscale.cpp.
References canAffectSelection(), LLQuaternion::DEFAULT, gAgent, LLAgent::getAvatarObject(), LLSelectMgr::getBBoxOfSelection(), LLBBox::getCenterLocal(), LLSingleton< LLViewerCamera >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLCriticalDamp::getInterpolant(), LLBBox::getMaxLocal(), LLBBox::getMinLocal(), LLViewerCamera::getModelview(), LLBBox::getPositionAgent(), LLViewerCamera::getProjection(), LLBBox::getRotation(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gViewerWindow, i, LLMatrix4::initAll(), LLMatrix4::initRotTrans(), lerp(), LLManip::LL_NO_PART, lldebugst, llendl, LLVector2::magVecSquared(), MANIPULATOR_IDS, MANIPULATOR_SCALE_HALF_LIFE, MAX_MANIP_SELECT_DISTANCE_SQUARED, LLManip::mHighlightedPart, LLVOAvatar::mHUDCurZoom, LLManipScale::ManipulatorHandle::mManipID, mManipulatorScales, mManipulatorVertices, LLManip::mObjectSelection, LLManipScale::ManipulatorHandle::mPosition, mProjectedManipulators, LLVector4::mV, LLVector3::mV, NUM_MANIPULATORS, OGL_TO_CFR_ROTATION, S32, SCALE_MANIP_CORNER, SCALE_MANIP_FACE, SELECT_TYPE_HUD, SELECTED_MANIPULATOR_SCALE, LLVector2::setVec(), VW, VX, VY, VZ, and LLVector3::zero.
Referenced by handleHover(), and handleMouseDownOnPart().
BOOL LLManipScale::canAffectSelection | ( | ) | [virtual] |
Implements LLManip.
Definition at line 2043 of file llmanipscale.cpp.
References LLViewerObject::isSeat(), LLManip::mObjectSelection, LLViewerObject::permModify(), and LLViewerObject::permMove().
Referenced by handleMouseDownOnPart(), highlightManipulators(), and render().
void LLManipScale::setUniform | ( | BOOL | b | ) | [static] |
Definition at line 94 of file llmanipscale.cpp.
References gSavedSettings, and LLControlGroup::setBOOL().
BOOL LLManipScale::getUniform | ( | ) | [static] |
Definition at line 112 of file llmanipscale.cpp.
References LLControlGroup::getBOOL(), and gSavedSettings.
Referenced by dragCorner(), dragFace(), partToMaxScale(), partToMinScale(), renderGuidelinesPart(), renderSnapGuides(), stretchFace(), and updateSnapGuides().
void LLManipScale::setStretchTextures | ( | BOOL | b | ) | [static] |
Definition at line 106 of file llmanipscale.cpp.
References gSavedSettings, and LLControlGroup::setBOOL().
BOOL LLManipScale::getStretchTextures | ( | ) | [static] |
Definition at line 124 of file llmanipscale.cpp.
References LLControlGroup::getBOOL(), and gSavedSettings.
Referenced by handleHover(), handleMouseUp(), and LLPanelObject::sendScale().
void LLManipScale::setShowAxes | ( | BOOL | b | ) | [static] |
Definition at line 100 of file llmanipscale.cpp.
References gSavedSettings, and LLControlGroup::setBOOL().
BOOL LLManipScale::getShowAxes | ( | ) | [static] |
Definition at line 118 of file llmanipscale.cpp.
References LLControlGroup::getBOOL(), and gSavedSettings.
Referenced by renderAxisHandle().
void LLManipScale::renderCorners | ( | const LLBBox & | local_bbox | ) | [private] |
Definition at line 735 of file llmanipscale.cpp.
References conditionalHighlight(), LLBBox::getMaxLocal(), LLBBox::getMinLocal(), i, j, LLManip::LL_CORNER_NNN, LLVector3::mV, renderBoxHandle(), S32, VX, VY, and VZ.
Referenced by render().
void LLManipScale::renderFaces | ( | const LLBBox & | local_bbox | ) | [private] |
Definition at line 548 of file llmanipscale.cpp.
References LLBBox::agentToLocalBasis(), LLGLImmediate::begin(), LLGLImmediate::color4fv(), conditionalHighlight(), LLGLImmediate::end(), gAgent, LLAgent::getCameraPositionAgent(), LLBBox::getCenterAgent(), LLBBox::getCenterLocal(), LLBBox::getMaxLocal(), LLBBox::getMinLocal(), gGL, i, LLManip::LL_FACE_NEGX, LLManip::LL_FACE_NEGY, LLManip::LL_FACE_NEGZ, LLManip::LL_FACE_POSX, LLManip::LL_FACE_POSY, LLManip::LL_FACE_POSZ, LLManip::LL_NO_PART, mManipPart, LLManip::mObjectSelection, LLVector3::mV, LLColor4::mV, LLVertexBuffer::QUADS, renderAxisHandle(), S32, LLGLImmediate::vertex3f(), VX, VY, and VZ.
Referenced by render().
void LLManipScale::renderEdges | ( | const LLBBox & | local_bbox | ) | [private] |
Definition at line 710 of file llmanipscale.cpp.
References conditionalHighlight(), edgeToUnitVector(), gBox, LLBBox::getExtentLocal(), LLManip::LL_EDGE_MAX, LLManip::LL_EDGE_MIN, mBoxHandleSize, LLVector3::mV, LLBox::render(), unitVectorToLocalBBoxExtent(), VX, VY, and VZ.
Definition at line 762 of file llmanipscale.cpp.
References gBox, mScaledBoxHandleSize, LLBox::render(), and LLImageGL::unbindTexture().
Referenced by renderAxisHandle(), and renderCorners().
Definition at line 777 of file llmanipscale.cpp.
References gBox, getShowAxes(), llabs(), mBoxHandleSize, LLVector3::mV, LLVector3::normVec(), LLBox::render(), renderBoxHandle(), VX, VY, and VZ.
Referenced by renderFaces().
void LLManipScale::renderGuidelinesPart | ( | const LLBBox & | local_bbox | ) | [private] |
Definition at line 1330 of file llmanipscale.cpp.
References LLBBox::getCenterLocal(), LLSingleton< LLWorld >::getInstance(), LLWorld::getRegionWidthInMeters(), getUniform(), gl_stippled_line_3d(), mManipPart, LLVector3::normVec(), partToUnitVector(), and unitVectorToLocalBBoxExtent().
Referenced by render().
void LLManipScale::renderSnapGuides | ( | const LLBBox & | local_bbox | ) | [private] |
Definition at line 1517 of file llmanipscale.cpp.
References LLGLImmediate::begin(), clamp_rescale(), LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLGLImmediate::end(), gAgent, LLControlGroup::getBOOL(), LLBBox::getCenterAgent(), LLFrameTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLSelectMgr::getGridMode(), LLSingleton< LLSelectMgr >::getInstance(), LLSingleton< LLViewerCamera >::getInstance(), LLAgent::getPosAgentFromGlobal(), LLSelectMgr::getSavedBBoxOfSelection(), LLManip::getSubdivisionLevel(), getUniform(), LLCoordFrame::getUpAxis(), gGL, GRID_MODE_WORLD, gSavedSettings, hud_render_utf8text(), i, is_approx_equal(), LLVertexBuffer::LINES, llabs(), llceil(), llclamp(), llmax(), llmin(), llround(), lltrunc(), mBoxHandleSize, mDragPointGlobal, LLManip::mHelpTextTimer, mInSnapRegime, mManipPart, LLManip::mObjectSelection, mScaleCenter, mScaleDir, mScaleSnapUnit1, mScaleSnapUnit2, mScaleSnapValue, mSnapGuideDir1, mSnapGuideDir2, mSnapGuideLength, mSnapRegimeOffset, LLVector3::mV, LLColor4::mV, LLFontGL::NORMAL, LLVector2::normVec(), LLVector3::normVec(), partToMaxScale(), LLManip::renderTickValue(), S32, SELECT_TYPE_HUD, LLManip::setupSnapGuideRenderPass(), LLManip::sGridMaxSubdivisionLevel, LLManip::sGridMinSubdivisionLevel, LLManip::sHelpTextFadeTime, LLManip::sHelpTextVisibleTime, LLManip::sMaxTimesShowHelpText, LLManip::sNumTimesHelpTextShown, LLFontGL::sSansSerif, LLManip::sTickLabelSpacing, LLVertexBuffer::TRIANGLES, LLManip::updateGridSettings(), VALPHA, VBLUE, LLGLImmediate::vertex3fv(), VGREEN, VRED, and LLColor4::white.
Referenced by render().
void LLManipScale::revert | ( | ) | [private] |
void LLManipScale::conditionalHighlight | ( | U32 | part, | |
const LLColor4 * | highlight = NULL , |
|||
const LLColor4 * | normal = NULL | |||
) | [inline, private] |
Definition at line 129 of file llmanipscale.cpp.
References LLGLImmediate::color4fv(), gGL, i, LLManip::LL_NO_PART, MANIPULATOR_IDS, mBoxHandleSize, LLManip::mHighlightedPart, mManipPart, mManipulatorScales, mScaledBoxHandleSize, LLColor4::mV, NUM_MANIPULATORS, and S32.
Referenced by renderCorners(), renderEdges(), and renderFaces().
Definition at line 807 of file llmanipscale.cpp.
References LLAgent::clearFocusObject(), dragCorner(), dragFace(), gAgent, LLSingleton< LLSelectMgr >::getInstance(), LLSelectNode::getObject(), LLXform::getPosition(), LLXform::getScale(), LLSelectMgr::getSelection(), LLManip::getSelection(), LLPrimitive::isAvatar(), LLManip::LL_CORNER_MAX, LLManip::LL_CORNER_MIN, LLManip::LL_FACE_MAX, LLManip::LL_FACE_MIN, LLSelectNode::mLastPositionLocal, LLSelectNode::mLastScale, mManipPart, LLViewerObject::permModify(), LLViewerObject::permMove(), S32, and LLSelectMgr::updateSelectionCenter().
Referenced by handleHover().
Definition at line 1062 of file llmanipscale.cpp.
References dist_vec(), FALSE, gAgent, LLSelectMgr::getBBoxOfSelection(), LLControlGroup::getBOOL(), LLSingleton< LLSelectMgr >::getInstance(), LLManip::getMousePointOnPlaneAgent(), LLAgent::getPosAgentFromGlobal(), LLManip::getSubdivisionLevel(), getUniform(), gSavedSettings, llabs(), llclamp(), LLBBox::localToAgentBasis(), mDragPointGlobal, mDragStartCenterGlobal, mDragStartPointGlobal, mInSnapRegime, mLastMouseX, mLastMouseY, mManipPart, mScaleCenter, mScaleDir, mScalePlaneNormal1, mScaleSnapUnit1, mScaleSnapValue, mSnapRegimeOffset, LLVector3::mV, LLManip::nearestPointOnLineFromMouse(), partToMaxScale(), partToMinScale(), partToUnitVector(), projected_vec(), LLVector3::setVec(), LLVector3d::setVec(), LLManip::sGridMaxSubdivisionLevel, LLManip::sGridMinSubdivisionLevel, stretchFace(), TRUE, VX, VY, VZ, LLVector3::x_axis, LLVector3::y_axis, and LLVector3::z_axis.
Referenced by drag().
Definition at line 839 of file llmanipscale.cpp.
References LLWorld::clipToVisibleRegions(), DEFAULT_MAX_PRIM_SCALE, dist_vec(), FALSE, gAgent, LLSelectMgr::getBBoxOfSelection(), LLControlGroup::getBOOL(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLManip::getMousePointOnPlaneAgent(), LLSelectNode::getObject(), LLAgent::getPosAgentFromGlobal(), LLXform::getPosition(), LLViewerObject::getPositionEdit(), LLViewerObject::getPositionGlobal(), LLViewerObject::getRotationEdit(), LLManip::getSubdivisionLevel(), getUniform(), gSavedSettings, LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLXform::isRootEdit(), llclamp(), llmax(), llmin(), LLViewerObject::mChildList, mDragFarHitGlobal, mDragPointGlobal, mDragStartCenterGlobal, mDragStartPointGlobal, MIN_PRIM_SCALE, LLSelectNode::mIndividualSelection, mInSnapRegime, mLastMouseX, mLastMouseY, mManipPart, LLManip::mObjectSelection, LLSelectNode::mSavedPositionGlobal, LLSelectNode::mSavedPositionLocal, LLSelectNode::mSavedScale, mScaleCenter, mScaleDir, mScalePlaneNormal1, mScalePlaneNormal2, mScaleSnapUnit1, mScaleSnapUnit2, mScaleSnapValue, mSnapGuideDir1, mSnapGuideDir2, mSnapRegimeOffset, LLVector3::mV, LLManip::nearestPointOnLineFromMouse(), LLVector3::normVec(), partToMaxScale(), partToMinScale(), LLViewerObject::permModify(), LLViewerObject::permMove(), projected_vec(), LLManip::rebuild(), LLViewerObject::setPosition(), LLViewerObject::setPositionAbsoluteGlobal(), LLViewerObject::setScale(), LLVector3::setVec(), LLVector3d::setVec(), LLManip::sGridMaxSubdivisionLevel, LLManip::sGridMinSubdivisionLevel, TRUE, VX, VY, and VZ.
Referenced by drag().
void LLManipScale::sendUpdates | ( | BOOL | send_position_update, | |
BOOL | send_scale_update, | |||
BOOL | corner = FALSE | |||
) | [private] |
Definition at line 1203 of file llmanipscale.cpp.
References dialog_refresh_all(), FALSE, LLControlGroup::getBOOL(), LLTimer::getElapsedTimeF32(), LLSingleton< LLSelectMgr >::getInstance(), gSavedSettings, mLastUpdateFlags, mSendUpdateOnMouseUp, LLTimer::reset(), LLSelectMgr::sendMultipleUpdate(), TRUE, UPD_NONE, UPD_POSITION, UPD_SCALE, and UPD_UNIFORM.
Referenced by handleMouseUp().
Definition at line 1866 of file llmanipscale.cpp.
References LLManip::LL_FACE_MAX, LLManip::LL_FACE_MIN, LLManip::LL_FACE_NEGX, LLManip::LL_FACE_NEGY, LLManip::LL_FACE_NEGZ, LLManip::LL_FACE_POSX, LLManip::LL_FACE_POSY, LLManip::LL_FACE_POSZ, and llassert.
Referenced by partToUnitVector().
Definition at line 1894 of file llmanipscale.cpp.
References LLVector3::clearVec(), F_SQRT3, LLManip::LL_CORNER_MAX, LLManip::LL_CORNER_MIN, LLManip::LL_CORNER_NNN, LLManip::LL_CORNER_NNP, LLManip::LL_CORNER_NPN, LLManip::LL_CORNER_NPP, LLManip::LL_CORNER_PNN, LLManip::LL_CORNER_PNP, LLManip::LL_CORNER_PPN, LLManip::LL_CORNER_PPP, llassert, and LLVector3::setVec().
Referenced by partToUnitVector().
Definition at line 1932 of file llmanipscale.cpp.
References F_SQRT2, LLManip::LL_EDGE_MAX, LLManip::LL_EDGE_MIN, llassert, LLVector3::mV, and S32.
Referenced by partToUnitVector(), and renderEdges().
Definition at line 1845 of file llmanipscale.cpp.
References cornerToUnitVector(), edgeToUnitVector(), faceToUnitVector(), LLManip::LL_CORNER_MAX, LLManip::LL_CORNER_MIN, LLManip::LL_EDGE_MAX, LLManip::LL_EDGE_MIN, LLManip::LL_FACE_MAX, and LLManip::LL_FACE_MIN.
Referenced by dragFace(), handleMouseDownOnPart(), partToMaxScale(), partToMinScale(), renderGuidelinesPart(), and updateSnapGuides().
LLVector3 LLManipScale::unitVectorToLocalBBoxExtent | ( | const LLVector3 & | v, | |
const LLBBox & | bbox | |||
) | const [private] |
Definition at line 1945 of file llmanipscale.cpp.
References LLBBox::getCenterLocal(), LLBBox::getMaxLocal(), LLBBox::getMinLocal(), and LLVector3::mV.
Referenced by handleMouseDownOnPart(), partToMaxScale(), partToMinScale(), renderEdges(), renderGuidelinesPart(), and updateSnapGuides().
Definition at line 1958 of file llmanipscale.cpp.
References LLVector3::abs(), DEFAULT_MAX_PRIM_SCALE, getUniform(), i, LLVector3::magVec(), LLVector3::mV, partToUnitVector(), unitVectorToLocalBBoxExtent(), VX, and VZ.
Referenced by dragCorner(), dragFace(), and renderSnapGuides().
Definition at line 1982 of file llmanipscale.cpp.
References LLVector3::abs(), DEFAULT_MAX_PRIM_SCALE, getUniform(), i, LLVector3::magVec(), MIN_PRIM_SCALE, LLVector3::mV, partToUnitVector(), unitVectorToLocalBBoxExtent(), VX, and VZ.
Referenced by dragCorner(), and dragFace().
Definition at line 2005 of file llmanipscale.cpp.
Referenced by stretchFace().
void LLManipScale::stretchFace | ( | const LLVector3 & | drag_start_agent, | |
const LLVector3 & | drag_delta_agent | |||
) | [private] |
Definition at line 1241 of file llmanipscale.cpp.
References LLBBox::agentToLocal(), LLWorld::clipToVisibleRegions(), DEFAULT_MAX_PRIM_SCALE, FALSE, gAgent, LLViewerObject::getBoundingBoxAgent(), LLBBox::getCenterAgent(), LLSingleton< LLWorld >::getInstance(), LLSelectNode::getObject(), LLAgent::getPosAgentFromGlobal(), LLXform::getPosition(), LLViewerObject::getPositionEdit(), LLViewerObject::getRotationEdit(), LLXform::getScale(), getUniform(), LLXform::getWorldRotation(), is_approx_zero(), LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLXform::isRootEdit(), llclamp(), LLBBox::localToAgent(), LLVector3::magVec(), LLViewerObject::mChildList, mDragStartCenterGlobal, LLViewerObject::mDrawable, MIN_PRIM_SCALE, LLSelectNode::mIndividualSelection, LLManip::mObjectSelection, LLSelectNode::mSavedPositionGlobal, LLSelectNode::mSavedPositionLocal, LLSelectNode::mSavedScale, LLVector3::mV, nearestAxis(), LLViewerObject::permModify(), LLViewerObject::permMove(), LLManip::rebuild(), S32, LLViewerObject::setPosition(), LLViewerObject::setPositionGlobal(), LLViewerObject::setScale(), and LLVector3::setVec().
Referenced by dragFace().
void LLManipScale::adjustTextureRepeats | ( | ) | [private] |
void LLManipScale::updateSnapGuides | ( | const LLBBox & | bbox | ) | [private] |
Definition at line 1356 of file llmanipscale.cpp.
References LLVector3::abs(), dist_vec(), gAgent, LLCoordFrame::getAtAxis(), LLAgent::getAvatarObject(), LLBBox::getCenterAgent(), LLSelectMgr::getGrid(), LLSingleton< LLViewerCamera >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLBBox::getMaxLocal(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelMeterRatio(), LLBBox::getRotation(), getUniform(), LLCoordFrame::getUpAxis(), LLViewerWindow::getWindowWidth(), gViewerWindow, LLManip::LL_CORNER_MAX, LLManip::LL_CORNER_MIN, LLManip::LL_CORNER_NNN, LLManip::LL_CORNER_NNP, LLManip::LL_CORNER_NPN, LLManip::LL_CORNER_NPP, LLManip::LL_CORNER_PNN, LLManip::LL_CORNER_PNP, LLManip::LL_CORNER_PPN, LLManip::LL_CORNER_PPP, LLManip::LL_FACE_MAX, LLManip::LL_FACE_MIN, llabs(), llmax(), llmin(), LLBBox::localToAgent(), LLVector3::magVec(), LLVOAvatar::mHUDCurZoom, mManipPart, LLManip::mObjectSelection, mScaleCenter, mScaleDir, mScalePlaneNormal1, mScalePlaneNormal2, mScaleSnapUnit1, mScaleSnapUnit2, mSnapDir1, mSnapDir2, mSnapGuideDir1, mSnapGuideDir2, mSnapGuideLength, mSnapRegimeOffset, LLVector3::mV, LLVector3::normVec(), partToUnitVector(), projected_vec(), LLVector3::rotVec(), S32, LLVector3::scaleVec(), SELECT_TYPE_HUD, LLVector3::setVec(), SNAP_GUIDE_SCREEN_LENGTH, SNAP_GUIDE_SCREEN_OFFSET, unitVectorToLocalBBoxExtent(), VX, VY, VZ, LLVector3::x_axis, LLVector3::y_axis, and LLVector3::z_axis.
Referenced by handleMouseDownOnPart(), and handleSelect().
F32 LLManipScale::mBoxHandleSize [private] |
Definition at line 141 of file llmanipscale.h.
Referenced by conditionalHighlight(), render(), renderAxisHandle(), renderEdges(), and renderSnapGuides().
F32 LLManipScale::mScaledBoxHandleSize [private] |
Definition at line 142 of file llmanipscale.h.
Referenced by conditionalHighlight(), and renderBoxHandle().
EManipPart LLManipScale::mManipPart [private] |
Definition at line 143 of file llmanipscale.h.
Referenced by conditionalHighlight(), drag(), dragCorner(), dragFace(), handleDeselect(), handleMouseDownOnPart(), handleMouseUp(), render(), renderFaces(), renderGuidelinesPart(), renderSnapGuides(), and updateSnapGuides().
Definition at line 144 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), and handleMouseDownOnPart().
Definition at line 145 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), handleMouseDownOnPart(), and stretchFace().
LLVector3d LLManipScale::mDragPointGlobal [private] |
Definition at line 146 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), handleMouseDownOnPart(), and renderSnapGuides().
LLVector3d LLManipScale::mDragFarHitGlobal [private] |
Definition at line 147 of file llmanipscale.h.
Referenced by dragCorner(), and handleMouseDownOnPart().
S32 LLManipScale::mLastMouseX [private] |
S32 LLManipScale::mLastMouseY [private] |
BOOL LLManipScale::mSendUpdateOnMouseUp [private] |
U32 LLManipScale::mLastUpdateFlags [private] |
Definition at line 153 of file llmanipscale.h.
Referenced by highlightManipulators(), and ~LLManipScale().
LLVector4 LLManipScale::mManipulatorVertices[14] [private] |
F32 LLManipScale::mScaleSnapUnit1 [private] |
Definition at line 155 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), renderSnapGuides(), and updateSnapGuides().
F32 LLManipScale::mScaleSnapUnit2 [private] |
Definition at line 156 of file llmanipscale.h.
Referenced by dragCorner(), renderSnapGuides(), and updateSnapGuides().
LLVector3 LLManipScale::mScalePlaneNormal1 [private] |
Definition at line 157 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), and updateSnapGuides().
LLVector3 LLManipScale::mScalePlaneNormal2 [private] |
LLVector3 LLManipScale::mSnapGuideDir1 [private] |
Definition at line 159 of file llmanipscale.h.
Referenced by dragCorner(), renderSnapGuides(), and updateSnapGuides().
LLVector3 LLManipScale::mSnapGuideDir2 [private] |
Definition at line 160 of file llmanipscale.h.
Referenced by dragCorner(), renderSnapGuides(), and updateSnapGuides().
LLVector3 LLManipScale::mSnapDir1 [private] |
LLVector3 LLManipScale::mSnapDir2 [private] |
F32 LLManipScale::mSnapRegimeOffset [private] |
Definition at line 163 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), renderSnapGuides(), and updateSnapGuides().
F32 LLManipScale::mSnapGuideLength [private] |
Definition at line 164 of file llmanipscale.h.
Referenced by renderSnapGuides(), and updateSnapGuides().
LLVector3 LLManipScale::mScaleCenter [private] |
Definition at line 165 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), renderSnapGuides(), and updateSnapGuides().
LLVector3 LLManipScale::mScaleDir [private] |
Definition at line 166 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), renderSnapGuides(), and updateSnapGuides().
F32 LLManipScale::mScaleSnapValue [private] |
Definition at line 167 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), and renderSnapGuides().
BOOL LLManipScale::mInSnapRegime [private] |
Reimplemented from LLManip.
Definition at line 168 of file llmanipscale.h.
Referenced by dragCorner(), dragFace(), handleHover(), and renderSnapGuides().
F32* LLManipScale::mManipulatorScales [private] |
Definition at line 169 of file llmanipscale.h.
Referenced by conditionalHighlight(), highlightManipulators(), LLManipScale(), and ~LLManipScale().