org.jagatoo.loaders.models.collada.datastructs.visualscenes
Class GeometryInstance

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.visualscenes.AbstractInstance
      extended by org.jagatoo.loaders.models.collada.datastructs.visualscenes.GeometryInstance

public class GeometryInstance
extends AbstractInstance

A node containing an instance of a geometry. Note that the COLLADA file format is more like a scenegraph than a list of nodes. But I'm applying the YAGNI here : I use files from Blender only. If we ever need more, then we'll change it.


Constructor Summary
GeometryInstance(AssetFolder file, java.lang.String id, java.lang.String name, java.lang.String geometryUrl, java.lang.String materialUrl)
          Creates a new GeometryInstance.
 
Method Summary
 Geometry getGeometry()
           
 Material getMaterial()
           
 
Methods inherited from class org.jagatoo.loaders.models.collada.datastructs.visualscenes.AbstractInstance
getFile, getName, getSid, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryInstance

public GeometryInstance(AssetFolder file,
                        java.lang.String id,
                        java.lang.String name,
                        java.lang.String geometryUrl,
                        java.lang.String materialUrl)
Creates a new GeometryInstance.

Parameters:
file - The COLLADA file this node belongs to
id - The id of this node
name - The name of this node
transform - The transform of this node
geometryUrl - The URL of the geometry this node is an instance of
materialUrl - The URL of the material bound to this node
Method Detail

getGeometry

public final Geometry getGeometry()
Returns:
the geometry.

getMaterial

public final Material getMaterial()
Returns:
the material.