public class SoTracker extends SoNode
SoTracker
class is used in ScaleViz configuration file to set various parameters for an immersive, tracked environment. Some of these parameters set objects within the scene graph. The camera position is set initially to defaultCameraPosition
. A transform node is inserted in the scene graph after the camera node. This transform node contains the defaultObjectPosition
as well as the scaling (computed with) others set tracker information (trackd shared memory keys, head/wand ids...).
File format/default:
Tracker {
defaultCameraPosition | -1,-1,-1 |
defaultObjectPosition | -1,-1,-1 |
defaultObjectBoxMaxDim | -1 |
unitScaleFactor | 1.0 |
server | "0:0" |
interEyeDistance | 0.0 |
wandTrackerId | 0 |
headTrackerId | 1 |
wandFile | "wand.iv" |
calibrate | -1.0, -1.0, -1.0, -1.0 |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoMFVec4f |
calibrate
Optional calibration matrix that converts from actual tracker coordinates to world coordinates.
|
SoSFVec3f |
defaultCameraPosition
Initial camera position.
|
SoSFFloat |
defaultObjectBoxMaxDim
Radius of a bounding sphere.
|
SoSFVec3f |
defaultObjectPosition
Initial scene position.
|
SoSFInt32 |
headTrackerId
ID of the trackd sensor which should be used to control the head/camera.
|
SoSFFloat |
interEyeDistance
Inter-eye distance with respect to the system coordinates.
|
SoSFString |
server
Specifies a string used to initialize the connection to the tracking system.
|
SoSFFloat |
unitScaleFactor
A factor that will be applied to all position coordinates retrieved from the tracking system.
|
SoSFFilePathString |
wandFile
Name of a geometry file that the MultiPipe viewer uses for the wand geometry.
|
SoSFInt32 |
wandTrackerId
ID of the trackd sensor which should be used to control the wand.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTracker()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoControllerReader |
getControllerReader()
Gets associated controller reader.
|
SoTrackerReader |
getTrackerReader()
Gets associated tracker reader.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFVec3f defaultCameraPosition
public final SoSFVec3f defaultObjectPosition
public final SoSFFloat defaultObjectBoxMaxDim
public final SoSFFloat unitScaleFactor
Example: The tracking system is in feet and it makes sense for Open Inventor to have inches; the unitScaleFactor should be 12.0. The default value is 1.0.
public final SoSFString server
"<controller key> : <tracker key>"
The shared memory keys are defined in the trackd.conf file.
public final SoSFFloat interEyeDistance
public final SoSFInt32 wandTrackerId
public final SoSFInt32 headTrackerId
public final SoSFFilePathString wandFile
public final SoMFVec4f calibrate
public SoTrackerReader getTrackerReader()
public SoControllerReader getControllerReader()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com