LLTextureEntry Class Reference

#include <lltextureentry.h>

Collaboration diagram for LLTextureEntry:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLTextureEntry::e_texgen eTexGen
 TEX_GEN_DEFAULT = 0x00
 TEX_GEN_PLANAR = 0x02
 TEX_GEN_SPHERICAL = 0x04
 TEX_GEN_CYLINDRICAL = 0x06
 MF_NONE = 0x0
 MF_WEB_PAGE = 0x1
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 }

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

typedef enum LLTextureEntry::e_texgen LLTextureEntry::eTexGen


Member Enumeration Documentation

anonymous enum

Enumerator:
MF_NONE 
MF_WEB_PAGE 

Definition at line 134 of file lltextureentry.h.

enum LLTextureEntry::e_texgen

Enumerator:
TEX_GEN_DEFAULT 
TEX_GEN_PLANAR 
TEX_GEN_SPHERICAL 
TEX_GEN_CYLINDRICAL 

Definition at line 71 of file lltextureentry.h.


Constructor & Destructor Documentation

LLTextureEntry::LLTextureEntry (  ) 

Definition at line 42 of file lltextureentry.cpp.

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

LLTextureEntry::LLTextureEntry ( const LLUUID tex_id  ) 

Definition at line 47 of file lltextureentry.cpp.

References DEFAULT_BUMP_CODE, f, and init().

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

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().

bool LLTextureEntry::fromLLSD ( LLSD sd  ) 

Definition at line 154 of file lltextureentry.cpp.

References ll_color4_from_sd(), tut::sd(), setBumpShiny(), setColor(), setFullbright(), setGlow(), setID(), setMediaTexGen(), setOffset(), setRotation(), setScale(), and x.

U8 LLTextureEntry::getBumpmap (  )  const [inline]

Definition at line 122 of file lltextureentry.h.

References mBump, and TEM_BUMP_MASK.

Referenced by LLFace::getGeometryVolume(), LLPipeline::getPoolTypeFromTE(), LLPanelFace::getState(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), setBumpmap(), and LLViewerObject::setTEBumpmap().

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().

U8 LLTextureEntry::getBumpShinyFullbright (  )  const [inline]

Definition at line 126 of file lltextureentry.h.

References mBump.

Referenced by LLPrimitive::packTEMessage().

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

Definition at line 116 of file lltextureentry.h.

References mColor.

Referenced by asLLSD(), LLFace::getGeometryVolume(), LLPipeline::getPoolTypeFromTE(), LLFace::getRenderColor(), LLFloaterColorPicker::onColorSelect(), LLSelectMgr::selectionSetAlphaOnly(), LLSelectMgr::selectionSetColorOnly(), LLViewerObject::setTEColor(), and LLVOVolume::writeCAL3D().

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(), LLPanelFace::getState(), setFullbright(), LLViewerObject::setTEFullbright(), and LLVOVolume::updateFaceFlags().

F32 LLTextureEntry::getGlow (  )  const [inline]

Definition at line 131 of file lltextureentry.h.

References mGlow.

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

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

Definition at line 115 of file lltextureentry.h.

References mID.

Referenced by LLPanelFaceSetMediaFunctor::apply(), asLLSD(), LLVOTextBubble::createDrawable(), LLPanelEditWearable::draw(), LLFloaterTexturePicker::onTextureSelect(), LLViewerObject::setTE(), update_texture_ctrl(), and LLVOVolume::writeCAL3D().

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().

U8 LLTextureEntry::getMediaTexGen (  )  const [inline]

Definition at line 130 of file lltextureentry.h.

References mMediaFlags.

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

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::setTEOffsetS(), and LLPrimitive::setTEOffsetT().

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

Definition at line 120 of file lltextureentry.h.

References mRotation.

F32 LLTextureEntry::getRotation (  )  const [inline]

Definition at line 119 of file lltextureentry.h.

References mRotation.

Referenced by LLVOVolume::animateTextures(), and asLLSD().

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

Definition at line 117 of file lltextureentry.h.

References mScaleS, and mScaleT.

Referenced by LLVOVolume::animateTextures(), LLFace::getGeometryVolume(), LLSelectNode::saveTextureScaleRatios(), LLPrimitive::setTEScaleS(), and LLPrimitive::setTEScaleT().

U8 LLTextureEntry::getShiny (  )  const [inline]

Definition at line 124 of file lltextureentry.h.

References mBump, TEM_SHINY_MASK, and TEM_SHINY_SHIFT.

Referenced by LLFace::getGeometryVolume(), LLPipeline::getPoolTypeFromTE(), LLPanelFace::getState(), LLVolumeGeometryManager::rebuildGeom(), setShiny(), and LLViewerObject::setTEShiny().

U8 LLTextureEntry::getTexGen (  )  const [inline]

Definition at line 129 of file lltextureentry.h.

References mMediaFlags, and TEM_TEX_GEN_MASK.

Referenced by LLFace::getGeometryVolume(), LLPanelFace::getState(), LLSelectNode::saveTextureScaleRatios(), LLViewerObject::setTETexGen(), and setTexGen().

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 f, mBump, mGlow, mMediaFlags, mOffsetS, mOffsetT, mRotation, mScaleS, mScaleT, setColor(), and setID().

Referenced by LLTextureEntry().

LLTextureEntry::operator LLSD (  )  const [inline]

Definition at line 90 of file lltextureentry.h.

References asLLSD().

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.

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.

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().

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().

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().

S32 LLTextureEntry::setBumpShinyFullbright ( U8  bump  ) 

Definition at line 291 of file lltextureentry.cpp.

References mBump, and TEM_CHANGE_TEXTURE.

Referenced by LLPrimitive::setTEBumpShinyFullbright().

S32 LLTextureEntry::setColor ( const LLColor3 color  ) 

Definition at line 245 of file lltextureentry.cpp.

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

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().

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().

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().

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(), and LLPrimitive::setTETexture().

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().

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().

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().

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().

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().

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().

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().


Member Data Documentation

U8 LLTextureEntry::mBump [protected]

Definition at line 147 of file lltextureentry.h.

Referenced by getBumpmap(), getBumpShiny(), getBumpShinyFullbright(), getFullbright(), getShiny(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), setBumpmap(), setBumpShiny(), setBumpShinyFullbright(), setFullbright(), and setShiny().

LLColor4 LLTextureEntry::mColor [protected]

Definition at line 146 of file lltextureentry.h.

Referenced by getColor(), LLTextureEntry(), operator!=(), operator=(), operator==(), setAlpha(), and setColor().

F32 LLTextureEntry::mGlow [protected]

Definition at line 149 of file lltextureentry.h.

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

LLUUID LLTextureEntry::mID [protected]

Definition at line 145 of file lltextureentry.h.

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

U8 LLTextureEntry::mMediaFlags [protected]

Definition at line 148 of file lltextureentry.h.

Referenced by getMediaFlags(), getMediaTexGen(), getTexGen(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), setMediaFlags(), setMediaTexGen(), and setTexGen().

F32 LLTextureEntry::mOffsetS

Definition at line 139 of file lltextureentry.h.

Referenced by asLLSD(), getOffset(), LLPanelFace::getState(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), LLPrimitive::packTEMessage(), and setOffset().

F32 LLTextureEntry::mOffsetT

Definition at line 140 of file lltextureentry.h.

Referenced by asLLSD(), getOffset(), LLPanelFace::getState(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), LLPrimitive::packTEMessage(), and setOffset().

F32 LLTextureEntry::mRotation

Definition at line 141 of file lltextureentry.h.

Referenced by getRotation(), LLPanelFace::getState(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), LLPrimitive::packTEMessage(), and setRotation().

F32 LLTextureEntry::mScaleS

Definition at line 137 of file lltextureentry.h.

Referenced by asLLSD(), getScale(), LLPanelFace::getState(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), LLPrimitive::packTEMessage(), setScale(), and LLVOAvatar::updateTextures().

F32 LLTextureEntry::mScaleT

Definition at line 138 of file lltextureentry.h.

Referenced by asLLSD(), getScale(), LLPanelFace::getState(), init(), LLTextureEntry(), operator!=(), operator=(), operator==(), LLPrimitive::packTEMessage(), setScale(), and LLVOAvatar::updateTextures().

const LLTextureEntry LLTextureEntry::null [static]

Definition at line 143 of file lltextureentry.h.


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