|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.ClothSimulationJava
class ClothSimulationJava
Implementation of a Simulation that performs a
cloth simulation with plain Java. It combines a simulation
core, namely a ClothSimulationCoreJava, with
a NormalComputerJava.
| Constructor Summary | |
|---|---|
ClothSimulationJava(SimData simData,
de.javagl.simplerenderer.SimpleRenderer renderer,
de.javagl.simplerenderer.SimpleObject clothObject)
Creates a new cloth simulation from the given data |
|
| Method Summary | |
|---|---|
void |
performTimeStep(float timeStep)
Perform a simulation step with the given size |
void |
prepareRendering()
Perform any steps necessary to render the current simulation state |
void |
shutdown()
Shut down the simulation and free all allocated resources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ClothSimulationJava(SimData simData,
de.javagl.simplerenderer.SimpleRenderer renderer,
de.javagl.simplerenderer.SimpleObject clothObject)
simData - The SimDatarenderer - The renderer. May be null.clothObject - The cloth object. May be null if
the renderer is null.| Method Detail |
|---|
public void performTimeStep(float timeStep)
Simulation
performTimeStep in interface SimulationtimeStep - The step sizepublic void prepareRendering()
Simulation
prepareRendering in interface Simulationpublic void shutdown()
Simulation
shutdown in interface Simulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||