Namespaces | Functions
OsgRigidTransformConversions.h File Reference

Conversions to and from OSG rigid transform types. More...

#include "SurgSim/Graphics/OsgQuaternionConversions.h"
#include "SurgSim/Graphics/OsgVectorConversions.h"
#include "SurgSim/Math/Quaternion.h"
#include "SurgSim/Math/RigidTransform.h"
#include "SurgSim/Math/Vector.h"
#include <osg/Quat>
#include <osg/Vec2>
#include <osg/Vec3>

Go to the source code of this file.

Namespaces

 SurgSim
 
 SurgSim::Graphics
 

Functions

std::pair< osg::Quat, osg::Vec3f > SurgSim::Graphics::toOsg (const SurgSim::Math::RigidTransform3f &transform)
 Convert 3D rigid body (isometric) transform, represented as floats, to OSG. More...
 
std::pair< osg::Quat, osg::Vec3d > SurgSim::Graphics::toOsg (const SurgSim::Math::RigidTransform3d &transform)
 Convert 3D rigid body (isometric) transform, represented as doubles, to OSG. More...
 
SurgSim::Math::RigidTransform3f SurgSim::Graphics::fromOsg (const osg::Quat &rotation, const osg::Vec3f &translation)
 Convert from OSG to 3D rigid body (isometric) transform, represented as floats. More...
 
SurgSim::Math::RigidTransform3f SurgSim::Graphics::fromOsg (const std::pair< osg::Quat, osg::Vec3f > &transform)
 Convert from OSG to 3D rigid body (isometric) transform, represented as floats. More...
 
SurgSim::Math::RigidTransform3d SurgSim::Graphics::fromOsg (const osg::Quat &rotation, const osg::Vec3d &translation)
 Convert from OSG to 3D rigid body (isometric) transform, represented as doubles. More...
 
SurgSim::Math::RigidTransform3d SurgSim::Graphics::fromOsg (const std::pair< osg::Quat, osg::Vec3d > &transform)
 Convert from OSG to 3D rigid body (isometric) transform, represented as doubles. More...
 

Detailed Description

Conversions to and from OSG rigid transform types.

Note that OSG does not have a rigid transform type, so a quaternion, vector pair are used for the rotation and translation components of the rigid transform.