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
c7ff1387
Commit
c7ff1387
authored
Dec 08, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
f6e9b811
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
widgets.hpp
modules/viz/include/opencv2/viz/widgets.hpp
+12
-0
precomp.hpp
modules/viz/src/precomp.hpp
+6
-1
viz3d_impl.cpp
modules/viz/src/viz3d_impl.cpp
+6
-2
No files found.
modules/viz/include/opencv2/viz/widgets.hpp
View file @
c7ff1387
...
@@ -132,6 +132,9 @@ namespace cv
...
@@ -132,6 +132,9 @@ namespace cv
void
setColor
(
const
Color
&
color
);
void
setColor
(
const
Color
&
color
);
};
};
/////////////////////////////////////////////////////////////////////////////
/// Simple widgets
class
CV_EXPORTS
WLine
:
public
Widget3D
class
CV_EXPORTS
WLine
:
public
Widget3D
{
{
public
:
public
:
...
@@ -175,6 +178,9 @@ namespace cv
...
@@ -175,6 +178,9 @@ namespace cv
WCube
(
const
Point3f
&
pt_min
,
const
Point3f
&
pt_max
,
bool
wire_frame
=
true
,
const
Color
&
color
=
Color
::
white
());
WCube
(
const
Point3f
&
pt_min
,
const
Point3f
&
pt_max
,
bool
wire_frame
=
true
,
const
Color
&
color
=
Color
::
white
());
};
};
/////////////////////////////////////////////////////////////////////////////
/// Compond widgets
class
CV_EXPORTS
WCoordinateSystem
:
public
Widget3D
class
CV_EXPORTS
WCoordinateSystem
:
public
Widget3D
{
{
public
:
public
:
...
@@ -268,6 +274,9 @@ namespace cv
...
@@ -268,6 +274,9 @@ namespace cv
float
sphere_radius
=
0.007
f
,
const
Color
&
line_color
=
Color
::
white
(),
const
Color
&
sphere_color
=
Color
::
white
());
float
sphere_radius
=
0.007
f
,
const
Color
&
line_color
=
Color
::
white
(),
const
Color
&
sphere_color
=
Color
::
white
());
};
};
/////////////////////////////////////////////////////////////////////////////
/// Cloud widgets
class
CV_EXPORTS
WCloud
:
public
Widget3D
class
CV_EXPORTS
WCloud
:
public
Widget3D
{
{
public
:
public
:
...
@@ -300,6 +309,9 @@ namespace cv
...
@@ -300,6 +309,9 @@ namespace cv
WMesh
(
const
Mesh3d
&
mesh
);
WMesh
(
const
Mesh3d
&
mesh
);
};
};
/////////////////////////////////////////////////////////////////////////////
/// Utility exports
template
<>
CV_EXPORTS
Widget2D
Widget
::
cast
<
Widget2D
>
();
template
<>
CV_EXPORTS
Widget2D
Widget
::
cast
<
Widget2D
>
();
template
<>
CV_EXPORTS
Widget3D
Widget
::
cast
<
Widget3D
>
();
template
<>
CV_EXPORTS
Widget3D
Widget
::
cast
<
Widget3D
>
();
template
<>
CV_EXPORTS
WLine
Widget
::
cast
<
WLine
>
();
template
<>
CV_EXPORTS
WLine
Widget
::
cast
<
WLine
>
();
...
...
modules/viz/src/precomp.hpp
View file @
c7ff1387
...
@@ -94,7 +94,6 @@
...
@@ -94,7 +94,6 @@
#include <vtkInteractorStyleTrackballCamera.h>
#include <vtkInteractorStyleTrackballCamera.h>
#include <vtkProperty.h>
#include <vtkProperty.h>
#include <vtkCamera.h>
#include <vtkCamera.h>
#include <vtkObjectFactory.h>
#include <vtkPlanes.h>
#include <vtkPlanes.h>
#include <vtkImageFlip.h>
#include <vtkImageFlip.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindow.h>
...
@@ -111,6 +110,12 @@
...
@@ -111,6 +110,12 @@
#include <vtkPolyDataNormals.h>
#include <vtkPolyDataNormals.h>
#include <vtkAlgorithmOutput.h>
#include <vtkAlgorithmOutput.h>
#include <vtkImageMapper.h>
#include <vtkImageMapper.h>
#include <vtkPoints.h>
#include <vtkInformation.h>
#include <vtkInformationVector.h>
#include <vtkObjectFactory.h>
#include <vtkPolyDataAlgorithm.h>
#include <vtkMergeFilter.h>
#include <opencv2/core.hpp>
#include <opencv2/core.hpp>
#include <opencv2/viz.hpp>
#include <opencv2/viz.hpp>
...
...
modules/viz/src/viz3d_impl.cpp
View file @
c7ff1387
...
@@ -48,9 +48,9 @@
...
@@ -48,9 +48,9 @@
#include "precomp.hpp"
#include "precomp.hpp"
vtkRenderWindowInteractor
*
vtkRenderWindowInteractorFixNew
();
#if 1 || !defined __APPLE__
#if (1 || !defined __APPLE__) && !defined _MSC_VER
vtkRenderWindowInteractor
*
vtkRenderWindowInteractorFixNew
();
vtkRenderWindowInteractor
*
vtkRenderWindowInteractorFixNew
()
vtkRenderWindowInteractor
*
vtkRenderWindowInteractorFixNew
()
{
{
return
vtkRenderWindowInteractor
::
New
();
return
vtkRenderWindowInteractor
::
New
();
...
@@ -79,7 +79,11 @@ cv::viz::Viz3d::VizImpl::VizImpl(const String &name)
...
@@ -79,7 +79,11 @@ cv::viz::Viz3d::VizImpl::VizImpl(const String &name)
style_
->
UseTimersOn
();
style_
->
UseTimersOn
();
/////////////////////////////////////////////////
/////////////////////////////////////////////////
#if (1 || !defined __APPLE__) && !defined _MSC_VER
interactor_
=
vtkSmartPointer
<
vtkRenderWindowInteractor
>::
Take
(
vtkRenderWindowInteractorFixNew
());
interactor_
=
vtkSmartPointer
<
vtkRenderWindowInteractor
>::
Take
(
vtkRenderWindowInteractorFixNew
());
#else
interactor_
=
vtkSmartPointer
<
vtkRenderWindowInteractor
>::
New
();
#endif
window_
->
AlphaBitPlanesOff
();
window_
->
AlphaBitPlanesOff
();
window_
->
PointSmoothingOff
();
window_
->
PointSmoothingOff
();
...
...
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