org.jagatoo.loaders.models.collada.datastructs.geometries
Class Geometry

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.geometries.Geometry
Direct Known Subclasses:
PolygonsGeometry, TrianglesGeometry

public abstract class Geometry
extends java.lang.Object

A COLLADA Geometry. For now, only polygons with a constant number of vertex-per-polygons and triangles are supported. Note that this class is abstract. Interesting ones are COLLADATrianglesGeometry, and COLLADAPolygonsGeometry.


Constructor Summary
Geometry(AssetFolder file, java.lang.String id, java.lang.String name, XMLGeometry geometry)
          Creates a new COLLADAGeometry.
 
Method Summary
abstract  Geometry copy()
           
 AssetFolder getFile()
           
 XMLGeometry getGeometry()
           
 java.lang.String getId()
           
 Mesh getMesh()
           
 java.lang.String getName()
           
 void setMesh(Mesh mesh)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometry

public Geometry(AssetFolder file,
                java.lang.String id,
                java.lang.String name,
                XMLGeometry geometry)
Creates a new COLLADAGeometry.

Parameters:
file - the file this COLLADAGeometry belongs to
id - the id it is referenced by
name - the name of the geometry
geometry - the geometry
Method Detail

getId

public final java.lang.String getId()
Returns:
the id.

getName

public java.lang.String getName()
Returns:
the name.

getFile

public AssetFolder getFile()
Returns:
the file.

getGeometry

public XMLGeometry getGeometry()
Returns:
the geometry.

setMesh

public void setMesh(Mesh mesh)
Parameters:
mesh - the mesh to set

getMesh

public Mesh getMesh()
Returns:
the mesh.

copy

public abstract Geometry copy()
Returns:
a shared copy of this Geometry. (The sources are shared.)