| java.lang.Object com.sun.j3d.loaders.lw3d.TextfileParser com.sun.j3d.loaders.lw3d.LwsFrame
LwsFrame | class LwsFrame extends TextfileParser (Code) | | 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.
|
Method Summary | |
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 | getBank() | double | getFrameNum() | double | getHeading() | double | getPitch() | Point3f | getPosition() | Point3f | getScale() | void | printVals() | void | setMatrix(Matrix4d mat) | void | setRotationMatrix(Matrix4d mat) |
frameNumber | double frameNumber(Code) | | |
headingpitchbank | double headingpitchbank(Code) | | |
linearValue | int linearValue(Code) | | |
tensioncontinuitybias | double tensioncontinuitybias(Code) | | |
xScaleyScalezScale | double xScaleyScalezScale(Code) | | |
LwsFrame | LwsFrame(StreamTokenizer st)(Code) | | Constructor: parses and stores all data associated with a particular
keyframe
|
LwsFrame | LwsFrame(LwsFrame prevFrame, LwsFrame nextFrame, double ratio)(Code) | | 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(LwsFrame prevFrame, LwsFrame frame1, LwsFrame frame2, LwsFrame nextFrame, double u, double adj0, double adj1)(Code) | | Using hermite interpolation construct a new frame that's
in-between two given frames. We also need to be given a
frame before the first frame and a frame after the second
frame. The calling function will make sure that we get the
four appropriate frames.
Ratio gives the interpolation value for how far in-between
the new frame should be. (.5 is half-way, etc.)
|
computeInterpolation | double computeInterpolation(double[] value, double dd0a, double dd0b, double ds1a, double ds1b, double adj0, double adj1, double h1, double h2, double h3, double h4)(Code) | | |
getBank | double getBank()(Code) | | |
getFrameNum | double getFrameNum()(Code) | | |
getHeading | double getHeading()(Code) | | |
getPitch | double getPitch()(Code) | | |
getPosition | Point3f getPosition()(Code) | | |
getScale | Point3f getScale()(Code) | | |
printVals | void printVals()(Code) | | |
setMatrix | void setMatrix(Matrix4d mat)(Code) | | Sets the given matrix to contain the position, orientation, and
scale values for the keyframe
|
setRotationMatrix | void setRotationMatrix(Matrix4d mat)(Code) | | Sets the given matrix to contain the orientation for this keyframe
|
Methods inherited from com.sun.j3d.loaders.lw3d.TextfileParser | void checkString(StreamTokenizer st, String theString) throws ParsingErrorException(Code)(Java Doc) void checkType(StreamTokenizer st, int theType) throws ParsingErrorException(Code)(Java Doc) protected void debugOutput(int outputType, String theOutput)(Code)(Java Doc) protected void debugOutputLn(int outputType, String theOutput)(Code)(Java Doc) void getAndCheckString(StreamTokenizer st, String expectedValue) throws ParsingErrorException(Code)(Java Doc) String getName(StreamTokenizer st) throws ParsingErrorException(Code)(Java Doc) double getNumber(StreamTokenizer st) throws ParsingErrorException, NumberFormatException(Code)(Java Doc) String getString(StreamTokenizer st) throws ParsingErrorException(Code)(Java Doc) boolean isCurrentToken(StreamTokenizer st, String tokenString)(Code)(Java Doc) void skip(StreamTokenizer st, String tokenString, int skipVals) throws ParsingErrorException(Code)(Java Doc) void skipUntilString(StreamTokenizer st, String theString) throws ParsingErrorException(Code)(Java Doc)
|
|
|