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

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.geometries.GeometryProvider
Direct Known Subclasses:
Controller

public abstract class GeometryProvider
extends java.lang.Object

A Geometry provider. Basically it can be, what instance_geometry or instance_controller is in a COLLADA file, library_visuals_scenes section.


Field Summary
protected  Geometry destinationGeometry
          The destination geometry : it will contain the result of the computations of this COLLADAController
 
Constructor Summary
GeometryProvider(LibraryGeometries libGeoms)
          Creates a new COLLADAController.
 
Method Summary
 Geometry getDestinationGeometry()
           
protected  LibraryGeometries getLibraryGeometries()
           
 void setDestinationMesh(Geometry destinationGeometry)
           
abstract  Geometry updateDestinationGeometry(long currentTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destinationGeometry

protected Geometry destinationGeometry
The destination geometry : it will contain the result of the computations of this COLLADAController

Constructor Detail

GeometryProvider

public GeometryProvider(LibraryGeometries libGeoms)
Creates a new COLLADAController.

Parameters:
libGeoms - The LibraryGeometries we need to compute the destination mesh.
Method Detail

getLibraryGeometries

protected final LibraryGeometries getLibraryGeometries()

updateDestinationGeometry

public abstract Geometry updateDestinationGeometry(long currentTime)
Parameters:
currentTime - the frame time in miliseconds
Returns:
the destinationGeometry computed from the source mesh

getDestinationGeometry

public Geometry getDestinationGeometry()
Returns:
the destinationGeometry

setDestinationMesh

public void setDestinationMesh(Geometry destinationGeometry)
Parameters:
destinationGeometry - the destinationGeometry to set