LLViewerParcelOverlay Class Reference

#include <llviewerparceloverlay.h>

Collaboration diagram for LLViewerParcelOverlay:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLViewerParcelOverlay (LLViewerRegion *region, F32 region_width_meters)
 ~LLViewerParcelOverlay ()
LLImageGLgetTexture () const
BOOL isOwned (const LLVector3 &pos) const
BOOL isOwnedSelf (const LLVector3 &pos) const
BOOL isOwnedGroup (const LLVector3 &pos) const
BOOL isOwnedOther (const LLVector3 &pos) const
BOOL isSoundLocal (const LLVector3 &pos) const
BOOL isBuildCameraAllowed (const LLVector3 &pos) const
F32 getOwnedRatio () const
S32 renderPropertyLines ()
U8 ownership (const LLVector3 &pos) const
void uncompressLandOverlay (S32 chunk, U8 *compressed_overlay)
void setDirty ()
void idleUpdate (bool update_now=false)

Private Member Functions

U8 ownership (S32 row, S32 col) const
void addPropertyLine (LLDynamicArray< LLVector3, 256 > &vertex_array, LLDynamicArray< LLColor4U, 256 > &color_array, LLDynamicArray< LLVector2, 256 > &coord_array, const F32 start_x, const F32 start_y, const U32 edge, const LLColor4U &color)
void updateOverlayTexture ()
void updatePropertyLines ()

Private Attributes

LLViewerRegionmRegion
S32 mParcelGridsPerEdge
LLPointer< LLImageGLmTexture
LLPointer< LLImageRawmImageRaw
U8mOwnership
BOOL mDirty
LLFrameTimer mTimeSinceLastUpdate
S32 mOverlayTextureIdx
S32 mVertexCount
F32mVertexArray
U8mColorArray


Detailed Description

Definition at line 48 of file llviewerparceloverlay.h.


Constructor & Destructor Documentation

LLViewerParcelOverlay::LLViewerParcelOverlay ( LLViewerRegion region,
F32  region_width_meters 
)

Definition at line 57 of file llviewerparceloverlay.cpp.

References FALSE, i, mImageRaw, mOwnership, mParcelGridsPerEdge, mTexture, OVERLAY_IMG_COMPONENTS, PARCEL_PUBLIC, S32, TRUE, and updateOverlayTexture().

Here is the call graph for this function:

LLViewerParcelOverlay::~LLViewerParcelOverlay (  ) 

Definition at line 104 of file llviewerparceloverlay.cpp.

References mColorArray, mImageRaw, mOwnership, mVertexArray, and NULL.


Member Function Documentation

LLImageGL* LLViewerParcelOverlay::getTexture (  )  const [inline]

Definition at line 55 of file llviewerparceloverlay.h.

References mTexture.

Referenced by LLDrawPoolTerrain::renderOwnership().

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isOwned ( const LLVector3 pos  )  const

Definition at line 125 of file llviewerparceloverlay.cpp.

References LLVector3::mV, ownership(), PARCEL_GRID_STEP_METERS, PARCEL_PUBLIC, S32, VX, and VY.

Referenced by LLViewerParcelMgr::isOwnedAt().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isOwnedSelf ( const LLVector3 pos  )  const

Definition at line 132 of file llviewerparceloverlay.cpp.

References LLVector3::mV, ownership(), PARCEL_GRID_STEP_METERS, PARCEL_SELF, S32, VX, and VY.

Referenced by LLViewerObject::isOverAgentOwnedLand(), LLViewerRegion::isOwnedSelf(), and LLViewerParcelMgr::isOwnedSelfAt().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isOwnedGroup ( const LLVector3 pos  )  const

Definition at line 139 of file llviewerparceloverlay.cpp.

References LLVector3::mV, ownership(), PARCEL_GRID_STEP_METERS, PARCEL_GROUP, S32, VX, and VY.

Referenced by LLViewerObject::isOverGroupOwnedLand(), and LLViewerRegion::isOwnedGroup().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isOwnedOther ( const LLVector3 pos  )  const

Definition at line 146 of file llviewerparceloverlay.cpp.

References LLVector3::mV, ownership(), PARCEL_FOR_SALE, PARCEL_GRID_STEP_METERS, PARCEL_OWNED, S32, VX, and VY.

Referenced by LLViewerParcelMgr::isOwnedOtherAt().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isSoundLocal ( const LLVector3 pos  )  const

Definition at line 154 of file llviewerparceloverlay.cpp.

References mOwnership, mParcelGridsPerEdge, LLVector3::mV, PARCEL_GRID_STEP_METERS, PARCEL_SOUND_LOCAL, S32, VX, and VY.

Referenced by LLViewerParcelMgr::isSoundLocal().

Here is the caller graph for this function:

BOOL LLViewerParcelOverlay::isBuildCameraAllowed ( const LLVector3 pos  )  const

F32 LLViewerParcelOverlay::getOwnedRatio (  )  const

S32 LLViewerParcelOverlay::renderPropertyLines (  ) 

U8 LLViewerParcelOverlay::ownership ( const LLVector3 pos  )  const

Definition at line 161 of file llviewerparceloverlay.cpp.

References LLVector3::mV, PARCEL_GRID_STEP_METERS, S32, VX, and VY.

Referenced by isOwned(), isOwnedGroup(), isOwnedOther(), isOwnedSelf(), and updateOverlayTexture().

Here is the caller graph for this function:

void LLViewerParcelOverlay::uncompressLandOverlay ( S32  chunk,
U8 compressed_overlay 
)

Definition at line 296 of file llviewerparceloverlay.cpp.

References mOwnership, mParcelGridsPerEdge, PARCEL_OVERLAY_CHUNKS, S32, and setDirty().

Referenced by LLViewerParcelMgr::processParcelOverlay().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerParcelOverlay::setDirty (  ) 

Definition at line 708 of file llviewerparceloverlay.cpp.

References mDirty, and TRUE.

Referenced by LLViewerRegion::dirtyHeights(), and uncompressLandOverlay().

Here is the caller graph for this function:

void LLViewerParcelOverlay::idleUpdate ( bool  update_now = false  ) 

U8 LLViewerParcelOverlay::ownership ( S32  row,
S32  col 
) const [inline, private]

Definition at line 82 of file llviewerparceloverlay.h.

References mOwnership, and mParcelGridsPerEdge.

void LLViewerParcelOverlay::addPropertyLine ( LLDynamicArray< LLVector3, 256 > &  vertex_array,
LLDynamicArray< LLColor4U, 256 > &  color_array,
LLDynamicArray< LLVector2, 256 > &  coord_array,
const F32  start_x,
const F32  start_y,
const U32  edge,
const LLColor4U color 
) [private]

Definition at line 543 of file llviewerparceloverlay.cpp.

References EAST, LLViewerRegion::getLand(), i, llendl, llerrs, mRegion, LLColor4U::mV, NORTH, PARCEL_GRID_STEP_METERS, LLDynamicArray< Type, BlockSize >::put(), LLSurface::resolveHeightRegion(), S32, SOUTH, VALPHA, and WEST.

Referenced by updatePropertyLines().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerParcelOverlay::updateOverlayTexture (  )  [private]

void LLViewerParcelOverlay::updatePropertyLines (  )  [private]


Member Data Documentation

Definition at line 97 of file llviewerparceloverlay.h.

Referenced by addPropertyLine(), and renderPropertyLines().

Definition at line 111 of file llviewerparceloverlay.h.

Referenced by idleUpdate().

Definition at line 112 of file llviewerparceloverlay.h.

Referenced by idleUpdate(), and updateOverlayTexture().

Definition at line 114 of file llviewerparceloverlay.h.

Referenced by renderPropertyLines(), and updatePropertyLines().


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

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