Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-gui
Commits
c92d888f
Commit
c92d888f
authored
Nov 24, 2017
by
Joseph Mirabel
Committed by
Joseph Mirabel
Nov 24, 2017
Browse files
Add one conversion function
parent
47ff2b02
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/hppwidgetsplugin/conversions.hh
View file @
c92d888f
...
...
@@ -5,6 +5,13 @@
namespace
hpp
{
namespace
gui
{
inline
void
fromHPP
(
const
hpp
::
floatSeq_var
&
in
,
osgVector3
&
v
)
{
typedef
graphics
::
WindowsManager
::
value_type
type
;
const
hpp
::
floatSeq
&
t
(
in
.
in
());
v
.
set
((
type
)
t
[
0
],
(
type
)
t
[
1
],
(
type
)
t
[
2
]);
}
inline
void
fromHPP
(
const
hpp
::
Transform__var
&
in
,
osgVector3
&
v
)
{
typedef
graphics
::
WindowsManager
::
value_type
type
;
...
...
Write
Preview
Supports
Markdown
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