24#ifndef _SO_TRACKER_EVENT_
25#define _SO_TRACKER_EVENT_
27#include <Inventor/events/SoSubEvent.h>
28#include <Inventor/events/SbTrackerInfo.h>
78#ifndef HIDDEN_FROM_DOC
86 { m_trackerInfo.setPosition3( p ); }
92 {
return m_trackerInfo.getPosition3(); }
99 { m_trackerInfo.setOrientation( x, y, z ); }
105 { m_trackerInfo.setOrientation( orientation ); }
111 { m_trackerInfo.setOrientation( axis, angle ); }
118 {
return m_trackerInfo.getOrientation(); }
124 {
return m_trackerInfo.getRay(); }
137 {
return &m_trackerInfo; }
143 {
return m_trackerInfo; }
146 static void initClass();
147 static void exitClass();
Class for representing a rotation.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for repres...
virtual const SbTrackerInfo * getTrackerInfo() const
Gets whether an event object has associated tracker information.
const SbLine getRay() const
Get a ray for picking/intersecting.
SoTrackerEvent()
Constructor.
virtual const SbTrackerInfo & trackerInfo() const
Returns the SbTrackerInfo object.
const SbRotation & getOrientation() const
Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).
void setOrientation(SbRotation orientation)
Set orientation value of associated tracker from an SbRotation.
void setOrientation(float x, float y, float z)
Set orientation value of associated tracker from Euler angles in radians (using the trackd convention...
virtual const SbTrackerInfo * getTrackerInfo() const
Returns the SbTrackerInfo object.
void setPosition3(const SbVec3f &p)
Set position of associated tracker in world coordinates.
void setOrientation(const SbVec3f &axis, float angle)
Set orientation value of associated tracker from axis and angle in radians.
const SbVec3f & getPosition3() const
Get position of associated tracker in world coordinates.