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
4f416352
Commit
4f416352
authored
Aug 24, 2013
by
ozantonkal
Committed by
Ozan Tonkal
Sep 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented actor representation methods in viz3d
parent
cf36b8f8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
25 deletions
+26
-25
viz3d.hpp
modules/viz/include/opencv2/viz/viz3d.hpp
+4
-0
viz3d.cpp
modules/viz/src/viz3d.cpp
+4
-0
viz3d_impl.cpp
modules/viz/src/viz3d_impl.cpp
+15
-15
viz3d_impl.hpp
modules/viz/src/viz3d_impl.hpp
+3
-10
No files found.
modules/viz/include/opencv2/viz/viz3d.hpp
View file @
4f416352
...
...
@@ -57,6 +57,10 @@ namespace cv
void
setRenderingProperty
(
int
property
,
double
value
,
const
String
&
id
);
double
getRenderingProperty
(
int
property
,
const
String
&
id
);
void
setRepresentationToSurface
();
void
setRepresentationToWireframe
();
void
setRepresentationToPoints
();
private
:
struct
VizImpl
;
...
...
modules/viz/src/viz3d.cpp
View file @
4f416352
...
...
@@ -76,3 +76,7 @@ cv::String cv::viz::Viz3d::getWindowName() const { return impl_->getWindowName()
void
cv
::
viz
::
Viz3d
::
setRenderingProperty
(
int
property
,
double
value
,
const
String
&
id
)
{
getWidget
(
id
).
setRenderingProperty
(
property
,
value
);
}
double
cv
::
viz
::
Viz3d
::
getRenderingProperty
(
int
property
,
const
String
&
id
)
{
return
getWidget
(
id
).
getRenderingProperty
(
property
);
}
void
cv
::
viz
::
Viz3d
::
setRepresentationToSurface
()
{
impl_
->
setRepresentationToSurface
();
}
void
cv
::
viz
::
Viz3d
::
setRepresentationToWireframe
()
{
impl_
->
setRepresentationToWireframe
();
}
void
cv
::
viz
::
Viz3d
::
setRepresentationToPoints
()
{
impl_
->
setRepresentationToPoints
();
}
modules/viz/src/viz3d_impl.cpp
View file @
4f416352
...
...
@@ -423,33 +423,33 @@ void cv::viz::Viz3d::VizImpl::resetCameraViewpoint (const std::string &id)
}
///////////////////////////////////////////////////////////////////////////////////
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToSurface
ForAllActors
()
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToSurface
()
{
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActor
*
actor
;
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
}
///////////////////////////////////////////////////////////////////////////////////
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToPoints
ForAllActors
()
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToPoints
()
{
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActor
*
actor
;
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToPoints
();
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToPoints
();
}
///////////////////////////////////////////////////////////////////////////////////
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToWireframe
ForAllActors
()
void
cv
::
viz
::
Viz3d
::
VizImpl
::
setRepresentationToWireframe
()
{
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActorCollection
*
actors
=
renderer_
->
GetActors
();
actors
->
InitTraversal
();
vtkActor
*
actor
;
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToWireframe
();
while
((
actor
=
actors
->
GetNextActor
())
!=
NULL
)
actor
->
GetProperty
()
->
SetRepresentationToWireframe
();
}
//////////////////////////////////////////////////////////////////////////////////////////////
...
...
modules/viz/src/viz3d_impl.hpp
View file @
4f416352
...
...
@@ -39,16 +39,9 @@ public:
}
}
// to implement in Viz3d with shorter name
void
setRepresentationToSurfaceForAllActors
();
void
setRepresentationToPointsForAllActors
();
void
setRepresentationToWireframeForAllActors
();
void
setRepresentationToSurface
();
void
setRepresentationToPoints
();
void
setRepresentationToWireframe
();
// ////////////////////////////////////////////////////////////////////////////////////
...
...
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