LLToolBrushLand Class Reference

#include <lltoolbrush.h>

Inheritance diagram for LLToolBrushLand:

Inheritance graph
[legend]
Collaboration diagram for LLToolBrushLand:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLToolBrushLand ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void handleSelect ()
virtual void handleDeselect ()
virtual BOOL isAlwaysRendered ()
virtual void render ()
void onMouseCaptureLost ()
void modifyLandInSelectionGlobal ()
virtual void undo ()
virtual BOOL canUndo () const

Static Public Member Functions

static void onIdle (void *brush_tool)

Protected Member Functions

void brush (void)
void modifyLandAtPointGlobal (const LLVector3d &spot, MASK mask)
void determineAffectedRegions (region_list_t &regions, const LLVector3d &spot) const
void renderOverlay (LLSurface &land, const LLVector3 &pos_region, const LLVector3 &pos_world)
bool canTerraform (LLViewerRegion *regionp) const
void alertNoTerraform (LLViewerRegion *regionp)

Protected Attributes

F32 mStartingZ
S32 mMouseX
S32 mMouseY
S32 mBrushIndex
BOOL mGotHover
BOOL mLastShowParcelOwners
BOOL mBrushSelected
region_list_t mLastAffectedRegions

Private Types

typedef std::set
< LLViewerRegion * > 
region_list_t


Detailed Description

Definition at line 49 of file lltoolbrush.h.


Member Typedef Documentation

typedef std::set<LLViewerRegion*> LLToolBrushLand::region_list_t [private]

Definition at line 51 of file lltoolbrush.h.


Constructor & Destructor Documentation

LLToolBrushLand::LLToolBrushLand (  ) 

============================================================================ Class LLToolBrushLand ============================================================================

Definition at line 91 of file lltoolbrush.cpp.

References LLControlGroup::getS32(), gSavedSettings, and mBrushIndex.

Here is the call graph for this function:


Member Function Documentation

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

BOOL LLToolBrushLand::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLToolBrushLand::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 384 of file lltoolbrush.cpp.

References LLViewerWindow::getWindow(), gViewerWindow, LLTool::hasMouseCapture(), lldebugst, llendl, mGotHover, mMouseX, mMouseY, LLWindow::setCursor(), TRUE, and UI_CURSOR_TOOLLAND.

Here is the call graph for this function:

void LLToolBrushLand::handleSelect (  )  [virtual]

void LLToolBrushLand::handleDeselect (  )  [virtual]

virtual BOOL LLToolBrushLand::isAlwaysRendered (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 65 of file lltoolbrush.h.

References TRUE.

void LLToolBrushLand::render (  )  [virtual]

void LLToolBrushLand::onIdle ( void *  brush_tool  )  [static]

Definition at line 533 of file lltoolbrush.cpp.

References LLCallbackList::deleteFunction(), LLToolMgr::getCurrentTool(), LLSingleton< LLToolMgr >::getInstance(), and gIdleCallbacks.

Referenced by handleMouseDown(), handleMouseUp(), and onMouseCaptureLost().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolBrushLand::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLTool.

Definition at line 547 of file lltoolbrush.cpp.

References LLCallbackList::deleteFunction(), gIdleCallbacks, and onIdle().

Here is the call graph for this function:

void LLToolBrushLand::modifyLandInSelectionGlobal (  ) 

Definition at line 181 of file lltoolbrush.cpp.

References _PREHASH_Action, _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BrushSize, _PREHASH_East, _PREHASH_Height, _PREHASH_LocalID, _PREHASH_ModifyBlock, _PREHASH_ModifyLand, _PREHASH_North, _PREHASH_ParcelData, _PREHASH_Seconds, _PREHASH_SessionID, _PREHASH_South, _PREHASH_West, LLMessageSystem::addF32Fast(), LLMessageSystem::addS32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), alertNoTerraform(), canTerraform(), LLVector3::clamp(), determineAffectedRegions(), LLSurfacePatch::dirtyZ(), E_LAND_LEVEL, E_LAND_LOWER, E_LAND_NOISE, E_LAND_RAISE, E_LAND_REVERT, E_LAND_SMOOTH, LLViewerRegion::forceUpdate(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLSingleton< LLToolSelectLand >::getInstance(), LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLViewerRegion::getLand(), LLParcel::getLocalID(), LLViewerParcelMgr::getParcelSelection(), LLRegionPosition::getPositionRegion(), LLViewerRegion::getPosRegionFromGlobal(), LLRegionPosition::getRegion(), LLControlGroup::getS32(), LLViewerParcelMgr::getSelection(), LLAgent::getSessionID(), LLViewerRegion::getWidth(), LLSurface::getZ(), gMessageSystem, gSavedSettings, i, j, llclamp(), mBrushIndex, LLVector3d::mdV, LLSurface::mGridsPerEdge, mLastAffectedRegions, mStartingZ, LLVector3::mV, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLSurface::resolvePatchRegion(), S32, LLMessageSystem::sendMessage(), VX, and VY.

Referenced by click_apply_to_selection().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolBrushLand::undo (  )  [virtual]

virtual BOOL LLToolBrushLand::canUndo (  )  const [inline, virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 77 of file lltoolbrush.h.

References TRUE.

void LLToolBrushLand::brush ( void   )  [protected]

void LLToolBrushLand::modifyLandAtPointGlobal ( const LLVector3d spot,
MASK  mask 
) [protected]

void LLToolBrushLand::determineAffectedRegions ( region_list_t regions,
const LLVector3d spot 
) const [protected]

Definition at line 500 of file lltoolbrush.cpp.

References LLSingleton< LLWorld >::getInstance(), LLWorld::getRegionFromPosGlobal(), LAND_BRUSH_SIZE, mBrushIndex, LLVector3d::mdV, NULL, VX, and VY.

Referenced by modifyLandAtPointGlobal(), modifyLandInSelectionGlobal(), and render().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolBrushLand::renderOverlay ( LLSurface land,
const LLVector3 pos_region,
const LLVector3 pos_world 
) [protected]

Definition at line 471 of file lltoolbrush.cpp.

References LLGLImmediate::begin(), LLGLImmediate::color4fv(), LLGLImmediate::end(), LLSurface::getZ(), gGL, i, j, LAND_BRUSH_SIZE, llfloor(), mBrushIndex, LLSurface::mGridsPerEdge, LLVector3::mV, LLColor4::mV, OVERLAY_COLOR, LLVertexBuffer::POINTS, S32, LLGLImmediate::vertex3f(), VX, and VY.

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLToolBrushLand::canTerraform ( LLViewerRegion regionp  )  const [protected]

Definition at line 584 of file lltoolbrush.cpp.

References LLViewerRegion::canManageEstate(), LLViewerRegion::getRegionFlags(), and REGION_FLAGS_BLOCK_TERRAFORM.

Referenced by handleMouseDown(), and modifyLandInSelectionGlobal().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolBrushLand::alertNoTerraform ( LLViewerRegion regionp  )  [protected]

Definition at line 592 of file lltoolbrush.cpp.

References LLViewerWindow::alertXml(), LLViewerRegion::getName(), and gViewerWindow.

Referenced by handleMouseDown(), and modifyLandInSelectionGlobal().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 96 of file lltoolbrush.h.

Referenced by brush(), handleHover(), handleMouseDown(), and render().

Definition at line 97 of file lltoolbrush.h.

Referenced by brush(), handleHover(), handleMouseDown(), and render().

Definition at line 99 of file lltoolbrush.h.

Referenced by handleHover(), and render().

Definition at line 100 of file lltoolbrush.h.

Referenced by handleDeselect(), and handleSelect().

Definition at line 101 of file lltoolbrush.h.

Referenced by handleDeselect(), and handleSelect().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:16:30 2008 for SecondLife by  doxygen 1.5.5