Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
509a93c7
Commit
509a93c7
authored
Jul 09, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor naming
parent
200b254b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
widget_accessor.hpp
modules/viz/include/opencv2/viz/widget_accessor.hpp
+2
-2
widgets.hpp
modules/viz/include/opencv2/viz/widgets.hpp
+0
-1
widget.cpp
modules/viz/src/widget.cpp
+6
-7
No files found.
modules/viz/include/opencv2/viz/widget_accessor.hpp
View file @
509a93c7
...
...
@@ -2,7 +2,7 @@
#include <opencv2/core/cvdef.h>
#include <vtkSmartPointer.h>
#include <vtk
LODActor
.h>
#include <vtk
Prop
.h>
namespace
temp_viz
{
...
...
@@ -13,6 +13,6 @@ namespace temp_viz
struct
CV_EXPORTS
WidgetAccessor
{
static
vtkSmartPointer
<
vtkProp
>
getProp
(
const
Widget
&
widget
);
static
void
setProp
(
Widget
&
widget
,
vtkSmartPointer
<
vtkProp
>
actor
);
static
void
setProp
(
Widget
&
widget
,
vtkSmartPointer
<
vtkProp
>
prop
);
};
}
modules/viz/include/opencv2/viz/widgets.hpp
View file @
509a93c7
...
...
@@ -15,7 +15,6 @@ namespace temp_viz
Widget
&
operator
=
(
const
Widget
&
other
);
~
Widget
();
private
:
class
Impl
;
Impl
*
impl_
;
...
...
modules/viz/src/widget.cpp
View file @
509a93c7
...
...
@@ -6,10 +6,10 @@
class
temp_viz
::
Widget
::
Impl
{
public
:
vtkSmartPointer
<
vtkProp
>
actor
;
vtkSmartPointer
<
vtkProp
>
prop
;
int
ref_counter
;
Impl
()
:
actor
(
0
)
{}
Impl
()
:
prop
(
0
)
{}
};
temp_viz
::
Widget
::
Widget
()
:
impl_
(
0
)
...
...
@@ -59,12 +59,12 @@ void temp_viz::Widget::release()
vtkSmartPointer
<
vtkProp
>
temp_viz
::
WidgetAccessor
::
getProp
(
const
Widget
&
widget
)
{
return
widget
.
impl_
->
actor
;
return
widget
.
impl_
->
prop
;
}
void
temp_viz
::
WidgetAccessor
::
setProp
(
Widget
&
widget
,
vtkSmartPointer
<
vtkProp
>
actor
)
void
temp_viz
::
WidgetAccessor
::
setProp
(
Widget
&
widget
,
vtkSmartPointer
<
vtkProp
>
prop
)
{
widget
.
impl_
->
actor
=
actor
;
widget
.
impl_
->
prop
=
prop
;
}
///////////////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -191,4 +191,4 @@ void temp_viz::Widget2D::setColor(const Color &color)
Color
c
=
vtkcolor
(
color
);
actor
->
GetProperty
()
->
SetColor
(
c
.
val
);
actor
->
Modified
();
}
\ No newline at end of file
}
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