com.sun.j3d.loaders.objectfile
Class ObjectFileMaterials
java.lang.Object
com.sun.j3d.loaders.objectfile.ObjectFileMaterials
- All Implemented Interfaces:
- java.awt.image.ImageObserver
class ObjectFileMaterials
- extends java.lang.Object
- implements java.awt.image.ImageObserver
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static final int DEBUG
- See Also:
- Constant Field Values
curName
private java.lang.String curName
cur
private ObjectFileMaterials.ObjectFileMaterial cur
materials
private java.util.HashMap materials
basePath
private java.lang.String basePath
fromUrl
private boolean fromUrl
ObjectFileMaterials
ObjectFileMaterials()
throws ParsingErrorException
- Throws:
ParsingErrorException
assignMaterial
void assignMaterial(java.lang.String matName,
Shape3D shape)
readName
private void readName(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readAmbient
private void readAmbient(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readDiffuse
private void readDiffuse(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readSpecular
private void readSpecular(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readIllum
private void readIllum(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readTransparency
private void readTransparency(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readShininess
private void readShininess(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readMapKd
public void readMapKd(ObjectFileParser st)
readFile
private void readFile(ObjectFileParser st)
throws ParsingErrorException
- Throws:
ParsingErrorException
readMaterialFile
void readMaterialFile(boolean fromUrl,
java.lang.String basePath,
java.lang.String fileName)
throws ParsingErrorException
- Throws:
ParsingErrorException
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
- Implement the ImageObserver interface. Needed to load jpeg and gif
files using the Toolkit.
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.