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
8b42d2c5
Commit
8b42d2c5
authored
4 years ago
by
Joseph Mirabel
Browse files
Options
Downloads
Patches
Plain Diff
Expose setCameraToBestFit
parent
a4cc0c8f
No related branches found
No related tags found
No related merge requests found
Pipeline
#11607
passed with warnings
4 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
idl/gepetto/viewer/graphical-interface.idl
+3
-0
3 additions, 0 deletions
idl/gepetto/viewer/graphical-interface.idl
src/graphical-interface.impl.cpp
+2
-0
2 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
6 additions
and
0 deletions
idl/gepetto/viewer/graphical-interface.idl
+
3
−
0
View file @
8b42d2c5
...
...
@@ -518,6 +518,9 @@ typedef sequence<Transform> TransformSeq;
///
\
param
configuration
:
the
desired
configuration
of
the
camera
boolean
setCameraTransform
(
in
WindowID
wid
,
in
Transform
configuration
)
raises
(
Error
)
;
///
Set
the
camera
to
best
fit
.
boolean
setCameraToBestFit
(
in
WindowID
wid
)
raises
(
Error
)
;
//
register
a
Node
callback
boolean
registerNodeCallback
(
in
NodeCallback
cb
)
raises
(
Error
)
;
...
...
This diff is collapsed.
Click to expand it.
src/graphical-interface.impl.cpp
+
2
−
0
View file @
8b42d2c5
...
...
@@ -280,6 +280,8 @@ namespace gepetto {
BIND_TO_WINDOWS_MANAGER_2
(
BOOL
,
setCameraTransform
,
WINDOW_ID
,
TRANSFORM
)
BIND_TO_WINDOWS_MANAGER_1
(
BOOL
,
setCameraToBestFit
,
WINDOW_ID
)
// ------------- Properties -------------------- //
BIND_TO_WINDOWS_MANAGER_1
(
STRING_LIST
,
getPropertyNames
,
STRING
)
...
...
This diff is collapsed.
Click to expand it.
src/graphical-interface.impl.hh
+
1
−
0
View file @
8b42d2c5
...
...
@@ -158,6 +158,7 @@ public:
virtual
bool
setBackgroundColor2
(
const
char
*
windowId
,
const
Color
colorCorba
);
virtual
Transform_slice
*
getCameraTransform
(
const
char
*
windowId
);
virtual
bool
setCameraTransform
(
const
char
*
windowId
,
const
value_type
*
configurationCorba
);
virtual
bool
setCameraToBestFit
(
const
char
*
windowId
);
// ------------- Properties -------------------- //
virtual
Names_t
*
getPropertyNames
(
const
char
*
nodeName
);
...
...
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