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
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...
void setOrientation(float q0, float q1, float q2, float q3)
Set orientation value from 4 floats defining the rotation quaternion.
const SbVec3f & getPosition3() const
Get position of tracker in world coordinates.
void setPosition3(const SbVec3f &p)
Set position of tracker in world coordinates.
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).
Base class for all events.
virtual const SbTrackerInfo * getTrackerInfo() const
Gets whether an event object has associated tracker information.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D tracker event...
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.