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
ad883677
Commit
ad883677
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add GraphicalInterface::writeNodeFile
parent
9294a11a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
idl/gepetto/viewer/graphical-interface.idl
+2
-0
2 additions, 0 deletions
idl/gepetto/viewer/graphical-interface.idl
src/graphical-interface.impl.cpp
+17
-0
17 additions, 0 deletions
src/graphical-interface.impl.cpp
src/graphical-interface.impl.hh
+1
-0
1 addition, 0 deletions
src/graphical-interface.impl.hh
with
20 additions
and
0 deletions
idl/gepetto/viewer/graphical-interface.idl
+
2
−
0
View file @
ad883677
...
...
@@ -225,6 +225,8 @@ typedef double Color [4];
/// Stop the running capture of a window.
boolean stopCapture (in unsigned long windowId) raises (Error);
boolean writeNodeFile (in unsigned long windowId, in string filename) raises (Error);
};
};
};
This diff is collapsed.
Click to expand it.
src/graphical-interface.impl.cpp
+
17
−
0
View file @
ad883677
...
...
@@ -844,6 +844,23 @@ namespace graphics {
throw
Error
(
exc
.
what
());
}
}
bool
GraphicalInterface
::
writeNodeFile
(
const
WindowID
windowId
,
const
char
*
filename
)
throw
(
Error
)
{
try
{
if
(
windowId
>=
0
||
windowId
<
windowManagers_
.
size
())
{
return
windowManagers_
[
windowId
]
->
writeNodeFile
(
std
::
string
(
filename
));
}
else
{
std
::
cout
<<
"Window ID "
<<
windowId
<<
" doesn't exist."
<<
std
::
endl
;
return
false
;
}
}
catch
(
const
std
::
exception
&
exc
)
{
throw
Error
(
exc
.
what
());
}
}
}
//end namespace impl
}
//end namespace corbaServer
}
//end namespace graphics
This diff is collapsed.
Click to expand it.
src/graphical-interface.impl.hh
+
1
−
0
View file @
ad883677
...
...
@@ -136,6 +136,7 @@ public:
virtual
bool
startCapture
(
const
WindowID
windowId
,
const
char
*
filename
,
const
char
*
extension
)
throw
(
Error
);
virtual
bool
stopCapture
(
const
WindowID
windowId
)
throw
(
Error
);
virtual
bool
writeNodeFile
(
const
WindowID
windowId
,
const
char
*
filename
)
throw
(
Error
);
};
// end of class
}
/* namespace impl */
...
...
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