summaryrefslogtreecommitdiff
path: root/indra/newview/llhudmanager.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2007-07-20 20:38:05 +0000
committerDon Kjer <don@lindenlab.com>2007-07-20 20:38:05 +0000
commitd373dcc7cbed5fdea72c6b71a5594e4e85549b43 (patch)
tree140e20f48db5dc4d7842f05ef2c24ef9e6fc3238 /indra/newview/llhudmanager.cpp
parentc78f99b0b3b4b9ac99a69b63315e821d89a89a3b (diff)
svn merge -r 64548:64837 svn+ssh://svn/svn/linden/branches/maintenance into release
* WARNING *: maintenance r64837 is not the last rev to use in the next merge. use r65269
Diffstat (limited to 'indra/newview/llhudmanager.cpp')
-rw-r--r--indra/newview/llhudmanager.cpp101
1 files changed, 0 insertions, 101 deletions
diff --git a/indra/newview/llhudmanager.cpp b/indra/newview/llhudmanager.cpp
index 31e6318d25..b3e51de317 100644
--- a/indra/newview/llhudmanager.cpp
+++ b/indra/newview/llhudmanager.cpp
@@ -30,7 +30,6 @@ LLColor4 LLHUDManager::sChildColor;
LLHUDManager::LLHUDManager()
{
- mShowPhysical = FALSE;
LLHUDManager::sParentColor = gColors.getColor("FocusColor");
// rdw commented out since it's not used. Also removed from colors_base.xml
@@ -39,110 +38,10 @@ LLHUDManager::LLHUDManager()
LLHUDManager::~LLHUDManager()
{
- mHUDJoints.reset();
- mHUDSelectedJoints.reset();
mHUDEffects.reset();
}
-void LLHUDManager::toggleShowPhysical(const BOOL show_physical)
-{
- if (show_physical == mShowPhysical)
- {
- return;
- }
-
- mShowPhysical = show_physical;
- if (show_physical)
- {
- S32 i;
- for (i = 0; i < gObjectList.getNumObjects(); i++)
- {
- LLViewerObject *vobjp = gObjectList.getObject(i);
-
- if (vobjp && vobjp->isJointChild() && vobjp->getParent())
- {
- LLHUDConnector *connectorp = (LLHUDConnector *)LLHUDObject::addHUDObject(LLHUDObject::LL_HUD_CONNECTOR);
- connectorp->setTargets(vobjp, (LLViewerObject *)vobjp->getParent());
- connectorp->setColors(LLColor4(1.f, 1.f, 1.f, 1.f), sChildColor, sParentColor);
- EHavokJointType joint_type = vobjp->getJointType();
- if (HJT_HINGE == joint_type)
- {
- connectorp->setLabel("Hinge");
- }
- else if (HJT_POINT == joint_type)
- {
- connectorp->setLabel("P2P");
- }
-#if 0
- else if (HJT_LPOINT == joint_type)
- {
- connectorp->setLabel("LP2P");
- }
-#endif
-#if 0
- else if (HJT_WHEEL == joint_type)
- {
- connectorp->setLabel("Wheel");
- }
-#endif
- mHUDJoints.put(connectorp);
- }
- }
- }
- else
- {
- mHUDJoints.reset();
- }
-}
-
-void LLHUDManager::showJoints(LLDynamicArray < LLViewerObject* > *object_list)
-{
- for (S32 i=0; i<object_list->count(); i++)
- {
- LLViewerObject *vobjp = object_list->get(i);
- if (vobjp && vobjp->isJointChild() && vobjp->getParent())
- {
- LLHUDConnector *connectorp = (LLHUDConnector *)LLHUDObject::addHUDObject(LLHUDObject::LL_HUD_CONNECTOR);
- connectorp->setTargets(vobjp, (LLViewerObject *)vobjp->getParent());
- connectorp->setColors(LLColor4(1.f, 1.f, 1.f, 1.f), sChildColor, sParentColor);
-
- EHavokJointType joint_type = vobjp->getJointType();
- if (HJT_HINGE == joint_type)
- {
- connectorp->setLabel("Hinge");
- }
- else if (HJT_POINT == joint_type)
- {
- connectorp->setLabel("P2P");
- }
-#if 0
- else if (HJT_LPOINT == joint_type)
- {
- connectorp->setLabel("LP2P");
- }
-#endif
-#if 0
- else if (HJT_WHEEL == joint_type)
- {
- connectorp->setLabel("Wheel");
- }
-#endif
- mHUDSelectedJoints.put(connectorp);
- }
- }
-}
-
-void LLHUDManager::clearJoints()
-{
- mHUDSelectedJoints.reset();
-}
-
-BOOL LLHUDManager::getShowPhysical() const
-{
- return mShowPhysical;
-}
-
void LLHUDManager::updateEffects()
{
LLFastTimer ftm(LLFastTimer::FTM_HUD_EFFECTS);