class J3dLwoParser extends LwoParser
| Modifier and Type | Field and Description |
|---|---|
(package private) Color3f |
color |
(package private) Color3f |
diffuseColor |
(package private) Color3f |
emissiveColor |
(package private) float[] |
normalCoordsArray |
(package private) int[] |
normalIndicesArray |
(package private) Shape3D |
objectShape |
(package private) java.util.Vector |
objectShapeList |
(package private) float |
shininess |
(package private) Color3f |
specularColor |
blue, coordsArray, currLength, diffuse, facetIndicesArray, facetSizesArray, gloss, green, luminosity, red, shapeList, specular, surfaceList, surfNameList, theReader, transparencydebugPrinter, EXCEPTION, LINE_TRACE, MISC, NONE, TIME, TRACE, VALUES, WARNING| Constructor and Description |
|---|
J3dLwoParser(java.lang.String fileName,
int debugVals)
Constructor: Calls LwoObject to parse file and create data structures
|
J3dLwoParser(java.net.URL url,
int debugVals) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
calculateCylindricalTextureCoords(int textureAxis,
Vector3f textureSize,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
See the comments in calculateTextureCoordinates
|
(package private) void |
calculatePlanarTextureCoords(int textureAxis,
Vector3f textureSize,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
See the comments in calculateTextureCoordinates
|
(package private) void |
calculateSphericalTextureCoords(int textureAxis,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
See the comments in calculateTextureCoordinates
|
(package private) void |
calculateTextureCoords(LwoTexture texture,
float[] verts,
int[] indices,
float[] textureCoords,
int[] textureIndices)
Calculate texture coordinates for the geometry given the texture
map properties specified in the LwoTexture object
|
(package private) void |
createJava3dGeometry()
Turns LwoObject's data structures (created from the binary geometry
file) into Java3d objects
|
(package private) Shape3D |
getJava3dShape() |
(package private) java.util.Vector |
getJava3dShapeList() |
(package private) void |
getSurf(int length)
Creates new LwoSurface object that parses file and gets all
surface parameters for a particular surface
|
(package private) double |
xyztoh(float x,
float y,
float z)
See the comments in calculateTextureCoordinates
|
(package private) double |
xyztop(float x,
float y,
float z)
See the comments in calculateTextureCoordinates
|
getAppropriateShape, getPnts, getPols, getSrfs, main, parseFile, skipDetailPolygonsdebugOutput, debugOutputLnfloat[] normalCoordsArray
int[] normalIndicesArray
Shape3D objectShape
Color3f color
Color3f diffuseColor
Color3f specularColor
Color3f emissiveColor
float shininess
java.util.Vector objectShapeList
J3dLwoParser(java.lang.String fileName,
int debugVals)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionJ3dLwoParser(java.net.URL url,
int debugVals)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionvoid getSurf(int length)
throws java.io.FileNotFoundException
LwoParservoid createJava3dGeometry()
throws IncorrectFormatException
IncorrectFormatExceptionvoid calculateTextureCoords(LwoTexture texture, float[] verts, int[] indices, float[] textureCoords, int[] textureIndices)
double xyztoh(float x,
float y,
float z)
double xyztop(float x,
float y,
float z)
void calculateSphericalTextureCoords(int textureAxis,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
void calculateCylindricalTextureCoords(int textureAxis,
Vector3f textureSize,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
void calculatePlanarTextureCoords(int textureAxis,
Vector3f textureSize,
Vector3f textureCenter,
float[] textureCoords,
int[] textureIndices,
float[] verts,
int[] indices)
Shape3D getJava3dShape()
java.util.Vector getJava3dShapeList()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.