ViMeT.DefApliMedLoader
Class ObjectFile
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Shape3D
ViMeT.DefApliMedLoader.ObjectFile
- All Implemented Interfaces:
- com.sun.j3d.loaders.Loader
- public class ObjectFile
- extends javax.media.j3d.Shape3D
- implements com.sun.j3d.loaders.Loader
Fields inherited from class javax.media.j3d.Shape3D |
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE |
Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Fields inherited from interface com.sun.j3d.loaders.Loader |
LOAD_ALL, LOAD_BACKGROUND_NODES, LOAD_BEHAVIOR_NODES, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_VIEW_GROUPS |
Methods inherited from class javax.media.j3d.Shape3D |
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry |
Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESIZE
public static final int RESIZE
- See Also:
- Constant Field Values
TRIANGULATE
public static final int TRIANGULATE
- See Also:
- Constant Field Values
REVERSE
public static final int REVERSE
- See Also:
- Constant Field Values
STRIPIFY
public static final int STRIPIFY
- See Also:
- Constant Field Values
ObjectFile
public ObjectFile(int flags,
float radians)
ObjectFile
public ObjectFile(int flags)
ObjectFile
public ObjectFile()
load
public com.sun.j3d.loaders.Scene load(java.lang.String filename)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
- Specified by:
load
in interface com.sun.j3d.loaders.Loader
- Throws:
java.io.FileNotFoundException
com.sun.j3d.loaders.IncorrectFormatException
com.sun.j3d.loaders.ParsingErrorException
load
public com.sun.j3d.loaders.Scene load(java.net.URL url)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
- Specified by:
load
in interface com.sun.j3d.loaders.Loader
- Throws:
java.io.FileNotFoundException
com.sun.j3d.loaders.IncorrectFormatException
com.sun.j3d.loaders.ParsingErrorException
atualiza
public void atualiza(javax.vecmath.Point3f[] vertices)
material
public void material(char codigo)
setTextura
public void setTextura(java.lang.String nome_textura)
setWireframe
public void setWireframe()
load
public com.sun.j3d.loaders.Scene load(java.io.Reader reader)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
- Specified by:
load
in interface com.sun.j3d.loaders.Loader
- Throws:
java.io.FileNotFoundException
com.sun.j3d.loaders.IncorrectFormatException
com.sun.j3d.loaders.ParsingErrorException
setBaseUrl
public void setBaseUrl(java.net.URL url)
- Specified by:
setBaseUrl
in interface com.sun.j3d.loaders.Loader
getBaseUrl
public java.net.URL getBaseUrl()
- Specified by:
getBaseUrl
in interface com.sun.j3d.loaders.Loader
setBasePath
public void setBasePath(java.lang.String pathName)
- Specified by:
setBasePath
in interface com.sun.j3d.loaders.Loader
getBasePath
public java.lang.String getBasePath()
- Specified by:
getBasePath
in interface com.sun.j3d.loaders.Loader
setFlags
public void setFlags(int flags)
- Specified by:
setFlags
in interface com.sun.j3d.loaders.Loader
getFlags
public int getFlags()
- Specified by:
getFlags
in interface com.sun.j3d.loaders.Loader
retornaVertices
public javax.vecmath.Point3f[] retornaVertices()
retornaBackup
public javax.vecmath.Point3f[] retornaBackup()
retornaFaces
public int[] retornaFaces()
toBufferedImage
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
hasAlpha
public static boolean hasAlpha(java.awt.Image image)