org.jagatoo.loaders.models.collada.datastructs.geometries
Class Geometry
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 toid - the id it is referenced byname - the name of the geometrygeometry - the geometry
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.)