#include <lljoystickbutton.h>
Inheritance diagram for LLJoystickCameraZoom:
Public Member Functions | |
LLJoystickCameraZoom (const LLString &name, LLRect rect, const LLString &out_img, const LLString &plus_in_img, const LLString &minus_in_img) | |
virtual void | setToggleState (BOOL top, BOOL bottom) |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual void | onHeldDown () |
virtual void | draw () |
Protected Member Functions | |
virtual void | updateSlop () |
F32 | getOrbitRate () |
Protected Attributes | |
BOOL | mInTop |
BOOL | mInBottom |
LLPointer< LLViewerImage > | mPlusInImage |
LLPointer< LLViewerImage > | mMinusInImage |
Definition at line 167 of file lljoystickbutton.h.
LLJoystickCameraZoom::LLJoystickCameraZoom | ( | const LLString & | name, | |
LLRect | rect, | |||
const LLString & | out_img, | |||
const LLString & | plus_in_img, | |||
const LLString & | minus_in_img | |||
) |
Definition at line 718 of file lljoystickbutton.cpp.
References LLUI::findAssetUUIDByName(), LLViewerImageList::getImage(), gImageList, MIPMAP_FALSE, mMinusInImage, mPlusInImage, and TRUE.
void LLJoystickCameraZoom::draw | ( | ) | [virtual] |
Reimplemented from LLButton.
Definition at line 789 of file lljoystickbutton.cpp.
References LLView::drawDebugRect(), LLView::getVisible(), gl_draw_image(), LLButton::mImageUnselected, mInBottom, mInTop, mMinusInImage, mPlusInImage, and LLView::sDebugRects.
F32 LLJoystickCameraZoom::getOrbitRate | ( | ) | [protected] |
Definition at line 859 of file lljoystickbutton.cpp.
References LLJoystick::getElapsedHeldDownTime(), NUDGE_TIME, and ORBIT_NUDGE_RATE.
Referenced by onHeldDown().
Reimplemented from LLJoystick.
Definition at line 729 of file lljoystickbutton.cpp.
References LLRectBase< Type >::getHeight(), LLJoystick::handleMouseDown(), JQ_DOWN, JQ_UP, LLJoystick::mFirstMouse, LLJoystick::mInitialQuadrant, LLView::mRect, and LLCoord::mY.
void LLJoystickCameraZoom::onHeldDown | ( | ) | [virtual] |
Implements LLJoystick.
Definition at line 748 of file lljoystickbutton.cpp.
References gAgent, getOrbitRate(), LLJoystick::mFirstMouse, LLJoystick::mInitialOffset, LLJoystick::mLastMouse, LLJoystick::mVertSlopFar, LLJoystick::mVertSlopNear, LLCoord::mY, S32, LLAgent::setOrbitInKey(), LLAgent::setOrbitOutKey(), LLAgent::unlockView(), and updateSlop().
Definition at line 783 of file lljoystickbutton.cpp.
References mInBottom, and mInTop.
Referenced by LLAgent::updateCamera().
void LLJoystickCameraZoom::updateSlop | ( | ) | [protected, virtual] |
Reimplemented from LLJoystick.
Definition at line 814 of file lljoystickbutton.cpp.
References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), JQ_DOWN, JQ_LEFT, JQ_ORIGIN, JQ_RIGHT, JQ_UP, llendl, llerrs, LLJoystick::mHorizSlopFar, LLJoystick::mHorizSlopNear, LLJoystick::mInitialOffset, LLJoystick::mInitialQuadrant, LLView::mRect, LLJoystick::mVertSlopFar, LLJoystick::mVertSlopNear, LLCoord::mX, LLCoord::mY, and LLCoord::set().
Referenced by onHeldDown().
BOOL LLJoystickCameraZoom::mInBottom [protected] |
BOOL LLJoystickCameraZoom::mInTop [protected] |
LLPointer<LLViewerImage> LLJoystickCameraZoom::mMinusInImage [protected] |
Definition at line 187 of file lljoystickbutton.h.
Referenced by draw(), and LLJoystickCameraZoom().
LLPointer<LLViewerImage> LLJoystickCameraZoom::mPlusInImage [protected] |
Definition at line 186 of file lljoystickbutton.h.
Referenced by draw(), and LLJoystickCameraZoom().