Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
08d7003a
Commit
08d7003a
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to checkin header changes for netmap...
parent
43c9b707
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llnetmap.h
+24
-11
24 additions, 11 deletions
indra/newview/llnetmap.h
with
24 additions
and
11 deletions
indra/newview/llnetmap.h
+
24
−
11
View file @
08d7003a
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment