j3d.org Code

org.j3d.loaders.c3d
Class C3DTrajectoryData

java.lang.Object
  extended by org.j3d.loaders.c3d.C3DTrajectoryData

public class C3DTrajectoryData
extends java.lang.Object

The representation of a single trajectory.

A trajectory may contain coordinate and/or analog data samples. Coordinates are expressed in 3D space in X,Y,Z orientation. All values are placed as their real floating point representations. If the underlying file had values in integer format, scaling will be performed before storing in this array.

The definition of the file format can be found at: http://www.c3d.org/

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 short[] cameraMasks
          The bit mask of camera IDs that contributed to each frame.
 float[] coordinates
          3D coordinate data for this frame.
 java.lang.String description
          The description string associated with this data
 java.lang.String label
          The name or label associated with this trajectory data
 int numFrames
          The number of valid frames of coordinate data
 float[] residuals
          Accuracy information about the coordinates made each frame.
 
Constructor Summary
C3DTrajectoryData(java.lang.String label, java.lang.String description, int numFrames)
          Construct a new data object representing a specific trajectory
 
Method Summary
 java.lang.String toString()
          Generate a string representation of this header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public final java.lang.String label
The name or label associated with this trajectory data


description

public final java.lang.String description
The description string associated with this data


coordinates

public float[] coordinates
3D coordinate data for this frame. Values are interleaved as [x1,y1,z1,x2,y2,z2....].


numFrames

public int numFrames
The number of valid frames of coordinate data


cameraMasks

public short[] cameraMasks
The bit mask of camera IDs that contributed to each frame. Using a short rather than a byte defined by the C3D spec as there are proposals to support more than 7 cameras proposed by Vicon.


residuals

public float[] residuals
Accuracy information about the coordinates made each frame.

Constructor Detail

C3DTrajectoryData

public C3DTrajectoryData(java.lang.String label,
                         java.lang.String description,
                         int numFrames)
Construct a new data object representing a specific trajectory

Parameters:
label - The name or label of this data
description - A description from the parameter information
numFrames - The number of valid frames of data to process
Method Detail

toString

public java.lang.String toString()
Generate a string representation of this header.

Overrides:
toString in class java.lang.Object
Returns:
Information about the header

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org