LLVLComposition Class Reference

#include <llvlcomposition.h>

Inheritance diagram for LLVLComposition:

Inheritance graph
[legend]
Collaboration diagram for LLVLComposition:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ECorner {
  SOUTHWEST = 0, SOUTHEAST = 1, NORTHWEST = 2, NORTHEAST = 3,
  CORNER_COUNT = 4
}

Public Member Functions

 LLVLComposition (LLSurface *surfacep, const U32 width, const F32 scale)
 ~LLVLComposition ()
void setSurface (LLSurface *surfacep)
BOOL generateHeights (const F32 x, const F32 y, const F32 width, const F32 height)
BOOL generateComposition ()
BOOL generateTexture (const F32 x, const F32 y, const F32 width, const F32 height)
LLUUID getDetailTextureID (S32 corner)
LLViewerImagegetDetailTexture (S32 corner)
F32 getStartHeight (S32 corner)
F32 getHeightRange (S32 corner)
void setDetailTextureID (S32 corner, const LLUUID &id)
void setStartHeight (S32 corner, F32 start_height)
void setHeightRange (S32 corner, F32 range)
void setParamsReady ()
BOOL getParamsReady () const

Protected Attributes

BOOL mParamsReady
LLSurfacemSurfacep
BOOL mTexturesLoaded
LLPointer< LLViewerImagemDetailTextures [CORNER_COUNT]
LLPointer< LLImageRawmRawImages [CORNER_COUNT]
F32 mStartHeight [CORNER_COUNT]
F32 mHeightRange [CORNER_COUNT]
F32 mTexScaleX
F32 mTexScaleY

Friends

class LLVOSurfacePatch
class LLDrawPoolTerrain


Detailed Description

Definition at line 40 of file llvlcomposition.h.


Member Enumeration Documentation

Enumerator:
SOUTHWEST 
SOUTHEAST 
NORTHWEST 
NORTHEAST 
CORNER_COUNT 

Definition at line 55 of file llvlcomposition.h.


Constructor & Destructor Documentation

LLVLComposition::LLVLComposition ( LLSurface surfacep,
const U32  width,
const F32  scale 
)

LLVLComposition::~LLVLComposition (  ) 

Definition at line 91 of file llvlcomposition.cpp.


Member Function Documentation

void LLVLComposition::setSurface ( LLSurface surfacep  ) 

Definition at line 96 of file llvlcomposition.cpp.

References mSurfacep.

Referenced by LLViewerRegion::LLViewerRegion().

Here is the caller graph for this function:

BOOL LLVLComposition::generateHeights ( const F32  x,
const F32  y,
const F32  width,
const F32  height 
)

BOOL LLVLComposition::generateComposition (  ) 

Definition at line 217 of file llvlcomposition.cpp.

References BASE_SIZE, LLViewerImage::BOOST_TERRAIN, FALSE, i, llmin(), MAX_DISCARD_LEVEL, mDetailTextures, mParamsReady, S32, and TRUE.

Referenced by LLSurfacePatch::updateTexture().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVLComposition::generateTexture ( const F32  x,
const F32  y,
const F32  width,
const F32  height 
)

LLUUID LLVLComposition::getDetailTextureID ( S32  corner  ) 

Definition at line 463 of file llvlcomposition.cpp.

References mDetailTextures.

Referenced by LLPanelRegionTextureInfo::refreshFromRegion().

Here is the caller graph for this function:

LLViewerImage * LLVLComposition::getDetailTexture ( S32  corner  ) 

Definition at line 468 of file llvlcomposition.cpp.

References mDetailTextures.

F32 LLVLComposition::getStartHeight ( S32  corner  ) 

Definition at line 473 of file llvlcomposition.cpp.

References mStartHeight.

Referenced by LLPanelRegionTextureInfo::refreshFromRegion().

Here is the caller graph for this function:

F32 LLVLComposition::getHeightRange ( S32  corner  ) 

Definition at line 483 of file llvlcomposition.cpp.

References mHeightRange.

Referenced by LLPanelRegionTextureInfo::refreshFromRegion().

Here is the caller graph for this function:

void LLVLComposition::setDetailTextureID ( S32  corner,
const LLUUID id 
)

Definition at line 102 of file llvlcomposition.cpp.

References LLViewerImageList::getImage(), gImageList, mDetailTextures, mRawImages, and NULL.

Referenced by LLVLComposition(), and LLViewerRegion::unpackRegionHandshake().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVLComposition::setStartHeight ( S32  corner,
F32  start_height 
)

Definition at line 478 of file llvlcomposition.cpp.

References mStartHeight.

Referenced by LLViewerRegion::unpackRegionHandshake().

Here is the caller graph for this function:

void LLVLComposition::setHeightRange ( S32  corner,
F32  range 
)

Definition at line 488 of file llvlcomposition.cpp.

References mHeightRange.

Referenced by LLViewerRegion::unpackRegionHandshake().

Here is the caller graph for this function:

void LLVLComposition::setParamsReady (  )  [inline]

Definition at line 74 of file llvlcomposition.h.

References mParamsReady, and TRUE.

Referenced by LLViewerRegion::unpackRegionHandshake().

Here is the caller graph for this function:

BOOL LLVLComposition::getParamsReady (  )  const [inline]

Definition at line 75 of file llvlcomposition.h.

References mParamsReady.

Referenced by LLViewerRegion::unpackRegionHandshake().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLVOSurfacePatch [friend]

Definition at line 72 of file llvlcomposition.h.

friend class LLDrawPoolTerrain [friend]

Definition at line 73 of file llvlcomposition.h.


Member Data Documentation

Definition at line 78 of file llvlcomposition.h.

Referenced by generateHeights(), generateTexture(), LLVLComposition(), and setSurface().

Definition at line 79 of file llvlcomposition.h.

Referenced by LLVLComposition().

LLPointer<LLImageRaw> LLVLComposition::mRawImages[CORNER_COUNT] [protected]

Definition at line 82 of file llvlcomposition.h.

Referenced by generateTexture(), and setDetailTextureID().

F32 LLVLComposition::mStartHeight[CORNER_COUNT] [protected]

Definition at line 84 of file llvlcomposition.h.

Referenced by generateHeights(), getStartHeight(), LLVLComposition(), and setStartHeight().

F32 LLVLComposition::mHeightRange[CORNER_COUNT] [protected]

Definition at line 85 of file llvlcomposition.h.

Referenced by generateHeights(), getHeightRange(), LLVLComposition(), and setHeightRange().

Definition at line 87 of file llvlcomposition.h.

Referenced by generateTexture(), and LLVLComposition().

Definition at line 88 of file llvlcomposition.h.

Referenced by generateTexture(), and LLVLComposition().


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

Generated on Fri May 16 09:35:38 2008 for SecondLife by  doxygen 1.5.5