|
|||||||||
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.LwsCamera
class LwsCamera
This class parses the data in a Scene file related to the camera and creates Java3D TransformGroup that holds the data for positioning and orienting the view according to the camera specifications.
Field Summary | |
---|---|
(package private) java.lang.String |
fileName
|
(package private) LwsMotion |
motion
|
(package private) java.util.Vector |
objectBehavior
|
(package private) TransformGroup |
objectTransform
|
(package private) java.lang.String |
objName
|
(package private) int |
parent
|
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 | |
---|---|
LwsCamera(java.io.StreamTokenizer st,
int firstFrame,
int totalFrames,
float totalTime,
int debugVals)
Constructor: parses camera info and creates LwsMotion object for keyframe data |
Method Summary | |
---|---|
(package private) void |
createJava3dObject(int loadBehaviors)
Creates Java3D items from the camera data. |
java.util.Vector |
getObjectBehaviors()
Returns animation behaviors for camera |
TransformGroup |
getObjectNode()
Returns TransformGroup of camera |
(package private) int |
getParent()
Returns parent of the camera object |
(package private) void |
printVals()
This is a debuggin utility, not currently activated. |
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 |
---|
java.lang.String fileName
java.lang.String objName
LwsMotion motion
int parent
TransformGroup objectTransform
java.util.Vector objectBehavior
Constructor Detail |
---|
LwsCamera(java.io.StreamTokenizer st, int firstFrame, int totalFrames, float totalTime, int debugVals) throws ParsingErrorException
ParsingErrorException
Method Detail |
---|
int getParent()
void createJava3dObject(int loadBehaviors)
public TransformGroup getObjectNode()
getObjectNode
in interface LwsPrimitive
public java.util.Vector getObjectBehaviors()
getObjectBehaviors
in interface LwsPrimitive
void printVals()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |