org.jocl.cloth
Class ClothApplicationSetup

java.lang.Object
  extended by org.jocl.cloth.ClothApplicationSetup

 class ClothApplicationSetup
extends java.lang.Object

Utility methods for the setup and profiling of the cloth application


Method Summary
(package private) static SimData createSimData(java.lang.String objFileName, ClothData clothData)
          Creates the SimData for the given ClothData that was read from the file with the given name.
(package private) static java.lang.String getDefaultClothFileName()
          Returns the default cloth input file name
(package private) static ClothData loadClothData(java.lang.String fileName)
          Loads the ClothData from the OBJ file with the given name
(package private) static SimData loadSimData(java.lang.String fileName)
          Loads the SimData from the specified file.
(package private) static void saveSimData(SimData simData, java.lang.String fileName)
          Writes the given SimData into the file with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultClothFileName

static java.lang.String getDefaultClothFileName()
Returns the default cloth input file name

Returns:
The default cloth input file name

loadClothData

static ClothData loadClothData(java.lang.String fileName)
Loads the ClothData from the OBJ file with the given name

Parameters:
fileName - The file name
Returns:
The cloth data, or null if the data could not be read

createSimData

static SimData createSimData(java.lang.String objFileName,
                             ClothData clothData)
Creates the SimData for the given ClothData that was read from the file with the given name.

Parameters:
objFileName - The name of the file that the cloth data was read from
clothData - The cloth data
Returns:
The simulation data

loadSimData

static SimData loadSimData(java.lang.String fileName)
Loads the SimData from the specified file.

Parameters:
fileName - The file name
Returns:
The simulation data, or null if the file could not be read.

saveSimData

static void saveSimData(SimData simData,
                        java.lang.String fileName)
Writes the given SimData into the file with the specified name.

Parameters:
simData - The simulation data
fileName - The file name