org.jocl.cloth
Class SimulationFactoryJOCL

java.lang.Object
  extended by org.jocl.cloth.SimulationFactoryJOCL
All Implemented Interfaces:
SimulationFactory

 class SimulationFactoryJOCL
extends java.lang.Object
implements SimulationFactory

A factory for OpenCL cloth simulations


Constructor Summary
SimulationFactoryJOCL(CLClothConfig clConfig)
          Create a new factory
 
Method Summary
 Simulation createSimulation(SimData simData, de.javagl.simplerenderer.SimpleRenderer renderer, de.javagl.simplerenderer.SimpleObject object)
          Create a new Simulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationFactoryJOCL

SimulationFactoryJOCL(CLClothConfig clConfig)
Create a new factory

Parameters:
clConfig - The CL configuration
Method Detail

createSimulation

public Simulation createSimulation(SimData simData,
                                   de.javagl.simplerenderer.SimpleRenderer renderer,
                                   de.javagl.simplerenderer.SimpleObject object)
Description copied from interface: SimulationFactory
Create a new Simulation

Specified by:
createSimulation in interface SimulationFactory
Parameters:
simData - The SimData
renderer - The renderer. May be null.
object - The rendered object corresponding to the simulation data. May be null if the renderer is null.
Returns:
The new Simulation