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
3f8d5be5
Commit
3f8d5be5
authored
Jan 18, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5971 from AlexeyAB:correct_lighting_3d_reconstruct
parents
8203b82f
fcbb57a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
widgets.hpp
modules/viz/include/opencv2/viz/widgets.hpp
+2
-1
widget.cpp
modules/viz/src/widget.cpp
+8
-0
No files found.
modules/viz/include/opencv2/viz/widgets.hpp
View file @
3f8d5be5
...
@@ -67,7 +67,8 @@ namespace cv
...
@@ -67,7 +67,8 @@ namespace cv
REPRESENTATION
,
REPRESENTATION
,
IMMEDIATE_RENDERING
,
IMMEDIATE_RENDERING
,
SHADING
,
SHADING
,
AMBIENT
AMBIENT
,
LIGHTING
};
};
enum
RepresentationValues
enum
RepresentationValues
...
...
modules/viz/src/widget.cpp
View file @
3f8d5be5
...
@@ -115,6 +115,14 @@ void cv::viz::Widget::setRenderingProperty(int property, double value)
...
@@ -115,6 +115,14 @@ void cv::viz::Widget::setRenderingProperty(int property, double value)
case
LINE_WIDTH
:
actor
->
GetProperty
()
->
SetLineWidth
(
float
(
value
));
break
;
case
LINE_WIDTH
:
actor
->
GetProperty
()
->
SetLineWidth
(
float
(
value
));
break
;
case
IMMEDIATE_RENDERING
:
actor
->
GetMapper
()
->
SetImmediateModeRendering
(
int
(
value
));
break
;
case
IMMEDIATE_RENDERING
:
actor
->
GetMapper
()
->
SetImmediateModeRendering
(
int
(
value
));
break
;
case
AMBIENT
:
actor
->
GetProperty
()
->
SetAmbient
(
float
(
value
));
break
;
case
AMBIENT
:
actor
->
GetProperty
()
->
SetAmbient
(
float
(
value
));
break
;
case
LIGHTING
:
{
if
(
value
==
0
)
actor
->
GetProperty
()
->
LightingOff
();
else
actor
->
GetProperty
()
->
LightingOn
();
break
;
}
case
FONT_SIZE
:
case
FONT_SIZE
:
{
{
vtkTextActor
*
text_actor
=
vtkTextActor
::
SafeDownCast
(
actor
);
vtkTextActor
*
text_actor
=
vtkTextActor
::
SafeDownCast
(
actor
);
...
...
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