|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.loaders.lw3d.TextfileParser
com.sun.j3d.loaders.lw3d.LwsFrame
class LwsFrame
This class is responsible for parsing the data in a Scene file associated with a single keyframe. This data includes the position, orientation, and scaling information, in addition to the frame number of that keyframe and some spline controls which are currently ignored.
Field Summary | |
---|---|
(package private) double |
bank
|
(package private) double |
bias
|
(package private) double |
continuity
|
(package private) double |
frameNumber
|
(package private) double |
heading
|
(package private) int |
linearValue
|
(package private) double |
pitch
|
(package private) double |
tension
|
(package private) double |
x
|
(package private) double |
xScale
|
(package private) double |
y
|
(package private) double |
yScale
|
(package private) double |
z
|
(package private) double |
zScale
|
Fields inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
---|
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD |
Constructor Summary | |
---|---|
LwsFrame(LwsFrame prevFrame,
LwsFrame nextFrame,
double ratio)
Construct new frame that's in-between two given frames Ratio gives the interpolation value for how far in-between the new frame should be (0.5 is half-way, etc) |
|
LwsFrame(LwsFrame prevFrame,
LwsFrame frame1,
LwsFrame frame2,
LwsFrame nextFrame,
double u,
double adj0,
double adj1)
Using hermite interpolation construct a new frame that's in-between two given frames. |
|
LwsFrame(java.io.StreamTokenizer st)
Constructor: parses and stores all data associated with a particular keyframe |
Method Summary | |
---|---|
(package private) double |
computeInterpolation(double[] value,
double dd0a,
double dd0b,
double ds1a,
double ds1b,
double adj0,
double adj1,
double h1,
double h2,
double h3,
double h4)
|
(package private) double |
getBank()
|
(package private) double |
getFrameNum()
|
(package private) double |
getHeading()
|
(package private) double |
getPitch()
|
(package private) Point3f |
getPosition()
|
(package private) Point3f |
getScale()
|
(package private) void |
printVals()
|
(package private) void |
setMatrix(Matrix4d mat)
Sets the given matrix to contain the position, orientation, and scale values for the keyframe |
(package private) void |
setRotationMatrix(Matrix4d mat)
Sets the given matrix to contain the orientation for this keyframe |
Methods inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
---|
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
double x
double y
double z
double heading
double pitch
double bank
double xScale
double yScale
double zScale
double frameNumber
int linearValue
double tension
double continuity
double bias
Constructor Detail |
---|
LwsFrame(java.io.StreamTokenizer st)
LwsFrame(LwsFrame prevFrame, LwsFrame nextFrame, double ratio)
LwsFrame(LwsFrame prevFrame, LwsFrame frame1, LwsFrame frame2, LwsFrame nextFrame, double u, double adj0, double adj1)
Method Detail |
---|
double computeInterpolation(double[] value, double dd0a, double dd0b, double ds1a, double ds1b, double adj0, double adj1, double h1, double h2, double h3, double h4)
double getHeading()
double getPitch()
double getBank()
void setMatrix(Matrix4d mat)
void setRotationMatrix(Matrix4d mat)
Point3f getPosition()
Point3f getScale()
double getFrameNum()
void printVals()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |