ViMeT.DefApliMedLoader
Class ObjectFile

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Shape3D
                  extended byViMeT.DefApliMedLoader.ObjectFile
All Implemented Interfaces:
com.sun.j3d.loaders.Loader

public class ObjectFile
extends javax.media.j3d.Shape3D
implements com.sun.j3d.loaders.Loader


Field Summary
static int RESIZE
           
static int REVERSE
           
static int STRIPIFY
           
static int TRIANGULATE
           
 
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
 
Constructor Summary
ObjectFile()
           
ObjectFile(int flags)
           
ObjectFile(int flags, float radians)
           
 
Method Summary
 void atualiza(javax.vecmath.Point3f[] vertices)
           
 java.lang.String getBasePath()
           
 java.net.URL getBaseUrl()
           
 int getFlags()
           
static boolean hasAlpha(java.awt.Image image)
           
 com.sun.j3d.loaders.Scene load(java.io.Reader reader)
           
 com.sun.j3d.loaders.Scene load(java.lang.String filename)
           
 com.sun.j3d.loaders.Scene load(java.net.URL url)
           
 void material(char codigo)
           
 javax.vecmath.Point3f[] retornaBackup()
           
 int[] retornaFaces()
           
 javax.vecmath.Point3f[] retornaVertices()
           
 void setBasePath(java.lang.String pathName)
           
 void setBaseUrl(java.net.URL url)
           
 void setFlags(int flags)
           
 void setTextura(java.lang.String nome_textura)
           
 void setWireframe()
           
static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
           
 
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
 

Field Detail

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
Constructor Detail

ObjectFile

public ObjectFile(int flags,
                  float radians)

ObjectFile

public ObjectFile(int flags)

ObjectFile

public ObjectFile()
Method Detail

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)