class LwsObject extends TextfileParser implements LwsPrimitive
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
fileName |
(package private) int |
fileType |
(package private) boolean |
hasPivot |
(package private) LwsMotion |
motion |
(package private) java.util.Vector |
objectBehavior |
(package private) TransformGroup |
objectTransform |
(package private) java.lang.String |
objName |
(package private) int |
parent |
(package private) TransformGroup |
pivotTransGroup |
(package private) java.lang.String |
protocol |
(package private) java.util.Vector |
shapeList |
(package private) java.net.URL |
urlName |
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD| Constructor and Description |
|---|
LwsObject(java.io.StreamTokenizer st,
boolean loadObject,
int firstFrame,
int totalFrames,
float totalTime,
Lw3dLoader loader,
int debugVals)
Constructor: parses object section of this scene file and
creates all appropriate data structures to hold the information
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addChild(LwsPrimitive child)
Adds the given child to the transform of this node (its parent).
|
(package private) void |
createJava3dObject(LwsObject cloneObject,
int loadBehaviors)
Creates Java3d objects from the data stored for this object.
|
java.util.Vector |
getObjectBehaviors()
Return the Group that holds this object's behaviors.
|
TransformGroup |
getObjectNode()
Return the TransformGroup that holds this object file
|
(package private) int |
getParent()
Returns parent object
|
(package private) java.lang.String |
getQualifiedFilename(java.lang.String pathname,
java.lang.String filename)
This method takes the given path and filename and checks whether
that file exists.
|
(package private) java.net.URL |
getQualifiedURL(java.lang.String path,
java.lang.String file) |
(package private) java.util.Vector |
getShapeList()
Return list of Shape3D objects for this object file.
|
(package private) void |
printVals()
Utiliy function to print some of the object values.
|
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilStringjava.lang.String fileName
java.lang.String objName
LwsMotion motion
int parent
TransformGroup objectTransform
java.util.Vector objectBehavior
java.util.Vector shapeList
boolean hasPivot
TransformGroup pivotTransGroup
java.net.URL urlName
java.lang.String protocol
int fileType
LwsObject(java.io.StreamTokenizer st,
boolean loadObject,
int firstFrame,
int totalFrames,
float totalTime,
Lw3dLoader loader,
int debugVals)
throws java.io.FileNotFoundException,
ParsingErrorException
st - StreamTokenizer for scene fileloadObject - boolean specifying that object is not a lw3d Null
objectfirstFrame - int holding the first frame of the scene's animationtotalFrames - int holding the total number of frames in the scenetotalTime - float holding the total time of the animationloader - Lw3dLoader loader object that was created by userdebugVals - in holding current debug flagsjava.io.FileNotFoundExceptionParsingErrorExceptionjava.lang.String getQualifiedFilename(java.lang.String pathname,
java.lang.String filename)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionjava.net.URL getQualifiedURL(java.lang.String path,
java.lang.String file)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionint getParent()
void addChild(LwsPrimitive child)
void createJava3dObject(LwsObject cloneObject, int loadBehaviors) throws IncorrectFormatException, ParsingErrorException, java.io.FileNotFoundException
IncorrectFormatExceptionParsingErrorExceptionjava.io.FileNotFoundExceptionjava.util.Vector getShapeList()
public TransformGroup getObjectNode()
getObjectNode in interface LwsPrimitivepublic java.util.Vector getObjectBehaviors()
getObjectBehaviors in interface LwsPrimitivevoid printVals()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.