LLToolPlacer Class Reference

#include <lltoolplacer.h>

Inheritance diagram for LLToolPlacer:

Inheritance graph
[legend]
Collaboration diagram for LLToolPlacer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLToolPlacer ()
virtual BOOL placeObject (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void handleSelect ()
virtual void handleDeselect ()

Static Public Member Functions

static void setObjectType (LLPCode type)
static LLPCode getObjectType ()

Static Protected Attributes

static LLPCode sObjectType = LL_PCODE_CUBE

Private Member Functions

BOOL addObject (LLPCode pcode, S32 x, S32 y, U8 use_physics)
BOOL raycastForNewObjPos (S32 x, S32 y, LLViewerObject **hit_obj, S32 *hit_face, BOOL *b_hit_land, LLVector3 *ray_start_region, LLVector3 *ray_end_region, LLViewerRegion **region)
BOOL addDuplicate (S32 x, S32 y)


Detailed Description

Definition at line 45 of file lltoolplacer.h.


Constructor & Destructor Documentation

LLToolPlacer::LLToolPlacer (  ) 

Definition at line 72 of file lltoolplacer.cpp.


Member Function Documentation

BOOL LLToolPlacer::placeObject ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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

Reimplemented from LLTool.

Definition at line 512 of file lltoolplacer.cpp.

References LLViewerWindow::getWindow(), gViewerWindow, lldebugst, llendl, LLWindow::setCursor(), TRUE, and UI_CURSOR_TOOLCREATE.

Here is the call graph for this function:

void LLToolPlacer::handleSelect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 519 of file lltoolplacer.cpp.

References gFloaterTools, and LLFloaterTools::setStatusText().

Here is the call graph for this function:

void LLToolPlacer::handleDeselect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 524 of file lltoolplacer.cpp.

static void LLToolPlacer::setObjectType ( LLPCode  type  )  [inline, static]

Definition at line 56 of file lltoolplacer.h.

References sObjectType.

Referenced by LLToolPlacerPanel::setObjectType(), and LLFloaterTools::setObjectType().

Here is the caller graph for this function:

static LLPCode LLToolPlacer::getObjectType (  )  [inline, static]

Definition at line 57 of file lltoolplacer.h.

References sObjectType.

Referenced by LLFloaterTools::updatePopup().

Here is the caller graph for this function:

BOOL LLToolPlacer::addObject ( LLPCode  pcode,
S32  x,
S32  y,
U8  use_physics 
) [private]

Definition at line 151 of file lltoolplacer.cpp.

References _PREHASH_AddFlags, _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BypassRaycast, _PREHASH_GroupID, _PREHASH_Material, _PREHASH_ObjectAdd, _PREHASH_ObjectData, _PREHASH_PCode, _PREHASH_RayEnd, _PREHASH_RayEndIsIntersection, _PREHASH_RayStart, _PREHASH_RayTargetID, _PREHASH_Rotation, _PREHASH_Scale, _PREHASH_SessionID, _PREHASH_State, LLMessageSystem::addQuatFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3Fast(), LLHUDManager::createViewerEffect(), DEFAULT_OBJECT_SCALE, DEG_TO_RAD, LLSelectMgr::deselectAll(), FALSE, FLAGS_CREATE_SELECTED, FLAGS_USE_PHYSICS, gAgent, gAudiop, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getEffectColor(), LLControlGroup::getF32(), LLAgent::getGroupID(), LLViewerRegion::getHost(), LLViewerObject::getID(), LLAgent::getID(), LLSingleton< LLViewerStats >::getInstance(), LLSingleton< LLHUDManager >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLViewerRegion::getPosGlobalFromRegion(), LLViewerRegion::getRegionFlags(), LLAgent::getSessionID(), LLControlGroup::getString(), LLViewerWindow::getWindow(), gMessageSystem, gSavedSettings, gViewerWindow, LLWindow::incBusyCount(), LLViewerStats::incStat(), LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), ll_frand(), LL_HUD_DUR_SHORT, LLHUDObject::LL_HUD_EFFECT_BEAM, LL_MCODE_WOOD, LL_PCODE_CONE, LL_PCODE_CONE_HEMI, LL_PCODE_CUBE, LL_PCODE_CYLINDER, LL_PCODE_CYLINDER_HEMI, LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_TREE, LL_PCODE_PATH_CIRCLE, LL_PCODE_PATH_LINE, LL_PCODE_PRISM, LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_EQUALTRI, LL_PCODE_PROFILE_SQUARE, LL_PCODE_PYRAMID, LL_PCODE_SPHERE, LL_PCODE_SPHERE_HEMI, LL_PCODE_TETRAHEDRON, LL_PCODE_TORUS, LL_PCODE_TREE_NEW, LL_PCODE_VOLUME, LLViewerObject::LL_VO_SQUARE_TORUS, LLViewerObject::LL_VO_TRIANGLE_TORUS, llendl, llwarns, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, LLVolumeMessage::packVolumeParams(), raycastForNewObjPos(), REGION_FLAGS_SANDBOX, S32, LLMessageSystem::sendReliable(), LLVolumeParams::setBeginAndEndS(), LLVolumeParams::setBeginAndEndT(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLUUID::setNull(), LLHUDObject::setPositionGlobal(), LLQuaternion::setQuat(), LLVolumeParams::setRatio(), LLVolumeParams::setShear(), LLHUDObject::setSourceObject(), LLVolumeParams::setType(), LLVector3::setVec(), LLVOGrass::sMaxGrassSpecies, LLVOTree::sMaxTreeSpecies, LLViewerStats::ST_CREATE_COUNT, LLAudioEngine::triggerSound(), TRUE, LLFirstUse::useSandbox(), and LLVector3::y_axis.

Referenced by placeObject().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLToolPlacer::raycastForNewObjPos ( S32  x,
S32  y,
LLViewerObject **  hit_obj,
S32 hit_face,
BOOL b_hit_land,
LLVector3 ray_start_region,
LLVector3 ray_end_region,
LLViewerRegion **  region 
) [private]

BOOL LLToolPlacer::addDuplicate ( S32  x,
S32  y 
) [private]


Member Data Documentation

Definition at line 60 of file lltoolplacer.h.

Referenced by getObjectType(), placeObject(), and setObjectType().


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

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