| java.lang.Object com.sun.j3d.loaders.lw3d.ParserObject com.sun.j3d.loaders.lw3d.LwoParser com.sun.j3d.loaders.lw3d.J3dLwoParser
J3dLwoParser | class J3dLwoParser extends LwoParser (Code) | | This class is responsible for turning Lightwave geometry data into
Java3D geometry. It is a subclass of LwoObject and calls that
superclass when first instantiated to parse the binary file and turn it
into intermediate data structures. J3dLwoParser then goes through
those data structures and turns them into Java3D objects. For each
ShapeHolder object created by the parent class, this class retrieves
the geometry data and associated surface data, creates the
appropriate Geometry object (usually IndexedTriangleFanArray,
unless the object is points or lines), including calculating normals for
the polygons and sets up the Appearance according to the surface
parameters (including calculating texture coordinates if necessary).
|
Method Summary | |
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) | void | calculateSphericalTextureCoords(int textureAxis, Vector3f textureCenter, float textureCoords, int textureIndices, float verts, int indices) | void | calculateTextureCoords(LwoTexture texture, float verts, int indices, float[] textureCoords, int[] textureIndices) | void | createJava3dGeometry() | Shape3D | getJava3dShape() | Vector | getJava3dShapeList() | void | getSurf(int length) | double | xyztoh(float x, float y, float z) | double | xyztop(float x, float y, float z) |
colordiffuseColorspecularColoremissiveColor | Color3f colordiffuseColorspecularColoremissiveColor(Code) | | |
normalCoordsArray | float normalCoordsArray(Code) | | |
normalIndicesArray | int normalIndicesArray(Code) | | |
shininess | float shininess(Code) | | |
calculateCylindricalTextureCoords | void calculateCylindricalTextureCoords(int textureAxis, Vector3f textureSize, Vector3f textureCenter, float textureCoords, int textureIndices, float verts, int indices)(Code) | | See the comments in calculateTextureCoordinates
|
calculatePlanarTextureCoords | void calculatePlanarTextureCoords(int textureAxis, Vector3f textureSize, Vector3f textureCenter, float textureCoords, int textureIndices, float verts, int indices)(Code) | | See the comments in calculateTextureCoordinates
|
calculateSphericalTextureCoords | void calculateSphericalTextureCoords(int textureAxis, Vector3f textureCenter, float textureCoords, int textureIndices, float verts, int indices)(Code) | | See the comments in calculateTextureCoordinates
|
calculateTextureCoords | void calculateTextureCoords(LwoTexture texture, float verts, int indices, float[] textureCoords, int[] textureIndices)(Code) | | Calculate texture coordinates for the geometry given the texture
map properties specified in the LwoTexture object
|
createJava3dGeometry | void createJava3dGeometry() throws IncorrectFormatException(Code) | | Turns LwoObject's data structures (created from the binary geometry
file) into Java3d objects
|
xyztoh | double xyztoh(float x, float y, float z)(Code) | | See the comments in calculateTextureCoordinates
|
xyztop | double xyztop(float x, float y, float z)(Code) | | See the comments in calculateTextureCoordinates
|
|
|