Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
c52eed06
Commit
c52eed06
authored
Feb 13, 2018
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ovis: implement removeEntity method
parent
faf82d88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ovis.hpp
modules/ovis/include/opencv2/ovis.hpp
+6
-0
ovis.cpp
modules/ovis/src/ovis.cpp
+7
-0
No files found.
modules/ovis/include/opencv2/ovis.hpp
View file @
c52eed06
...
...
@@ -70,6 +70,12 @@ public:
CV_WRAP
virtual
void
createEntity
(
const
String
&
name
,
const
String
&
meshname
,
InputArray
tvec
=
noArray
(),
InputArray
rot
=
noArray
())
=
0
;
/**
* remove an entity from the scene
* @param name entity name
*/
CV_WRAP
virtual
void
removeEntity
(
const
String
&
name
)
=
0
;
/**
* convenience method to visualize a camera position
*
...
...
modules/ovis/src/ovis.cpp
View file @
c52eed06
...
...
@@ -342,6 +342,13 @@ public:
node
->
attachObject
(
ent
);
}
void
removeEntity
(
const
String
&
name
)
{
SceneNode
*
node
=
_getSceneNode
(
sceneMgr
,
name
);
node
->
getAttachedObject
(
name
)
->
detachFromParent
();
sceneMgr
->
destroyEntity
(
name
);
sceneMgr
->
destroySceneNode
(
node
);
}
Rect2d
createCameraEntity
(
const
String
&
name
,
InputArray
K
,
const
Size
&
imsize
,
float
zFar
,
InputArray
tvec
,
InputArray
rot
)
{
...
...
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