Commit c92d888f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add one conversion function

parent 47ff2b02
...@@ -5,6 +5,13 @@ ...@@ -5,6 +5,13 @@
namespace hpp { namespace hpp {
namespace gui { 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) inline void fromHPP(const hpp::Transform__var& in, osgVector3& v)
{ {
typedef graphics::WindowsManager::value_type type; typedef graphics::WindowsManager::value_type type;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment