24#ifndef _SB_TRACKER_INFO_
25#define _SB_TRACKER_INFO_
107 { m_orientation.
getValue(axis, angle); }
113 { m_orientation.
setValue( q0, q1, q2, q3 ); }
125 { m_orientation.
setValue( axis, angle ); }
131 { m_orientation = orientation; }
147 void setData(
void *appData ) { m_data = appData; }
152 const void *
getData()
const {
return m_data; }
Class for representing a rotation.
SbRotation & setValue(const float q[4])
Sets value of rotation from array of 4 components of a quaternion.
const float * getValue() const
Returns pointer to array of 4 components defining quaternion.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for repres...
void setOrientation(float q0, float q1, float q2, float q3)
Set orientation value from 4 floats defining the rotation quaternion.
SbTrackerInfo()
Constructor.
void setOrientation(const SbVec3f &axis, float angle)
Set orientation value from axis and angle in radians.
~SbTrackerInfo()
Destructor.
void setOrientation(SbRotation orientation)
Set orientation value from an SbRotation.
const SbVec3f & getPosition3() const
Get position of tracker in world coordinates.
void setOrientation(const float q[4])
Set orientation value from array of 4 floats defining the rotation quaternion.
void setPosition3(const SbVec3f &p)
Set position of tracker in world coordinates.
const void * getData() const
Get application data.
void setOrientation(float xangle, float yangle, float zangle)
Set orientation value from Euler angles in radians (using the trackd convention Z*X*Y).
const SbLine getRay() const
Convenience function to get ray for picking/intersecting.
const SbRotation & getOrientation() const
Get orientation of tracker as a standard Open Inventor rotation (quaternion).
void setData(void *appData)
Set application data.
void getOrientation(SbVec3f &axis, float &angle) const
Get orientation of tracker.