org.jagatoo.loaders.models.collada.datastructs.visualscenes
Class GeometryInstance
java.lang.Object
org.jagatoo.loaders.models.collada.datastructs.visualscenes.AbstractInstance
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 toid - The id of this nodename - The name of this nodetransform - The transform of this nodegeometryUrl - The URL of the geometry this node is an instance ofmaterialUrl - The URL of the material bound to this node
getGeometry
public final Geometry getGeometry()
- Returns:
- the geometry.
getMaterial
public final Material getMaterial()
- Returns:
- the material.