Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
7b5cedcd
Commit
7b5cedcd
authored
Jan 21, 2012
by
Davis King
Browse files
Added another add_overlay() overload.
parent
55c1d6cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
dlib/gui_widgets/widgets.h
dlib/gui_widgets/widgets.h
+11
-0
dlib/gui_widgets/widgets_abstract.h
dlib/gui_widgets/widgets_abstract.h
+11
-0
No files found.
dlib/gui_widgets/widgets.h
View file @
7b5cedcd
...
@@ -3487,6 +3487,17 @@ namespace dlib
...
@@ -3487,6 +3487,17 @@ namespace dlib
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
,
const
std
::
string
&
l
)
void
add_overlay
(
const
rectangle
&
r
,
pixel_type
p
,
const
std
::
string
&
l
)
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
,
l
));
}
{
add_overlay
(
image_display
::
overlay_rect
(
r
,
p
,
l
));
}
template
<
typename
pixel_type
>
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
,
pixel_type
p
)
{
std
::
vector
<
overlay_rect
>
temp
;
temp
.
resize
(
r
.
size
());
for
(
unsigned
long
i
=
0
;
i
<
temp
.
size
();
++
i
)
temp
[
i
]
=
overlay_rect
(
r
[
i
],
p
);
add_overlay
(
temp
);
}
void
add_overlay
(
void
add_overlay
(
const
overlay_line
&
overlay
const
overlay_line
&
overlay
);
);
...
...
dlib/gui_widgets/widgets_abstract.h
View file @
7b5cedcd
...
@@ -2722,6 +2722,17 @@ namespace dlib
...
@@ -2722,6 +2722,17 @@ namespace dlib
- performs: add_overlay(overlay_rect(r,p,l));
- performs: add_overlay(overlay_rect(r,p,l));
!*/
!*/
template
<
typename
pixel_type
>
void
add_overlay
(
const
std
::
vector
<
rectangle
>&
r
,
pixel_type
p
);
/*!
ensures
- adds the given set of rectangles into this object such
that they will be displayed with the color specific by p.
!*/
void
add_overlay
(
void
add_overlay
(
const
overlay_line
&
overlay
const
overlay_line
&
overlay
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment