Jazz3D API


com.sygem.jazz3d3.vrml
Class LoaderVRML

java.lang.Object
  |
  +--com.sygem.jazz3d3.loader.Loader
        |
        +--com.sygem.jazz3d3.vrml.LoaderVRML

public class LoaderVRML
extends Loader

LoaderVRML - VRML parser class.

Here is a brief list of what is currently supported by our VRML implementation:

Nodes:

No Interpolators or Sensors have been implemented yet. What you get is enough to display the shape of the object.

Version:
3.0a
Author:
SyGem Software

Constructor Summary
LoaderVRML()
          Create LoaderVRML for specific input stream to read from.
 
Method Summary
 void load(java.lang.String filename, Model3d obj)
          Begins the loading process.
 void setFontPath(java.lang.String fp)
          Sets the path to the Jazz3D fonts (used for the FontStyle node)
 void setPrimitiveGranularity(int gran)
          Sets the number of subsections used when creating primitives
 void setTextureSizes(int ts)
          Sets the default size to load textures as.
 void setTextureSizes(int tsx, int tsy)
          Sets the x and y sizes used when loading textures
 
Methods inherited from class com.sygem.jazz3d3.loader.Loader
closeFile, getDecompressor, getLine, getLineAsString, getParent, setDecompressor, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoaderVRML

public LoaderVRML()
Create LoaderVRML for specific input stream to read from.
Method Detail

setFontPath

public void setFontPath(java.lang.String fp)
Sets the path to the Jazz3D fonts (used for the FontStyle node)

setTextureSizes

public void setTextureSizes(int ts)
Sets the default size to load textures as.
See Also:
Texture

setTextureSizes

public void setTextureSizes(int tsx,
                            int tsy)
Sets the x and y sizes used when loading textures
See Also:
Texture

setPrimitiveGranularity

public void setPrimitiveGranularity(int gran)
Sets the number of subsections used when creating primitives

load

public final void load(java.lang.String filename,
                       Model3d obj)
Begins the loading process.
Overrides:
load in class Loader

©2001 SyGem Software