org.jocl.cloth
Class SimData

java.lang.Object
  extended by org.jocl.cloth.SimData
All Implemented Interfaces:
java.io.Serializable

 class SimData
extends java.lang.Object
implements java.io.Serializable

Collection of the plain data structures required for a simulation


Constructor Summary
SimData(ParticleData particleData, EdgeData edgeData, FaceData faceData, NormalData normalData, EdgeData[] independentSets, EdgeData[][] clustersSets)
          Creates a new SimData object
 
Method Summary
(package private)  EdgeData[][] getClustersSets()
          Returns the EdgeData for the clusters sets
(package private)  EdgeData getEdgeData()
          Returns the EdgeData
(package private)  FaceData getFaceData()
          Returns the FaceData
(package private)  EdgeData[] getIndependentSets()
          Returns the EdgeData for the independent sets
(package private)  NormalData getNormalData()
          Returns the NormalData
(package private)  ParticleData getParticleData()
          Returns the ParticleData
(package private)  java.lang.Object getUserData(java.lang.Object key)
          Return the specified user data
(package private)  void setUserData(java.lang.Object key, java.lang.Object value)
          Set the specified user data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimData

SimData(ParticleData particleData,
        EdgeData edgeData,
        FaceData faceData,
        NormalData normalData,
        EdgeData[] independentSets,
        EdgeData[][] clustersSets)
Creates a new SimData object

Parameters:
particleData - The ParticleData
edgeData - The EdgeData
faceData - The FaceData
normalData - The NormalData
independentSets - The EdgeData for each independent set
clustersSets - The EdgeData for each cluster set
Method Detail

getParticleData

ParticleData getParticleData()
Returns the ParticleData

Returns:
The ParticleData

getEdgeData

EdgeData getEdgeData()
Returns the EdgeData

Returns:
The EdgeData

getFaceData

FaceData getFaceData()
Returns the FaceData

Returns:
The FaceData

getNormalData

NormalData getNormalData()
Returns the NormalData

Returns:
The NormalData

getIndependentSets

EdgeData[] getIndependentSets()
Returns the EdgeData for the independent sets

Returns:
The EdgeData for the independent sets

getClustersSets

EdgeData[][] getClustersSets()
Returns the EdgeData for the clusters sets

Returns:
The EdgeData for the clusters sets

setUserData

void setUserData(java.lang.Object key,
                 java.lang.Object value)
Set the specified user data

Parameters:
key - The key
value - The value

getUserData

java.lang.Object getUserData(java.lang.Object key)
Return the specified user data

Parameters:
key - The key
Returns:
The value