Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gepetto-viewer-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
gepetto-viewer-corba
Commits
65e76a9e
Commit
65e76a9e
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Enhance listing of nodes, groups and windows.
parent
712e37c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gepetto/viewer/corba/windows-manager.h
+3
-2
3 additions, 2 deletions
include/gepetto/viewer/corba/windows-manager.h
src/windows-manager.cpp
+22
-6
22 additions, 6 deletions
src/windows-manager.cpp
with
25 additions
and
8 deletions
include/gepetto/viewer/corba/windows-manager.h
+
3
−
2
View file @
65e76a9e
...
...
@@ -72,8 +72,9 @@ namespace graphics {
public:
static
WindowsManagerPtr_t
create
();
virtual
void
getNodeList
();
virtual
void
getWindowList
();
virtual
std
::
vector
<
std
::
string
>
getNodeList
();
virtual
std
::
vector
<
std
::
string
>
getSceneList
();
virtual
std
::
vector
<
std
::
string
>
getWindowList
();
virtual
bool
setRate
(
const
int
&
rate
);
virtual
void
refresh
();
...
...
This diff is collapsed.
Click to expand it.
src/windows-manager.cpp
+
22
−
6
View file @
65e76a9e
...
...
@@ -479,25 +479,41 @@ namespace graphics {
}
}
void
WindowsManager
::
getNodeList
()
std
::
vector
<
std
::
string
>
WindowsManager
::
getNodeList
()
{
std
::
vector
<
std
::
string
>
l
;
std
::
cout
<<
"List of Nodes :"
<<
std
::
endl
;
for
(
std
::
map
<
std
::
string
,
NodePtr_t
>::
iterator
it
=
nodes_
.
begin
();
it
!=
nodes_
.
end
();
++
it
)
it
!=
nodes_
.
end
();
++
it
)
{
std
::
cout
<<
" "
<<
it
->
first
<<
std
::
endl
;
l
.
push_back
(
it
->
first
);
}
return
l
;
}
std
::
vector
<
std
::
string
>
WindowsManager
::
getSceneList
()
{
std
::
vector
<
std
::
string
>
l
;
std
::
cout
<<
"List of GroupNodes :"
<<
std
::
endl
;
for
(
std
::
map
<
std
::
string
,
GroupNodePtr_t
>::
iterator
it
=
groupNodes_
.
begin
();
it
!=
groupNodes_
.
end
();
++
it
)
groupNodes_
.
begin
();
it
!=
groupNodes_
.
end
();
++
it
)
{
std
::
cout
<<
" "
<<
it
->
first
<<
std
::
endl
;
l
.
push_back
(
it
->
first
);
}
return
l
;
}
void
WindowsManager
::
getWindowList
()
std
::
vector
<
std
::
string
>
WindowsManager
::
getWindowList
()
{
std
::
vector
<
std
::
string
>
l
;
std
::
cout
<<
"List of Windows :"
<<
std
::
endl
;
size_t
rank
=
0
;
for
(
WindowManagerVector_t
::
iterator
it
=
windowManagers_
.
begin
();
it
!=
windowManagers_
.
end
();
++
it
)
std
::
cout
<<
rank
<<
" - "
<<
(
*
it
)
->
getViewerClone
()
->
getSlave
(
0
).
_camera
->
getGraphicsContext
()
->
getTraits
()
->
windowName
<<
std
::
endl
;
it
!=
windowManagers_
.
end
();
++
it
)
{
std
::
cout
<<
rank
<<
" - "
<<
(
*
it
)
->
getViewerClone
()
->
getCamera
()
->
getGraphicsContext
()
->
getTraits
()
->
windowName
<<
std
::
endl
;
l
.
push_back
((
*
it
)
->
getViewerClone
()
->
getCamera
()
->
getGraphicsContext
()
->
getTraits
()
->
windowName
);
}
return
l
;
}
bool
WindowsManager
::
createGroup
(
const
char
*
groupNameCorba
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment