LLJoystickCameraRotate Class Reference

#include <lljoystickbutton.h>

Inheritance diagram for LLJoystickCameraRotate:

Inheritance graph
[legend]
Collaboration diagram for LLJoystickCameraRotate:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 128 of file lljoystickbutton.h.


Constructor & Destructor Documentation

LLJoystickCameraRotate::LLJoystickCameraRotate ( const LLString name,
LLRect  rect,
const LLString out_img,
const LLString in_img 
)

Definition at line 477 of file lljoystickbutton.cpp.


Member Function Documentation

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.

void LLJoystickCameraRotate::drawRotatedImage ( LLImageGL image,
S32  rotations 
) [protected]

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().

BOOL LLJoystickCameraRotate::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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().


Member Data Documentation

BOOL LLJoystickCameraRotate::mInBottom [protected]

Definition at line 149 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().

BOOL LLJoystickCameraRotate::mInLeft [protected]

Definition at line 146 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().

BOOL LLJoystickCameraRotate::mInRight [protected]

Definition at line 148 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().

BOOL LLJoystickCameraRotate::mInTop [protected]

Definition at line 147 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:26 2010 for Second Life Viewer by  doxygen 1.4.7