Sweet Home 3D 3.4

com.eteks.sweethome3d.j3d
Class DAELoader

java.lang.Object
  extended by com.sun.j3d.loaders.LoaderBase
      extended by com.eteks.sweethome3d.j3d.DAELoader
All Implemented Interfaces:
Loader

public class DAELoader
extends LoaderBase
implements Loader

A loader for DAE Collada 1.4.1 format as specified by http://www.khronos.org/files/collada_spec_1_4.pdf. All texture coordinates are considered to belong to the same set (for example UVSET0).
Note: this class is compatible with Java 3D 1.3.

Author:
Emmanuel Puybaret, apptaro (bug fixes)

Field Summary
 
Fields inherited from class com.sun.j3d.loaders.LoaderBase
basePath, baseUrl, loadFlags
 
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
DAELoader()
           
 
Method Summary
 Scene load(java.io.Reader reader)
          Returns the scene described in the given DAE file stream.
 Scene load(java.lang.String file)
          Returns the scene described in the given DAE file.
 Scene load(java.net.URL url)
          Returns the scene described in the given DAE file url.
 
Methods inherited from class com.sun.j3d.loaders.LoaderBase
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.j3d.loaders.Loader
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags
 

Constructor Detail

DAELoader

public DAELoader()
Method Detail

load

public Scene load(java.lang.String file)
           throws java.io.FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Returns the scene described in the given DAE file.

Specified by:
load in interface Loader
Throws:
java.io.FileNotFoundException
IncorrectFormatException
ParsingErrorException

load

public Scene load(java.net.URL url)
           throws java.io.FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Returns the scene described in the given DAE file url.

Specified by:
load in interface Loader
Throws:
java.io.FileNotFoundException
IncorrectFormatException
ParsingErrorException

load

public Scene load(java.io.Reader reader)
           throws java.io.FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Returns the scene described in the given DAE file stream.

Specified by:
load in interface Loader
Throws:
java.io.FileNotFoundException
IncorrectFormatException
ParsingErrorException

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License