LLJoystickCameraZoom Class Reference

#include <lljoystickbutton.h>

Inheritance diagram for LLJoystickCameraZoom:

Inheritance graph
Collaboration diagram for LLJoystickCameraZoom:

Collaboration graph
List of all members.

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 mInBottom
LLPointer< LLViewerImagemPlusInImage
LLPointer< LLViewerImagemMinusInImage

Detailed Description

Definition at line 167 of file lljoystickbutton.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

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

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

void LLJoystickCameraZoom::setToggleState ( BOOL  top,
BOOL  bottom 
) [virtual]

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

Member Data Documentation

BOOL LLJoystickCameraZoom::mInBottom [protected]

Definition at line 185 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().

BOOL LLJoystickCameraZoom::mInTop [protected]

Definition at line 184 of file lljoystickbutton.h.

Referenced by draw(), and setToggleState().

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

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