llprimitive.cpp File Reference

LLPrimitive base class. More...

#include "linden_common.h"
#include "material_codes.h"
#include "llerror.h"
#include "message.h"
#include "llprimitive.h"
#include "llvolume.h"
#include "legacy_object_types.h"
#include "v4coloru.h"
#include "llvolumemgr.h"
#include "llstring.h"
#include "lldatapacker.h"

Include dependency graph for llprimitive.cpp:

Go to the source code of this file.

Functions

S32 face_index_from_id (LLFaceID face_ID, const std::vector< LLProfile::Face > &faceArray)

Variables

const F32 OBJECT_CUT_MIN = 0.f
const F32 OBJECT_CUT_MAX = 1.f
const F32 OBJECT_CUT_INC = 0.05f
const F32 OBJECT_MIN_CUT_INC = 0.02f
const F32 OBJECT_ROTATION_PRECISION = 0.05f
const F32 OBJECT_TWIST_MIN = -360.f
const F32 OBJECT_TWIST_MAX = 360.f
const F32 OBJECT_TWIST_INC = 18.f
const F32 OBJECT_TWIST_LINEAR_MIN = -180.f
const F32 OBJECT_TWIST_LINEAR_MAX = 180.f
const F32 OBJECT_TWIST_LINEAR_INC = 9.f
const F32 OBJECT_MIN_HOLE_SIZE = 0.05f
const F32 OBJECT_MAX_HOLE_SIZE_X = 1.0f
const F32 OBJECT_MAX_HOLE_SIZE_Y = 0.5f
const F32 OBJECT_REV_MIN = 1.0f
const F32 OBJECT_REV_MAX = 4.0f
const F32 OBJECT_REV_INC = 0.1f
const F32 LIGHT_MIN_RADIUS = 0.0f
const F32 LIGHT_DEFAULT_RADIUS = 5.0f
const F32 LIGHT_MAX_RADIUS = 20.0f
const F32 LIGHT_MIN_FALLOFF = 0.0f
const F32 LIGHT_DEFAULT_FALLOFF = 1.0f
const F32 LIGHT_MAX_FALLOFF = 2.0f
const F32 LIGHT_MIN_CUTOFF = 0.0f
const F32 LIGHT_DEFAULT_CUTOFF = 0.0f
const F32 LIGHT_MAX_CUTOFF = 180.f
const F32 FLEXIBLE_OBJECT_MIN_TENSION = 0.0f
const F32 FLEXIBLE_OBJECT_DEFAULT_TENSION = 1.0f
const F32 FLEXIBLE_OBJECT_MAX_TENSION = 10.0f
const F32 FLEXIBLE_OBJECT_MIN_AIR_FRICTION = 0.0f
const F32 FLEXIBLE_OBJECT_DEFAULT_AIR_FRICTION = 2.0f
const F32 FLEXIBLE_OBJECT_MAX_AIR_FRICTION = 10.0f
const F32 FLEXIBLE_OBJECT_MIN_GRAVITY = -10.0f
const F32 FLEXIBLE_OBJECT_DEFAULT_GRAVITY = 0.3f
const F32 FLEXIBLE_OBJECT_MAX_GRAVITY = 10.0f
const F32 FLEXIBLE_OBJECT_MIN_WIND_SENSITIVITY = 0.0f
const F32 FLEXIBLE_OBJECT_DEFAULT_WIND_SENSITIVITY = 0.0f
const F32 FLEXIBLE_OBJECT_MAX_WIND_SENSITIVITY = 10.0f
const F32 FLEXIBLE_OBJECT_MAX_INTERNAL_TENSION_FORCE = 0.99f
const F32 FLEXIBLE_OBJECT_DEFAULT_LENGTH = 1.0f
const BOOL FLEXIBLE_OBJECT_DEFAULT_USING_COLLISION_SPHERE = FALSE
const BOOL FLEXIBLE_OBJECT_DEFAULT_RENDERING_COLLISION_SPHERE = FALSE
const char * SCULPT_DEFAULT_TEXTURE = "be293869-d0d9-0a69-5989-ad27f1946fd4"
const F32 LL_MAX_SCALE_S = 100.0f
const F32 LL_MAX_SCALE_T = 100.0f


Detailed Description

LLPrimitive base class.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llprimitive.cpp.


Function Documentation

S32 face_index_from_id ( LLFaceID  face_ID,
const std::vector< LLProfile::Face > &  faceArray 
)

Definition at line 870 of file llprimitive.cpp.

References i, and S32.

Referenced by LLPrimitive::setVolume().


Variable Documentation

const F32 FLEXIBLE_OBJECT_DEFAULT_AIR_FRICTION = 2.0f

Definition at line 92 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::LLFlexibleObjectData().

const F32 FLEXIBLE_OBJECT_DEFAULT_GRAVITY = 0.3f

Definition at line 97 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::LLFlexibleObjectData().

const F32 FLEXIBLE_OBJECT_DEFAULT_LENGTH = 1.0f

Definition at line 108 of file llprimitive.cpp.

const BOOL FLEXIBLE_OBJECT_DEFAULT_RENDERING_COLLISION_SPHERE = FALSE

Definition at line 110 of file llprimitive.cpp.

const F32 FLEXIBLE_OBJECT_DEFAULT_TENSION = 1.0f

Definition at line 87 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::LLFlexibleObjectData().

const BOOL FLEXIBLE_OBJECT_DEFAULT_USING_COLLISION_SPHERE = FALSE

Definition at line 109 of file llprimitive.cpp.

const F32 FLEXIBLE_OBJECT_DEFAULT_WIND_SENSITIVITY = 0.0f

Definition at line 102 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::LLFlexibleObjectData().

const F32 FLEXIBLE_OBJECT_MAX_AIR_FRICTION = 10.0f

Definition at line 93 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setAirFriction().

const F32 FLEXIBLE_OBJECT_MAX_GRAVITY = 10.0f

Definition at line 98 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setGravity().

const F32 FLEXIBLE_OBJECT_MAX_INTERNAL_TENSION_FORCE = 0.99f

Definition at line 106 of file llprimitive.cpp.

Referenced by LLVolumeImplFlexible::doFlexibleUpdate().

const F32 FLEXIBLE_OBJECT_MAX_TENSION = 10.0f

Definition at line 88 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setTension().

const F32 FLEXIBLE_OBJECT_MAX_WIND_SENSITIVITY = 10.0f

Definition at line 103 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setWindSensitivity().

const F32 FLEXIBLE_OBJECT_MIN_AIR_FRICTION = 0.0f

Definition at line 91 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setAirFriction().

const F32 FLEXIBLE_OBJECT_MIN_GRAVITY = -10.0f

Definition at line 96 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setGravity().

const F32 FLEXIBLE_OBJECT_MIN_TENSION = 0.0f

Definition at line 86 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setTension().

const F32 FLEXIBLE_OBJECT_MIN_WIND_SENSITIVITY = 0.0f

Definition at line 101 of file llprimitive.cpp.

Referenced by LLFlexibleObjectData::setWindSensitivity().

const F32 LIGHT_DEFAULT_CUTOFF = 0.0f

Definition at line 82 of file llprimitive.cpp.

const F32 LIGHT_DEFAULT_FALLOFF = 1.0f

Definition at line 79 of file llprimitive.cpp.

const F32 LIGHT_DEFAULT_RADIUS = 5.0f

Definition at line 76 of file llprimitive.cpp.

const F32 LIGHT_MAX_CUTOFF = 180.f

Definition at line 83 of file llprimitive.cpp.

Referenced by LLLightParams::setCutoff().

const F32 LIGHT_MAX_FALLOFF = 2.0f

Definition at line 80 of file llprimitive.cpp.

Referenced by LLLightParams::setFalloff().

const F32 LIGHT_MAX_RADIUS = 20.0f

Definition at line 77 of file llprimitive.cpp.

Referenced by LLPipeline::calcNearbyLights(), and LLLightParams::setRadius().

const F32 LIGHT_MIN_CUTOFF = 0.0f

Definition at line 81 of file llprimitive.cpp.

Referenced by LLLightParams::setCutoff().

const F32 LIGHT_MIN_FALLOFF = 0.0f

Definition at line 78 of file llprimitive.cpp.

Referenced by LLLightParams::setFalloff().

const F32 LIGHT_MIN_RADIUS = 0.0f

Definition at line 75 of file llprimitive.cpp.

Referenced by LLLightParams::setRadius().

const F32 LL_MAX_SCALE_S = 100.0f

Definition at line 1194 of file llprimitive.cpp.

const F32 LL_MAX_SCALE_T = 100.0f

Definition at line 1195 of file llprimitive.cpp.

const F32 OBJECT_CUT_INC = 0.05f

Definition at line 51 of file llprimitive.cpp.

const F32 OBJECT_CUT_MAX = 1.f

Definition at line 50 of file llprimitive.cpp.

const F32 OBJECT_CUT_MIN = 0.f

exported constants

Definition at line 49 of file llprimitive.cpp.

const F32 OBJECT_MAX_HOLE_SIZE_X = 1.0f

Definition at line 66 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::getVolumeParams().

const F32 OBJECT_MAX_HOLE_SIZE_Y = 0.5f

Definition at line 67 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::getVolumeParams().

const F32 OBJECT_MIN_CUT_INC = 0.02f

Definition at line 52 of file llprimitive.cpp.

Referenced by LLPanelObject::getVolumeParams().

const F32 OBJECT_MIN_HOLE_SIZE = 0.05f

Definition at line 65 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::getVolumeParams().

const F32 OBJECT_REV_INC = 0.1f

Definition at line 72 of file llprimitive.cpp.

const F32 OBJECT_REV_MAX = 4.0f

Definition at line 71 of file llprimitive.cpp.

const F32 OBJECT_REV_MIN = 1.0f

Definition at line 70 of file llprimitive.cpp.

const F32 OBJECT_ROTATION_PRECISION = 0.05f

Definition at line 53 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::sendRotation().

const F32 OBJECT_TWIST_INC = 18.f

Definition at line 57 of file llprimitive.cpp.

Referenced by LLPanelObject::getState().

const F32 OBJECT_TWIST_LINEAR_INC = 9.f

Definition at line 63 of file llprimitive.cpp.

Referenced by LLPanelObject::getState().

const F32 OBJECT_TWIST_LINEAR_MAX = 180.f

Definition at line 62 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::getVolumeParams().

const F32 OBJECT_TWIST_LINEAR_MIN = -180.f

Definition at line 61 of file llprimitive.cpp.

Referenced by LLPanelObject::getState().

const F32 OBJECT_TWIST_MAX = 360.f

Definition at line 56 of file llprimitive.cpp.

Referenced by LLPanelObject::getState(), and LLPanelObject::getVolumeParams().

const F32 OBJECT_TWIST_MIN = -360.f

Definition at line 55 of file llprimitive.cpp.

Referenced by LLPanelObject::getState().

const char* SCULPT_DEFAULT_TEXTURE = "be293869-d0d9-0a69-5989-ad27f1946fd4"

Definition at line 113 of file llprimitive.cpp.

Referenced by LLSculptParams::LLSculptParams(), and LLPanelObject::postBuild().


Generated on Thu Jul 1 06:10:38 2010 for Second Life Viewer by  doxygen 1.4.7