Defines immersive viewing parameters in a MultiPipe configuration file. More...
#include <ScaleViz/nodes/SoTracker.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoTracker () | |
SoTrackerReader * | getTrackerReader () |
SoControllerReader * | getControllerReader () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec3f | defaultCameraPosition |
SoSFVec3f | defaultObjectPosition |
SoSFFloat | defaultObjectBoxMaxDim |
SoSFFloat | unitScaleFactor |
SoSFString | server |
SoSFFloat | interEyeDistance |
SoSFInt32 | wandTrackerId |
SoSFInt32 | headTrackerId |
SoSFFilePathString | wandFile |
SoMFVec4f | calibrate |
The 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...).
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 |
SoTracker::SoTracker | ( | ) |
Constructor.
static SoType SoTracker::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
SoControllerReader* SoTracker::getControllerReader | ( | ) |
Gets associated controller reader.
SoTrackerReader* SoTracker::getTrackerReader | ( | ) |
Gets associated tracker reader.
virtual SoType SoTracker::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Optional calibration matrix that converts from actual tracker coordinates to world coordinates.
The default values (-1., -1., -1., -1.) indicate that the matrix has not been defined. If actually set, the field must contain a 4x4 matrix (as four Vec4f values).
Initial camera position.
This is useful if head tracking will not be used.
Radius of a bounding sphere.
The scene is scaled to fit initially within the sphere. In a CAVE environment, it makes sense to choose a radius equal to half the width of the front screen.
Initial scene position.
In a CAVE environment, it makes sense to set the default postion to the center of the front wall.
ID of the trackd sensor which should be used to control the head/camera.
The default value is 1. If set to -1, headtracking is disabled and the defaultCameraPosition is used to set the camera node.
Inter-eye distance with respect to the system coordinates.
In an immersive environment, this value should be around 0.65 cm or equivalent (which is the actual average inter-eye distance for humans) depending on the units used in the Open Inventor world.
Specifies a string used to initialize the connection to the tracking system.
In order to connect to a VRCO trackd daemon, the string should contain the shared memory key for the trackd controller data, and the shared memory key for the trackd tracker data. The format of the string is:
"<controller key> : <tracker key>"
The shared memory keys are defined in the trackd.conf file.
A factor that will be applied to all position coordinates retrieved from the tracking system.
Its value depends on the units the tracking system is using, and on the units that are appropriate in the Open Inventor world.
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.
Name of a geometry file that the MultiPipe viewer uses for the wand geometry.
The geometry should be centered at the origin, and should point towards the -z axis.
ID of the trackd sensor which should be used to control the wand.
Default is 0.