#include <lljoystickbutton.h>


Public Member Functions | |
| LLJoystickCameraRotate (const LLString &name, LLRect rect, const LLString &out_img, const LLString &in_img) | |
| virtual void | setToggleState (BOOL left, BOOL top, BOOL right, BOOL bottom) |
| virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
| virtual void | onHeldDown () |
| virtual void | draw () |
Protected Member Functions | |
| F32 | getOrbitRate () |
| virtual void | updateSlop () |
| void | drawRotatedImage (const LLImageGL *image, S32 rotations) |
Protected Attributes | |
| BOOL | mInLeft |
| BOOL | mInTop |
| BOOL | mInRight |
| BOOL | mInBottom |
Definition at line 121 of file lljoystickbutton.h.
| LLJoystickCameraRotate::LLJoystickCameraRotate | ( | const LLString & | name, | |
| LLRect | rect, | |||
| const LLString & | out_img, | |||
| const LLString & | in_img | |||
| ) |
Definition at line 482 of file lljoystickbutton.cpp.
Reimplemented from LLJoystick.
Definition at line 507 of file lljoystickbutton.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLJoystick::handleMouseDown(), JQ_DOWN, JQ_LEFT, JQ_RIGHT, JQ_UP, LLJoystick::mHorizSlopFar, LLJoystick::mHorizSlopNear, LLJoystick::mInitialOffset, LLJoystick::mInitialQuadrant, LLJoystick::mVertSlopFar, LLJoystick::mVertSlopNear, LLCoord::mX, LLCoord::mY, S32, and updateSlop().

| void LLJoystickCameraRotate::onHeldDown | ( | ) | [virtual] |
Implements LLJoystick.
Reimplemented in LLJoystickCameraTrack.
Definition at line 551 of file lljoystickbutton.cpp.
References gAgent, getOrbitRate(), LLJoystick::mFirstMouse, LLJoystick::mHorizSlopNear, LLJoystick::mInitialOffset, LLJoystick::mLastMouse, LLJoystick::mVertSlopNear, LLCoord::mX, LLCoord::mY, S32, LLAgent::setOrbitDownKey(), LLAgent::setOrbitLeftKey(), LLAgent::setOrbitRightKey(), LLAgent::setOrbitUpKey(), LLAgent::unlockView(), and updateSlop().

| void LLJoystickCameraRotate::draw | ( | void | ) | [virtual] |
Reimplemented from LLButton.
Definition at line 608 of file lljoystickbutton.cpp.
References LLView::drawDebugRect(), drawRotatedImage(), LLButton::getImageSelected(), LLButton::getImageUnselected(), mInBottom, mInLeft, mInRight, mInTop, and LLView::sDebugRects.

| F32 LLJoystickCameraRotate::getOrbitRate | ( | ) | [protected] |
Definition at line 583 of file lljoystickbutton.cpp.
References LLJoystick::getElapsedHeldDownTime(), NUDGE_TIME, and ORBIT_NUDGE_RATE.
Referenced by LLJoystickCameraTrack::onHeldDown(), and onHeldDown().


| void LLJoystickCameraRotate::updateSlop | ( | ) | [protected, virtual] |
Reimplemented from LLJoystick.
Definition at line 492 of file lljoystickbutton.cpp.
References LLJoystick::mHorizSlopFar, LLJoystick::mHorizSlopNear, LLJoystick::mVertSlopFar, and LLJoystick::mVertSlopNear.
Referenced by handleMouseDown(), LLJoystickCameraTrack::onHeldDown(), and onHeldDown().

| void LLJoystickCameraRotate::drawRotatedImage | ( | const LLImageGL * | image, | |
| S32 | rotations | |||
| ) | [protected] |
Definition at line 641 of file lljoystickbutton.cpp.
References LLGLImmediate::begin(), LLImageGL::bind(), LLGLImmediate::color4fv(), LLGLImmediate::end(), LLImageGL::getHeight(), LLImageGL::getWidth(), gGL, LLColor4::mV, LLVertexBuffer::QUADS, S32, LLGLImmediate::texCoord2fv(), UI_VERTEX_COLOR, and LLGLImmediate::vertex2i().
Referenced by draw().


BOOL LLJoystickCameraRotate::mInLeft [protected] |
BOOL LLJoystickCameraRotate::mInTop [protected] |
BOOL LLJoystickCameraRotate::mInRight [protected] |
BOOL LLJoystickCameraRotate::mInBottom [protected] |
1.5.5