LLTextureEntry Class Reference

#include <lltextureentry.h>

Collaboration diagram for LLTextureEntry:

Collaboration graph
[legend]

List of all members.

Public Types

enum  e_texgen { TEX_GEN_DEFAULT = 0x00, TEX_GEN_PLANAR = 0x02, TEX_GEN_SPHERICAL = 0x04, TEX_GEN_CYLINDRICAL = 0x06 }
enum  { MF_NONE = 0x0, MF_WEB_PAGE = 0x1 }
typedef enum
LLTextureEntry::e_texgen 
eTexGen

Public Member Functions

 LLTextureEntry ()
 LLTextureEntry (const LLUUID &tex_id)
 LLTextureEntry (const LLTextureEntry &rhs)
LLTextureEntryoperator= (const LLTextureEntry &rhs)
 ~LLTextureEntry ()
bool operator== (const LLTextureEntry &rhs) const
bool operator!= (const LLTextureEntry &rhs) const
LLSD asLLSD () const
 operator LLSD () const
bool fromLLSD (LLSD &sd)
void init (const LLUUID &tex_id, F32 scale_s, F32 scale_t, F32 offset_s, F32 offset_t, F32 rotation, U8 bump)
S32 setID (const LLUUID &tex_id)
S32 setColor (const LLColor4 &color)
S32 setColor (const LLColor3 &color)
S32 setAlpha (const F32 alpha)
S32 setScale (F32 s, F32 t)
S32 setOffset (F32 s, F32 t)
S32 setRotation (F32 theta)
S32 setBumpmap (U8 bump)
S32 setFullbright (U8 bump)
S32 setShiny (U8 bump)
S32 setBumpShiny (U8 bump)
S32 setBumpShinyFullbright (U8 bump)
S32 setMediaFlags (U8 media_flags)
S32 setTexGen (U8 texGen)
S32 setMediaTexGen (U8 media)
S32 setGlow (F32 glow)
const LLUUIDgetID () const
const LLColor4getColor () const
void getScale (F32 *s, F32 *t) const
void getOffset (F32 *s, F32 *t) const
F32 getRotation () const
void getRotation (F32 *theta) const
U8 getBumpmap () const
U8 getFullbright () const
U8 getShiny () const
U8 getBumpShiny () const
U8 getBumpShinyFullbright () const
U8 getMediaFlags () const
U8 getTexGen () const
U8 getMediaTexGen () const
F32 getGlow () const

Public Attributes

F32 mScaleS
F32 mScaleT
F32 mOffsetS
F32 mOffsetT
F32 mRotation

Static Public Attributes

static const LLTextureEntry null

Protected Attributes

LLUUID mID
LLColor4 mColor
U8 mBump
U8 mMediaFlags
F32 mGlow


Detailed Description

Definition at line 67 of file lltextureentry.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
TEX_GEN_DEFAULT 
TEX_GEN_PLANAR 
TEX_GEN_SPHERICAL 
TEX_GEN_CYLINDRICAL 

Definition at line 71 of file lltextureentry.h.

anonymous enum

Enumerator:
MF_NONE 
MF_WEB_PAGE 

Definition at line 134 of file lltextureentry.h.


Constructor & Destructor Documentation

LLTextureEntry::LLTextureEntry (  ) 

Definition at line 42 of file lltextureentry.cpp.

References DEFAULT_BUMP_CODE, init(), and LLUUID::null.

Here is the call graph for this function:

LLTextureEntry::LLTextureEntry ( const LLUUID tex_id  ) 

Definition at line 47 of file lltextureentry.cpp.

References DEFAULT_BUMP_CODE, and init().

Here is the call graph for this function:

LLTextureEntry::LLTextureEntry ( const LLTextureEntry rhs  ) 

Definition at line 52 of file lltextureentry.cpp.

References mBump, mColor, mGlow, mID, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, and mScaleT.

LLTextureEntry::~LLTextureEntry (  ) 

Definition at line 101 of file lltextureentry.cpp.


Member Function Documentation

LLTextureEntry & LLTextureEntry::operator= ( const LLTextureEntry rhs  ) 

Definition at line 66 of file lltextureentry.cpp.

References mBump, mColor, mGlow, mID, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, and mScaleT.

bool LLTextureEntry::operator== ( const LLTextureEntry rhs  )  const

Definition at line 120 of file lltextureentry.cpp.

References mBump, mColor, mGlow, mID, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, and mScaleT.

bool LLTextureEntry::operator!= ( const LLTextureEntry rhs  )  const

Definition at line 105 of file lltextureentry.cpp.

References mBump, mColor, mGlow, mID, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, and mScaleT.

LLSD LLTextureEntry::asLLSD (  )  const

Definition at line 135 of file lltextureentry.cpp.

References getBumpShiny(), getColor(), getFullbright(), getGlow(), getID(), getMediaTexGen(), getRotation(), ll_sd_from_color4(), mOffsetS, mOffsetT, mScaleS, mScaleT, and tut::sd().

Referenced by operator LLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

LLTextureEntry::operator LLSD (  )  const [inline]

Definition at line 90 of file lltextureentry.h.

References asLLSD().

Here is the call graph for this function:

bool LLTextureEntry::fromLLSD ( LLSD sd  ) 

Definition at line 154 of file lltextureentry.cpp.

References LLSD::has(), ll_color4_from_sd(), setBumpShiny(), setColor(), setFullbright(), setGlow(), setID(), setMediaTexGen(), setOffset(), setRotation(), and setScale().

Here is the call graph for this function:

void LLTextureEntry::init ( const LLUUID tex_id,
F32  scale_s,
F32  scale_t,
F32  offset_s,
F32  offset_t,
F32  rotation,
U8  bump 
)

Definition at line 85 of file lltextureentry.cpp.

References mBump, mGlow, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, mScaleT, setColor(), and setID().

Referenced by LLTextureEntry().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setID ( const LLUUID tex_id  ) 

Definition at line 210 of file lltextureentry.cpp.

References mID, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), init(), LLPrimitive::setAllTETextures(), and LLPrimitive::setTETexture().

Here is the caller graph for this function:

S32 LLTextureEntry::setColor ( const LLColor4 color  ) 

Definition at line 235 of file lltextureentry.cpp.

References mColor, and TEM_CHANGE_COLOR.

Referenced by fromLLSD(), init(), and LLPrimitive::setTEColor().

Here is the caller graph for this function:

S32 LLTextureEntry::setColor ( const LLColor3 color  ) 

Definition at line 245 of file lltextureentry.cpp.

References mColor, LLColor4::setVec(), and TEM_CHANGE_COLOR.

Here is the call graph for this function:

S32 LLTextureEntry::setAlpha ( const F32  alpha  ) 

Definition at line 256 of file lltextureentry.cpp.

References mColor, LLColor4::mV, TEM_CHANGE_COLOR, and VW.

Referenced by LLPrimitive::setTEAlpha().

Here is the caller graph for this function:

S32 LLTextureEntry::setScale ( F32  s,
F32  t 
)

Definition at line 220 of file lltextureentry.cpp.

References mScaleS, mScaleT, S32, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), LLPrimitive::setTEScale(), LLPrimitive::setTEScaleS(), and LLPrimitive::setTEScaleT().

Here is the caller graph for this function:

S32 LLTextureEntry::setOffset ( F32  s,
F32  t 
)

Definition at line 266 of file lltextureentry.cpp.

References mOffsetS, mOffsetT, S32, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), LLPrimitive::setTEOffset(), LLPrimitive::setTEOffsetS(), and LLPrimitive::setTEOffsetT().

Here is the caller graph for this function:

S32 LLTextureEntry::setRotation ( F32  theta  ) 

Definition at line 281 of file lltextureentry.cpp.

References mRotation, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), and LLPrimitive::setTERotation().

Here is the caller graph for this function:

S32 LLTextureEntry::setBumpmap ( U8  bump  ) 

Definition at line 311 of file lltextureentry.cpp.

References getBumpmap(), mBump, TEM_BUMP_MASK, and TEM_CHANGE_TEXTURE.

Referenced by LLPrimitive::setTEBumpmap().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setFullbright ( U8  bump  ) 

Definition at line 323 of file lltextureentry.cpp.

References getFullbright(), mBump, TEM_CHANGE_TEXTURE, TEM_FULLBRIGHT_MASK, and TEM_FULLBRIGHT_SHIFT.

Referenced by fromLLSD(), and LLPrimitive::setTEFullbright().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setShiny ( U8  bump  ) 

Definition at line 335 of file lltextureentry.cpp.

References getShiny(), mBump, TEM_CHANGE_TEXTURE, TEM_SHINY_MASK, and TEM_SHINY_SHIFT.

Referenced by LLPrimitive::setTEShiny().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setBumpShiny ( U8  bump  ) 

Definition at line 347 of file lltextureentry.cpp.

References getBumpShiny(), mBump, TEM_BUMP_SHINY_MASK, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), and LLPrimitive::setTEBumpShiny().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setBumpShinyFullbright ( U8  bump  ) 

Definition at line 291 of file lltextureentry.cpp.

References mBump, and TEM_CHANGE_TEXTURE.

Referenced by LLPrimitive::setTEBumpShinyFullbright().

Here is the caller graph for this function:

S32 LLTextureEntry::setMediaFlags ( U8  media_flags  ) 

Definition at line 359 of file lltextureentry.cpp.

References getMediaFlags(), mMediaFlags, TEM_CHANGE_TEXTURE, and TEM_MEDIA_MASK.

Referenced by LLPrimitive::setTEMediaFlags().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setTexGen ( U8  texGen  ) 

Definition at line 371 of file lltextureentry.cpp.

References getTexGen(), mMediaFlags, TEM_CHANGE_TEXTURE, and TEM_TEX_GEN_MASK.

Referenced by LLPrimitive::setTETexGen().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTextureEntry::setMediaTexGen ( U8  media  ) 

Definition at line 301 of file lltextureentry.cpp.

References mMediaFlags, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), and LLPrimitive::setTEMediaTexGen().

Here is the caller graph for this function:

S32 LLTextureEntry::setGlow ( F32  glow  ) 

Definition at line 383 of file lltextureentry.cpp.

References mGlow, and TEM_CHANGE_TEXTURE.

Referenced by fromLLSD(), and LLPrimitive::setTEGlow().

Here is the caller graph for this function:

const LLUUID& LLTextureEntry::getID (  )  const [inline]

const LLColor4& LLTextureEntry::getColor (  )  const [inline]

void LLTextureEntry::getScale ( F32 s,
F32 t 
) const [inline]

void LLTextureEntry::getOffset ( F32 s,
F32 t 
) const [inline]

Definition at line 118 of file lltextureentry.h.

References mOffsetS, and mOffsetT.

Referenced by LLVOVolume::animateTextures(), LLPrimitive::copyTEs(), LLPrimitive::setTEOffsetS(), and LLPrimitive::setTEOffsetT().

Here is the caller graph for this function:

F32 LLTextureEntry::getRotation (  )  const [inline]

Definition at line 119 of file lltextureentry.h.

References mRotation.

Referenced by LLVOVolume::animateTextures(), asLLSD(), LLPrimitive::copyTEs(), and LLFace::getGeometryVolume().

Here is the caller graph for this function:

void LLTextureEntry::getRotation ( F32 theta  )  const [inline]

Definition at line 120 of file lltextureentry.h.

References mRotation.

U8 LLTextureEntry::getBumpmap (  )  const [inline]

U8 LLTextureEntry::getFullbright (  )  const [inline]

Definition at line 123 of file lltextureentry.h.

References mBump, TEM_FULLBRIGHT_MASK, and TEM_FULLBRIGHT_SHIFT.

Referenced by asLLSD(), setFullbright(), LLViewerObject::setTEFullbright(), and LLVOVolume::updateFaceFlags().

Here is the caller graph for this function:

U8 LLTextureEntry::getShiny (  )  const [inline]

U8 LLTextureEntry::getBumpShiny (  )  const [inline]

Definition at line 125 of file lltextureentry.h.

References mBump, and TEM_BUMP_SHINY_MASK.

Referenced by asLLSD(), and setBumpShiny().

Here is the caller graph for this function:

U8 LLTextureEntry::getBumpShinyFullbright (  )  const [inline]

Definition at line 126 of file lltextureentry.h.

References mBump.

Referenced by LLPrimitive::copyTEs(), LLFace::CompareBatchBreaker::operator()(), and LLPrimitive::packTEMessage().

Here is the caller graph for this function:

U8 LLTextureEntry::getMediaFlags (  )  const [inline]

Definition at line 128 of file lltextureentry.h.

References mMediaFlags, and TEM_MEDIA_MASK.

Referenced by setMediaFlags(), and LLViewerObject::setTEMediaFlags().

Here is the caller graph for this function:

U8 LLTextureEntry::getTexGen (  )  const [inline]

U8 LLTextureEntry::getMediaTexGen (  )  const [inline]

Definition at line 130 of file lltextureentry.h.

References mMediaFlags.

Referenced by asLLSD(), LLPrimitive::copyTEs(), and LLPrimitive::packTEMessage().

Here is the caller graph for this function:

F32 LLTextureEntry::getGlow (  )  const [inline]


Member Data Documentation

Definition at line 143 of file lltextureentry.h.

Definition at line 145 of file lltextureentry.h.

Referenced by getID(), LLTextureEntry(), operator!=(), operator=(), operator==(), and setID().

Definition at line 149 of file lltextureentry.h.

Referenced by getGlow(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), and setGlow().


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

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