Click or drag to resize
SbTrackerInfo Structure
Class for representing 3D tracker information.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.0.Release.36362e8575cf2e38cd7d69b9ff35aeb6cc000cdb
Syntax
public struct SbTrackerInfo

The SbTrackerInfo type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetOrientation Obsolete.
This method is marked obsolete. Use Orientation property instead.
Public methodGetOrientation(SbVec3f, Single)
Get orientation of tracker.
Public methodGetPosition3 Obsolete.
This method is marked obsolete. Use Position3 property instead.
Public methodGetRay
Convenience function to get ray for picking/intersecting.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetOrientation(Single)
Set orientation value from array of 4 floats defining the rotation quaternion.
Public methodSetOrientation(SbRotation) Obsolete.
This method is marked obsolete. Use Orientation property instead.
Public methodSetOrientation(SbVec3f, Single)
Set orientation value from axis and angle in radians.
Public methodSetOrientation(SbVec3f, Single)
Set orientation value from axis and angle in radians.
Public methodSetOrientation(Single, Single, Single)
Set orientation value from Euler angles in radians (using the trackd™ convention Z*X*Y).
Public methodSetOrientation(Single, Single, Single, Single)
Set orientation value from 4 floats defining the rotation quaternion.
Public methodSetPosition3 Obsolete.
This method is marked obsolete. Use Position3 property instead.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Properties
  NameDescription
Public propertyOrientation
Gets or sets the orientation of tracker as a standard Open Inventor rotation.
Public propertyPosition3
Gets or sets the Position of tracker in world coordinates.
Top
Remarks

An object that stores information about the state of a 3D tracker device, specifically position and orientation.

A "tracker" is any device whose position and orientation are dynamically tracked in 3D, typically for immersive VR applications. For example: a head tracker. A "controller" is an input device which typically has buttons and/or valuators (e.g. a joystick). Many controllers have an associated tracker. For example, the commonly used "wand" input device has three buttons, a two-axis joystick (two valuators), and an associated tracker.

The virtual method GetTrackerInfo can be used to determine if an event object has associated tracker information. Traditional 2D events like SoMouseButtonEvent and SoLocation2Event return . 3D events like SoTrackerEvent and SoControllerButtonEvent return their associated tracker information (SbTrackerInfo).

In addition to the usual methods for setting an orientation, this class provides a method that takes three Euler angles specified in radians. This allows orientation information returned by the widely used trackd™ API to be stored directly into an Open Inventor event object.

Tracker info is most often used by Open Inventor classes to specify a direction for picking or intersection with a dragger. This class provides the GetRay method to conveniently get an SbLine defining the direction the tracker is pointing.

See Also