Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class edu.calpoly.smetzger.j3d.loaders.NFFFile

java.lang.Object
    |
    +----javax.media.j3d.SceneGraphObject
            |
            +----javax.media.j3d.Node
                    |
                    +----javax.media.j3d.Group
                            |
                            +----edu.calpoly.smetzger.j3d.loaders.Assembly
                                    |
                                    +----edu.calpoly.smetzger.j3d.loaders.NFFFile

public class NFFFile
extends Assembly
This class extends the Assembly class. It allows parses an ASCII NFF file and creates a Assembly object. due to a bug in the alpha 3 triangulator color has been disabled
 The ACSII NFF defines individual polygons and looks like:
 nff 
 version 3.0
 
  Square
  4
  0.0  0.0  0.0
  1.0  0.0  0.0
  1.0  0.0  1.0
  0.0  0.0  1.0
  1
  3 1 2 3 4 0xaaa both
 


Field Summary
static int  RESIZE
Flag for automatic resizing Assembly to fit in the viewport
static int  REVERSE
Flag for reversing the order of the vertices
static int  TRIANGULATE
Flag for triangulation used if their are more than three vertexes per facet
static int  VERBOSE
 
 
Fields inherited from class edu.calpoly.smetzger.j3d.loaders.Assembly
 REVERSE
 
Fields inherited from class javax.media.j3d.Group
 ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_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_PICK, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 

Constructor Summary
 NFFFile(java.lang.String fileName, int flags)
Instantiate the class with the filename with flags.
 NFFFile(java.lang.String fileName, int flags, float creaseAngle)
Instantiate the class with the filename and flags.
 

Methods inherited from class edu.calpoly.smetzger.j3d.loaders.Assembly
 getBoundingBox, getBoundingSphere, setPolygons, setRenderer
 
Methods inherited from class javax.media.j3d.Group
 addChild, cloneNode, duplicateNode, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, insertChild, moveTo, numChildren, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
 cloneNode, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
 clearCapability, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData
 
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
Flag for automatic resizing Assembly to fit in the viewport

TRIANGULATE

public static final int TRIANGULATE
Flag for triangulation used if their are more than three vertexes per facet

REVERSE

public static final int REVERSE
Flag for reversing the order of the vertices

VERBOSE

public static final int VERBOSE
Constructor Detail

NFFFile

public NFFFile(java.lang.String fileName,
               int flags) throws java.io.IOException, LoaderException
Instantiate the class with the filename with flags.
Parameters:
fileName - name of the input file
flags - |= together include REVERSE, RESIZE, and VERBOSE
Throws:
LoaderException - for syntactic errors

NFFFile

public NFFFile(java.lang.String fileName,
               int flags,
               float creaseAngle) throws java.io.IOException, LoaderException
Instantiate the class with the filename and flags.
Parameters:
fileName - name of the input file
flags - |= together include REVERSE, RESIZE, and VERBOSE
creaseAngle - minimum angle to share normals
Throws:
LoaderException - for syntactic errors

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS