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
LLUUID mLineImageID
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 54 of file llviewerparceloverlay.cpp.

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

LLViewerParcelOverlay::~LLViewerParcelOverlay (  ) 

Definition at line 102 of file llviewerparceloverlay.cpp.

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


Member Function Documentation

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 541 of file llviewerparceloverlay.cpp.

References EAST, f, 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().

F32 LLViewerParcelOverlay::getOwnedRatio (  )  const

Definition at line 166 of file llviewerparceloverlay.cpp.

References i, mOwnership, mParcelGridsPerEdge, PARCEL_COLOR_MASK, PARCEL_PUBLIC, S32, and size.

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

Definition at line 55 of file llviewerparceloverlay.h.

References mTexture.

Referenced by LLDrawPoolTerrain::renderOwnership().

void LLViewerParcelOverlay::idleUpdate ( bool  update_now = false  ) 

Definition at line 711 of file llviewerparceloverlay.cpp.

References LLFrameTimer::getElapsedTimeF32(), gGLManager, mDirty, LLGLManager::mIsDisabled, mOverlayTextureIdx, mTimeSinceLastUpdate, LLFrameTimer::reset(), updateOverlayTexture(), and updatePropertyLines().

Referenced by LLViewerRegion::forceUpdate(), and LLViewerRegion::idleUpdate().

BOOL LLViewerParcelOverlay::isBuildCameraAllowed ( const LLVector3 pos  )  const

BOOL LLViewerParcelOverlay::isOwned ( const LLVector3 pos  )  const

Definition at line 123 of file llviewerparceloverlay.cpp.

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

Referenced by LLViewerParcelMgr::isOwnedAt().

BOOL LLViewerParcelOverlay::isOwnedGroup ( const LLVector3 pos  )  const

Definition at line 137 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().

BOOL LLViewerParcelOverlay::isOwnedOther ( const LLVector3 pos  )  const

Definition at line 144 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().

BOOL LLViewerParcelOverlay::isOwnedSelf ( const LLVector3 pos  )  const

Definition at line 130 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().

BOOL LLViewerParcelOverlay::isSoundLocal ( const LLVector3 pos  )  const

Definition at line 152 of file llviewerparceloverlay.cpp.

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

Referenced by LLViewerParcelMgr::isSoundLocal().

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

Definition at line 82 of file llviewerparceloverlay.h.

References mOwnership, and mParcelGridsPerEdge.

U8 LLViewerParcelOverlay::ownership ( const LLVector3 pos  )  const

Definition at line 159 of file llviewerparceloverlay.cpp.

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

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

S32 LLViewerParcelOverlay::renderPropertyLines (  ) 

Definition at line 735 of file llviewerparceloverlay.cpp.

References dist_vec_squared2D(), f, gAgent, gCamera, LLCoordFrame::getAtAxis(), LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLViewerRegion::getLand(), LLCoordFrame::getOrigin(), LLViewerRegion::getOriginAgent(), LLViewerRegion::getPosRegionFromGlobal(), glBegin, glColor4ubv, glEnd, glPopMatrix, glTranslatef, gSavedSettings, i, j, llclamp(), mColorArray, mRegion, LLVector3::mV, mVertexArray, mVertexCount, PARCEL_GRID_STEP_METERS, LLSurface::resolveHeightGlobal(), S32, VX, VY, and VZ.

Referenced by LLViewerRegion::renderPropertyLines().

void LLViewerParcelOverlay::setDirty (  ) 

Definition at line 706 of file llviewerparceloverlay.cpp.

References mDirty, and TRUE.

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

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

Definition at line 294 of file llviewerparceloverlay.cpp.

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

Referenced by LLViewerParcelMgr::processParcelOverlay().

void LLViewerParcelOverlay::updateOverlayTexture (  )  [private]

Definition at line 195 of file llviewerparceloverlay.cpp.

References a, b, g, gColors, LLControlGroup::getColor4U(), i, mDirty, mImageRaw, mOverlayTextureIdx, mOwnership, mParcelGridsPerEdge, mTexture, LLColor4U::mV, OVERLAY_IMG_COMPONENTS, ownership(), PARCEL_AUCTION, PARCEL_FOR_SALE, PARCEL_GROUP, PARCEL_OWNED, PARCEL_PUBLIC, PARCEL_SELF, r, S32, VALPHA, VBLUE, VGREEN, and VRED.

Referenced by idleUpdate(), and LLViewerParcelOverlay().

void LLViewerParcelOverlay::updatePropertyLines (  )  [private]

Definition at line 307 of file llviewerparceloverlay.cpp.

References addPropertyLine(), bottom, LLDynamicArray< Type, BlockSize >::count(), EAST, FALSE, gColors, LLDynamicArray< Type, BlockSize >::get(), LLControlGroup::getBOOL(), LLControlGroup::getColor4U(), gSavedSettings, i, left, mColorArray, mDirty, mOwnership, mParcelGridsPerEdge, LLColor4U::mV, LLVector3::mV, mVertexArray, mVertexCount, NORTH, NULL, PARCEL_AUCTION, PARCEL_COLOR_MASK, PARCEL_FOR_SALE, PARCEL_GRID_STEP_METERS, PARCEL_GROUP, PARCEL_OWNED, PARCEL_SELF, PARCEL_SOUTH_LINE, PARCEL_WEST_LINE, right, S32, SOUTH, top, TRUE, VALPHA, VBLUE, VGREEN, VRED, VX, VY, VZ, and WEST.

Referenced by idleUpdate().


Member Data Documentation

U8* LLViewerParcelOverlay::mColorArray [private]

Definition at line 117 of file llviewerparceloverlay.h.

Referenced by renderPropertyLines(), updatePropertyLines(), and ~LLViewerParcelOverlay().

BOOL LLViewerParcelOverlay::mDirty [private]

Definition at line 110 of file llviewerparceloverlay.h.

Referenced by idleUpdate(), setDirty(), updateOverlayTexture(), and updatePropertyLines().

LLPointer<LLImageRaw> LLViewerParcelOverlay::mImageRaw [private]

Definition at line 102 of file llviewerparceloverlay.h.

Referenced by LLViewerParcelOverlay(), updateOverlayTexture(), and ~LLViewerParcelOverlay().

LLUUID LLViewerParcelOverlay::mLineImageID [private]

Definition at line 114 of file llviewerparceloverlay.h.

S32 LLViewerParcelOverlay::mOverlayTextureIdx [private]

Definition at line 112 of file llviewerparceloverlay.h.

Referenced by idleUpdate(), and updateOverlayTexture().

U8* LLViewerParcelOverlay::mOwnership [private]

Definition at line 107 of file llviewerparceloverlay.h.

Referenced by getOwnedRatio(), isSoundLocal(), LLViewerParcelOverlay(), ownership(), uncompressLandOverlay(), updateOverlayTexture(), updatePropertyLines(), and ~LLViewerParcelOverlay().

S32 LLViewerParcelOverlay::mParcelGridsPerEdge [private]

Definition at line 99 of file llviewerparceloverlay.h.

Referenced by getOwnedRatio(), isSoundLocal(), LLViewerParcelOverlay(), ownership(), uncompressLandOverlay(), updateOverlayTexture(), and updatePropertyLines().

LLViewerRegion* LLViewerParcelOverlay::mRegion [private]

Definition at line 97 of file llviewerparceloverlay.h.

Referenced by addPropertyLine(), and renderPropertyLines().

LLPointer<LLImageGL> LLViewerParcelOverlay::mTexture [private]

Definition at line 101 of file llviewerparceloverlay.h.

Referenced by getTexture(), LLViewerParcelOverlay(), and updateOverlayTexture().

LLFrameTimer LLViewerParcelOverlay::mTimeSinceLastUpdate [private]

Definition at line 111 of file llviewerparceloverlay.h.

Referenced by idleUpdate().

F32* LLViewerParcelOverlay::mVertexArray [private]

Definition at line 116 of file llviewerparceloverlay.h.

Referenced by renderPropertyLines(), updatePropertyLines(), and ~LLViewerParcelOverlay().

S32 LLViewerParcelOverlay::mVertexCount [private]

Definition at line 115 of file llviewerparceloverlay.h.

Referenced by renderPropertyLines(), and updatePropertyLines().


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