class LwsFrame extends TextfileParser
| Modifier and Type | Field and Description |
|---|---|
(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 |
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
(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
|
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilStringdouble 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
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)
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()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.