#include <lljoystickbutton.h>
Inheritance diagram for LLJoystickCameraRotate:


| 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 (LLImageGL *image, S32 rotations) | 
| Protected Attributes | |
| BOOL | mInLeft | 
| BOOL | mInTop | 
| BOOL | mInRight | 
| BOOL | mInBottom | 
Definition at line 128 of file lljoystickbutton.h.
| LLJoystickCameraRotate::LLJoystickCameraRotate | ( | const LLString & | name, | |
| LLRect | rect, | |||
| const LLString & | out_img, | |||
| const LLString & | in_img | |||
| ) | 
Definition at line 477 of file lljoystickbutton.cpp.
| void LLJoystickCameraRotate::draw | ( | ) |  [virtual] | 
Reimplemented from LLButton.
Definition at line 603 of file lljoystickbutton.cpp.
References LLView::drawDebugRect(), drawRotatedImage(), LLView::getVisible(), gl_draw_image(), LLButton::mImageSelected, LLButton::mImageUnselected, mInBottom, mInLeft, mInRight, mInTop, and LLView::sDebugRects.
Definition at line 640 of file lljoystickbutton.cpp.
References LLImageGL::bind(), LLImageGL::getHeight(), LLImageGL::getWidth(), glBegin, glColor4fv, glEnd, height, LLColor4::mV, S32, UI_VERTEX_COLOR, and width.
Referenced by draw().
| F32 LLJoystickCameraRotate::getOrbitRate | ( | ) |  [protected] | 
Definition at line 578 of file lljoystickbutton.cpp.
References LLJoystick::getElapsedHeldDownTime(), NUDGE_TIME, and ORBIT_NUDGE_RATE.
Referenced by LLJoystickCameraTrack::onHeldDown(), and onHeldDown().
Reimplemented from LLJoystick.
Definition at line 502 of file lljoystickbutton.cpp.
References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLJoystick::handleMouseDown(), JQ_DOWN, JQ_LEFT, JQ_RIGHT, JQ_UP, LLJoystick::mHorizSlopFar, LLJoystick::mHorizSlopNear, LLJoystick::mInitialOffset, LLJoystick::mInitialQuadrant, LLView::mRect, LLJoystick::mVertSlopFar, LLJoystick::mVertSlopNear, LLCoord::mX, LLCoord::mY, S32, and updateSlop().
| void LLJoystickCameraRotate::onHeldDown | ( | ) |  [virtual] | 
Implements LLJoystick.
Reimplemented in LLJoystickCameraTrack.
Definition at line 546 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::setToggleState | ( | BOOL | left, | |
| BOOL | top, | |||
| BOOL | right, | |||
| BOOL | bottom | |||
| ) |  [virtual] | 
Definition at line 595 of file lljoystickbutton.cpp.
References mInBottom, mInLeft, mInRight, and mInTop.
Referenced by LLAgent::updateCamera().
| void LLJoystickCameraRotate::updateSlop | ( | ) |  [protected, virtual] | 
Reimplemented from LLJoystick.
Definition at line 487 of file lljoystickbutton.cpp.
References LLJoystick::mHorizSlopFar, LLJoystick::mHorizSlopNear, LLJoystick::mVertSlopFar, and LLJoystick::mVertSlopNear.
Referenced by handleMouseDown(), LLJoystickCameraTrack::onHeldDown(), and onHeldDown().
| BOOL LLJoystickCameraRotate::mInBottom  [protected] | 
| BOOL LLJoystickCameraRotate::mInLeft  [protected] | 
| BOOL LLJoystickCameraRotate::mInRight  [protected] | 
| BOOL LLJoystickCameraRotate::mInTop  [protected] | 
 1.4.7
 1.4.7