Class arel.TrackingValues
TrackingValues Object The TrackingValues object contains all necessary information for the current state of the tracking system.
- Version 2.0
- Defined in: Parameters.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
arel.TrackingValues(_tx, _ty, _tz, _q1, _q2, _q3, _q4, _qual, _coordinateSystemID, _type, _state, _content, _coordinateSystemName)
|
Method Summary
Class Detail
arel.TrackingValues(_tx, _ty, _tz, _q1, _q2, _q3, _q4, _qual, _coordinateSystemID, _type, _state, _content, _coordinateSystemName)
Author: metaio GmbH.
- Parameters:
- {float} _tx
- Translation along x
- {float} _ty
- Translation along y
- {float} _tz
- Translation along z
- {float} _q1
- Quaternion value 1
- {float} _q2
- Quaternion value 2
- {float} _q3
- Quaternion value 3
- {float} _q4
- Quaternion value 4
- {float} _qual
- Quality value of the tracking
- {int} _coordinateSystemID
- ID of the coordinateSystem being tracked
- {String} _type
- -> tracking type -> see arel.Tracking
- {String} _state
- either arel.Tracking.STATE_TRACKING, arel.Tracking.STATE_EXTRAPOLATED or arel.Tracking.STATE_NOTTRACKING
- {String | arel.LLA} _content
- textual content in a tracking reference, used for BARCODE and QRCODE
- {String} _coordinateSystemName
- Name of the coordinate system
Method Detail
-
{String} getContent()Get the content of the detected reference. This is only valid for type arel.Tracking.BARCODE_QR or arel.Tracking.LLA_MARKER
- Returns:
- {String} the content of the barcode, QR code or lla marker
-
{int} getCoordinateSystemID()Get the ID of the coordinateSystem currently tracked
- Returns:
- {int} ID of the coordinateSystem
-
{String} getCoordinateSystemName()Get the Name of the coordinateSystem
- Returns:
- {String} Name of the coordinateSystem
-
{float} getQuality()Get the quality value
- Returns:
- {float} Quality value of the tracking
-
{arel.Rotation} getRotation()Get rotation value
- Returns:
- {arel.Rotation} Rotation value
-
{String} getState()Get the state of the tracking (arel.Tracking.STATE_TRACKING or arel.Tracking.STATE_NOTTRACKING)
- Returns:
- {String} is the tracking found (arel.Tracking.STATE_TRACKING) or lost (arel.Tracking.STATE_NOTTRACKING)
-
{arel.Vector3D} getTranslation()Get translation value
- Returns:
- {arel.Vector3D} Translation parameter
-
{String} getType()Get the type of the tracking
- Returns:
- {String} the tracking type
- See:
- arel.Tracking
-
setRotation(_rot)Set rotation value
- Parameters:
- {arel.Rotation} _rot
- arel.Rotation
-
setTranslation(_vec3D)Set translation value
- Parameters:
- {arel.Vector3D} _vec3D
- Translation Parameter