LLViewerJointShape Class Reference

#include <llviewerjointshape.h>

Inheritance diagram for LLViewerJointShape:

Inheritance graph
[legend]
Collaboration diagram for LLViewerJointShape:

Collaboration graph
[legend]
List of all members.

Public Types

 ST_NULL
 ST_CUBE
 ST_SPHERE
 ST_CYLINDER
enum  ShapeType { ST_NULL, ST_CUBE, ST_SPHERE, ST_CYLINDER }

Public Member Functions

 LLViewerJointShape ()
 LLViewerJointShape (ShapeType type, F32 red, F32 green, F32 blue, F32 alpha)
virtual ~LLViewerJointShape ()
ShapeType getType ()
void setType (ShapeType type)
void getColor (F32 *red, F32 *green, F32 *blue, F32 *alpha)
void setColor (F32 red, F32 green, F32 blue, F32 alpha)
LLViewerImagegetTexture ()
void setTexture (LLViewerImage *texture)
virtual void drawBone ()
virtual BOOL isTransparent ()
BOOL isAnimatable ()
U32 drawShape (F32 pixelArea, BOOL first_pass)

Static Public Member Functions

static void setColorScale (F32 factor)

Protected Attributes

ShapeType mType
LLColor4 mColor
LLPointer< LLViewerImagemTexture

Static Protected Attributes

static F32 sColorScale = 1.0f

Detailed Description

Definition at line 41 of file llviewerjointshape.h.


Member Enumeration Documentation

enum LLViewerJointShape::ShapeType

Enumerator:
ST_NULL 
ST_CUBE 
ST_SPHERE 
ST_CYLINDER 

Definition at line 45 of file llviewerjointshape.h.


Constructor & Destructor Documentation

LLViewerJointShape::LLViewerJointShape (  ) 

Definition at line 50 of file llviewerjointshape.cpp.

References mColor, mTexture, mType, NULL, and ST_NULL.

LLViewerJointShape::LLViewerJointShape ( ShapeType  type,
F32  red,
F32  green,
F32  blue,
F32  alpha 
)

Definition at line 64 of file llviewerjointshape.cpp.

References mColor, mTexture, mType, NULL, and sColorScale.

LLViewerJointShape::~LLViewerJointShape (  )  [virtual]

Definition at line 79 of file llviewerjointshape.cpp.


Member Function Documentation

void LLViewerJointShape::drawBone (  )  [virtual]

Reimplemented from LLViewerJoint.

Definition at line 145 of file llviewerjointshape.cpp.

U32 LLViewerJointShape::drawShape ( F32  pixelArea,
BOOL  first_pass 
) [virtual]

Reimplemented from LLViewerJoint.

Definition at line 162 of file llviewerjointshape.cpp.

References LLViewerImage::bindTexture(), f, gBox, gCylinder, LLJoint::getScale(), glColor4fv, glPopMatrix, glTranslatef, gSphere, llmax(), llmin(), mColor, mTexture, mType, LLColor4::mV, LLCylinder::render(), LLSphere::render(), LLBox::render(), ST_CUBE, ST_CYLINDER, ST_NULL, ST_SPHERE, VX, VY, and VZ.

void LLViewerJointShape::getColor ( F32 red,
F32 green,
F32 blue,
F32 alpha 
)

Definition at line 105 of file llviewerjointshape.cpp.

References mColor.

LLViewerImage * LLViewerJointShape::getTexture (  ) 

Definition at line 128 of file llviewerjointshape.cpp.

References mTexture.

LLViewerJointShape::ShapeType LLViewerJointShape::getType (  ) 

Definition at line 87 of file llviewerjointshape.cpp.

References mType.

BOOL LLViewerJointShape::isAnimatable (  )  [inline, virtual]

Reimplemented from LLJoint.

Definition at line 92 of file llviewerjointshape.h.

References FALSE.

BOOL LLViewerJointShape::isTransparent (  )  [virtual]

Reimplemented from LLViewerJoint.

Definition at line 153 of file llviewerjointshape.cpp.

References f, LLPointer< Type >::isNull(), mColor, and mTexture.

void LLViewerJointShape::setColor ( F32  red,
F32  green,
F32  blue,
F32  alpha 
)

Definition at line 116 of file llviewerjointshape.cpp.

References mColor, and sColorScale.

static void LLViewerJointShape::setColorScale ( F32  factor  )  [inline, static]

Definition at line 79 of file llviewerjointshape.h.

References sColorScale.

void LLViewerJointShape::setTexture ( LLViewerImage texture  ) 

Definition at line 136 of file llviewerjointshape.cpp.

References mTexture, and texture.

void LLViewerJointShape::setType ( ShapeType  type  ) 

Definition at line 96 of file llviewerjointshape.cpp.

References mType.


Member Data Documentation

LLColor4 LLViewerJointShape::mColor [protected]

Definition at line 55 of file llviewerjointshape.h.

Referenced by drawShape(), getColor(), isTransparent(), LLViewerJointShape(), and setColor().

LLPointer<LLViewerImage> LLViewerJointShape::mTexture [protected]

Definition at line 56 of file llviewerjointshape.h.

Referenced by drawShape(), getTexture(), isTransparent(), LLViewerJointShape(), and setTexture().

ShapeType LLViewerJointShape::mType [protected]

Definition at line 54 of file llviewerjointshape.h.

Referenced by drawShape(), getType(), LLViewerJointShape(), and setType().

F32 LLViewerJointShape::sColorScale = 1.0f [static, protected]

Definition at line 58 of file llviewerjointshape.h.

Referenced by LLViewerJointShape(), setColor(), and setColorScale().


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