LLPanelVolume Class Reference

#include <llpanelvolume.h>

Inheritance diagram for LLPanelVolume:

Inheritance graph
[legend]
Collaboration diagram for LLPanelVolume:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelVolume (const std::string &name)
virtual ~LLPanelVolume ()
virtual void draw ()
virtual void clearCtrls ()
virtual BOOL postBuild ()
void refresh ()
void sendIsLight ()
void sendIsFlexible ()

Static Public Member Functions

static BOOL precommitValidate (LLUICtrl *ctrl, void *userdata)
static void onCommitIsLight (LLUICtrl *ctrl, void *userdata)
static void onCommitLight (LLUICtrl *ctrl, void *userdata)
static void onCommitIsFlexible (LLUICtrl *ctrl, void *userdata)
static void onCommitFlexible (LLUICtrl *ctrl, void *userdata)
static void onLightCancelColor (LLUICtrl *ctrl, void *userdata)
static void onLightSelectColor (LLUICtrl *ctrl, void *userdata)

Protected Member Functions

void getState ()

Protected Attributes

LLColor4 mLightSavedColor
LLPointer< LLViewerObjectmObject
LLPointer< LLViewerObjectmRootObject

Detailed Description

Definition at line 50 of file llpanelvolume.h.


Constructor & Destructor Documentation

LLPanelVolume::LLPanelVolume ( const std::string &  name  ) 

Definition at line 128 of file llpanelvolume.cpp.

References FALSE, and LLView::setMouseOpaque().

LLPanelVolume::~LLPanelVolume (  )  [virtual]

Definition at line 136 of file llpanelvolume.cpp.


Member Function Documentation

void LLPanelVolume::clearCtrls (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 335 of file llpanelvolume.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), LLPanel::clearCtrls(), FALSE, LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, LLColorSwatchCtrl::setEnabled(), and LLColorSwatchCtrl::setValid().

Referenced by getState(), and postBuild().

void LLPanelVolume::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 329 of file llpanelvolume.cpp.

References LLPanel::draw().

void LLPanelVolume::getState (  )  [protected]

Definition at line 141 of file llpanelvolume.cpp.

References LLVOVolume::canBeFlexible(), LLFocusMgr::childHasKeyboardFocus(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), clearCtrls(), FALSE, LLFlexibleObjectData::getAirFriction(), LLUICtrlFactory::getColorSwatchByName(), LLFlexibleObjectData::getGravity(), LLVOVolume::getIsLight(), LLVOVolume::getLightBaseColor(), LLVOVolume::getLightColor(), LLVOVolume::getLightFalloff(), LLVOVolume::getLightIntensity(), LLVOVolume::getLightRadius(), LLViewerObject::getParameterEntry(), LLPrimitive::getPCode(), LLSelectMgr::getSelection(), LLFlexibleObjectData::getSimulateLOD(), LLViewerObject::getSubParent(), LLFlexibleObjectData::getTension(), LLFlexibleObjectData::getUserForce(), LLFlexibleObjectData::getWindSensitivity(), gFocusMgr, gSelectMgr, gUICtrlFactory, LLVOVolume::isFlexible(), LL_PCODE_VOLUME, mLightSavedColor, mObject, mRootObject, LLVector3::mV, NULL, LLNetworkData::PARAMS_FLEXIBLE, LLViewerObject::permModify(), LLSelectMgr::selectGetOwner(), LLSelectMgr::selectionAllPCode(), LLColorSwatchCtrl::set(), LLColorSwatchCtrl::setEnabled(), LLFocusMgr::setKeyboardFocus(), LLColorSwatchCtrl::setValid(), TRUE, VX, VY, and VZ.

Referenced by refresh().

void LLPanelVolume::onCommitFlexible ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 482 of file llpanelvolume.cpp.

References LLViewerObject::getParameterEntry(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, LLNetworkData::PARAMS_FLEXIBLE, LLFlexibleObjectData::setAirFriction(), LLFlexibleObjectData::setGravity(), LLViewerObject::setParameterEntry(), LLFlexibleObjectData::setSimulateLOD(), LLFlexibleObjectData::setTension(), LLFlexibleObjectData::setUserForce(), and LLFlexibleObjectData::setWindSensitivity().

Referenced by postBuild().

void LLPanelVolume::onCommitIsFlexible ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 517 of file llpanelvolume.cpp.

Referenced by postBuild().

void LLPanelVolume::onCommitIsLight ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 473 of file llpanelvolume.cpp.

Referenced by postBuild().

void LLPanelVolume::onCommitLight ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 450 of file llpanelvolume.cpp.

References LLColorSwatchCtrl::get(), LLUICtrlFactory::getColorSwatchByName(), LLPrimitive::getPCode(), gUICtrlFactory, LL_PCODE_VOLUME, LLVOVolume::setLightColor(), LLVOVolume::setLightFalloff(), LLVOVolume::setLightIntensity(), and LLVOVolume::setLightRadius().

Referenced by postBuild().

void LLPanelVolume::onLightCancelColor ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 417 of file llpanelvolume.cpp.

References LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, NULL, onLightSelectColor(), and LLUICtrl::setColor().

Referenced by postBuild().

void LLPanelVolume::onLightSelectColor ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 428 of file llpanelvolume.cpp.

References LLColorSwatchCtrl::get(), LLUICtrlFactory::getColorSwatchByName(), LLPrimitive::getPCode(), gUICtrlFactory, LL_PCODE_VOLUME, and LLVOVolume::setLightColor().

Referenced by onLightCancelColor(), and postBuild().

BOOL LLPanelVolume::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 82 of file llpanelvolume.cpp.

References LLPanel::childSetCommitCallback(), LLPanel::childSetValidate(), clearCtrls(), LLUICtrlFactory::getColorSwatchByName(), gUICtrlFactory, onCommitFlexible(), onCommitIsFlexible(), onCommitIsLight(), onCommitLight(), onLightCancelColor(), onLightSelectColor(), precommitValidate(), LLColorSwatchCtrl::setOnCancelCallback(), LLColorSwatchCtrl::setOnSelectCallback(), and TRUE.

BOOL LLPanelVolume::precommitValidate ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 307 of file llpanelvolume.cpp.

References TRUE.

Referenced by postBuild().

void LLPanelVolume::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 314 of file llpanelvolume.cpp.

References getState(), mObject, mRootObject, LLPointer< Type >::notNull(), and NULL.

Referenced by LLFloaterTools::refresh().

void LLPanelVolume::sendIsFlexible (  ) 

Definition at line 385 of file llpanelvolume.cpp.

References LLPanel::childGetValue(), CLICK_ACTION_NONE, CLICK_ACTION_SIT, LLViewerObject::flagPhantom(), LLViewerObject::getClickAction(), LLPrimitive::getPCode(), gSelectMgr, LL_PCODE_VOLUME, llendl, llinfos, mObject, LLSelectMgr::selectionSetClickAction(), LLSelectMgr::selectionUpdatePhantom(), LLVOVolume::setIsFlexible(), and LLFirstUse::useFlexible().

void LLPanelVolume::sendIsLight (  ) 

Definition at line 371 of file llpanelvolume.cpp.

References LLPanel::childGetValue(), LLPrimitive::getPCode(), LL_PCODE_VOLUME, llendl, llinfos, mObject, and LLVOVolume::setIsLight().


Member Data Documentation

LLColor4 LLPanelVolume::mLightSavedColor [protected]

Definition at line 100 of file llpanelvolume.h.

Referenced by getState().

LLPointer<LLViewerObject> LLPanelVolume::mObject [protected]

Definition at line 101 of file llpanelvolume.h.

Referenced by getState(), refresh(), sendIsFlexible(), and sendIsLight().

LLPointer<LLViewerObject> LLPanelVolume::mRootObject [protected]

Definition at line 102 of file llpanelvolume.h.

Referenced by getState(), and refresh().


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