The types use by the visualisation of OpenMASK

Types

To avoid using of multiple types, we recommend to use the OMK::Math::Transform type encapsulated in the OMK::Math::TransformType type to exchange position data between the OpenMASK objects. In the simulated objects the users have to use Wm4 math classes to compute the position, and in the visual object they have to use the Ogre classes.

Conversions

Ogre is used for the new visualisation, so we must convert Wm4 types use by OpenMASK in Ogre types. This is made by the convert methods. See Conversion::h.

The conversion functions are available for:

The following code shows an example of use for vector:
Wm4::Vector3f qWm1 = OMK::Vis::convert( Ogre::Vector3( 1.0f, 2.0f, 3.0f ) ) ;
Ogre::Vector3 qO1 = OMK::Vis::convert( Wm4::Vector3f( 1.0f, 2.0f, 3.0f ) ) ;

logo OpenMask

Documentation generated on Mon Jun 9 11:45:59 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007