Skip to content
Snippets Groups Projects
Commit 08d7003a authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Forgot to checkin header changes for netmap...

parent 43c9b707
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ class LLImageRaw; ...@@ -40,6 +40,7 @@ class LLImageRaw;
class LLViewerTexture; class LLViewerTexture;
class LLFloaterMap; class LLFloaterMap;
class LLMenuGL; class LLMenuGL;
class LLViewerRegion;
class LLNetMap final : public LLUICtrl class LLNetMap final : public LLUICtrl
{ {
...@@ -66,25 +67,27 @@ class LLNetMap final : public LLUICtrl ...@@ -66,25 +67,27 @@ class LLNetMap final : public LLUICtrl
static const F32 MAP_SCALE_MID; static const F32 MAP_SCALE_MID;
static const F32 MAP_SCALE_MAX; static const F32 MAP_SCALE_MAX;
/*virtual*/ void draw(); /*virtual*/ void draw() override;
/*virtual*/ BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); /*virtual*/ BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) override;
/*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask); /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask) override;
/*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask); /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask) override;
/*virtual*/ BOOL handleHover( S32 x, S32 y, MASK mask ); /*virtual*/ BOOL handleHover( S32 x, S32 y, MASK mask ) override;
/*virtual*/ BOOL handleToolTip( S32 x, S32 y, MASK mask); /*virtual*/ BOOL handleToolTip( S32 x, S32 y, MASK mask) override;
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE) override;
/*virtual*/ BOOL postBuild(); /*virtual*/ BOOL postBuild() override;
/*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask ); /*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask ) override;
/*virtual*/ BOOL handleClick(S32 x, S32 y, MASK mask); /*virtual*/ BOOL handleClick(S32 x, S32 y, MASK mask);
/*virtual*/ BOOL handleDoubleClick( S32 x, S32 y, MASK mask ); /*virtual*/ BOOL handleDoubleClick( S32 x, S32 y, MASK mask ) override;
void refreshParcelOverlay() { mUpdateParcelImage = true; }
void setScale( F32 scale ); void setScale( F32 scale );
void setToolTipMsg(const std::string& msg) { mToolTipMsg = msg; } void setToolTipMsg(const std::string& msg) { mToolTipMsg = msg; }
void renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &color, F32 radius ); void renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &color, F32 radius );
private: private:
const LLVector3d& getObjectImageCenterGlobal() { return mObjectImageCenterGlobal; } const LLVector3d& getObjectImageCenterGlobal() const { return mObjectImageCenterGlobal; }
void renderPoint(const LLVector3 &pos, const LLColor4U &color, void renderPoint(const LLVector3 &pos, const LLColor4U &color,
S32 diameter, S32 relative_height = 0); S32 diameter, S32 relative_height = 0);
...@@ -99,11 +102,14 @@ class LLNetMap final : public LLUICtrl ...@@ -99,11 +102,14 @@ class LLNetMap final : public LLUICtrl
bool createImage(LLPointer<LLImageRaw>& rawimagep) const; bool createImage(LLPointer<LLImageRaw>& rawimagep) const;
void createObjectImage(); void createObjectImage();
void createParcelImage();
void renderPropertyLinesForRegion(const LLViewerRegion* pRegion, const LLColor4U& clrOverlay);
static bool outsideSlop(S32 x, S32 y, S32 start_x, S32 start_y, S32 slop); static bool outsideSlop(S32 x, S32 y, S32 start_x, S32 start_y, S32 slop);
private: private:
bool mUpdateObjectImage; bool mUpdateObjectImage;
bool mUpdateParcelImage;
LLUIColor mBackgroundColor; LLUIColor mBackgroundColor;
...@@ -123,6 +129,13 @@ class LLNetMap final : public LLUICtrl ...@@ -123,6 +129,13 @@ class LLNetMap final : public LLUICtrl
LLPointer<LLImageRaw> mObjectRawImagep; LLPointer<LLImageRaw> mObjectRawImagep;
LLPointer<LLViewerTexture> mObjectImagep; LLPointer<LLViewerTexture> mObjectImagep;
LLVector3d mParcelImageCenterGlobal;
LLPointer<LLImageRaw> mParcelRawImagep;
LLPointer<LLViewerTexture> mParcelImagep;
boost::signals2::connection mParcelMgrConn;
boost::signals2::connection mParcelOverlayConn;
LLUUID mClosestAgentToCursor; LLUUID mClosestAgentToCursor;
LLUUID mClosestAgentAtLastRightClick; LLUUID mClosestAgentAtLastRightClick;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment