|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.ClothApplication
public class ClothApplication
Main class for the cloth simulation application
Constructor Summary | |
---|---|
ClothApplication()
Creates the main application |
Method Summary | |
---|---|
(package private) void |
cleanup()
Stops the simulator, shuts down the simulation and clears the renderer |
protected void |
createGUI()
Creates the GUI |
(package private) de.javagl.simplerenderer.SimpleRenderer |
getRenderer()
Returns the renderer |
(package private) Simulator |
getSimulator()
Returns the Simulator |
(package private) void |
initializeSimulation(ClothData clothData,
SimData simData)
Initialize the simulation and rendering using the given ClothData and SimData |
static void |
initLogging()
Utility method to initialize the logging |
static void |
main(java.lang.String[] args)
The entry point of this application |
(package private) void |
setClothOutlined(boolean outlined)
Set the outlined status of the currently rendered cloth object, if any |
(package private) void |
setSimulationFactory(SimulationFactory simulationFactory)
Set the SimulationFactory that should be used when the
simulation is initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ClothApplication()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Not usedpublic static void initLogging()
protected void createGUI()
de.javagl.simplerenderer.SimpleRenderer getRenderer()
Simulator getSimulator()
Simulator
void cleanup()
void setSimulationFactory(SimulationFactory simulationFactory)
SimulationFactory
that should be used when the
simulation is initialized.
simulationFactory
- The factory. May not be null
.
java.lang.IllegalArgumentException
- If the factory is null
.void initializeSimulation(ClothData clothData, SimData simData)
ClothData
and SimData
clothData
- The cloth datasimData
- The simulation datavoid setClothOutlined(boolean outlined)
outlined
- The outlined status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |