syn3d.data
Class SceneGraphFloatData

java.lang.Object
  extended by syn3d.data.SceneGraphData
      extended by syn3d.data.SceneGraphFloatData
All Implemented Interfaces:
java.io.Serializable, DataSourceListener, EndNotificationListener
Direct Known Subclasses:
TransformData

public abstract class SceneGraphFloatData
extends SceneGraphData
implements java.io.Serializable

Class description ...

Author:
Claude CAZENAVE
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class syn3d.data.SceneGraphData
SceneGraphData.SourceHolder
 
Field Summary
protected  float[] params
           
 
Fields inherited from class syn3d.data.SceneGraphData
delegateListener, editable, sources
 
Constructor Summary
SceneGraphFloatData()
           
 
Method Summary
 void apply()
          Apply data to the node
 java.lang.Object clone()
           
 void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
          Called when the range of valid index changed
 void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
          Called when at least a value changed in the data source.
 void dispose()
          Cleanup anything that could possibly help the garbage collector.
 float getValue(int index)
          Get value
 void set(float[] values, DataSource[] d)
           
 void setValue(int index, float v)
          Set value
 void updateFrom(SceneGraphData dataCopy)
          Inverse operation from clone() Update this data from the content of another one
 
Methods inherited from class syn3d.data.SceneGraphData
DataSourceInfoChanged, DataSourceOrderChanged, DataSourceReplaced, DataSourceValueRangeChanged, getDataSource, getDelegateListener, init, isEditable, length, notificationEnd, removeSceneGraphData, setDataSource, setDelegateListener, setEditable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected float[] params
Constructor Detail

SceneGraphFloatData

public SceneGraphFloatData()
Method Detail

getValue

public float getValue(int index)
Get value

Parameters:
index - = field number 0..length-1
Returns:
value for this field

setValue

public void setValue(int index,
                     float v)
Set value

Parameters:
index - = field number 0..length-1
v - = new value for this field

set

public void set(float[] values,
                DataSource[] d)

apply

public void apply()
Description copied from class: SceneGraphData
Apply data to the node

Specified by:
apply in class SceneGraphData

DataSourceIndexRangeChanged

public void DataSourceIndexRangeChanged(DataSource ds,
                                        long startIndex,
                                        long lastIndex)
Description copied from interface: DataSourceListener
Called when the range of valid index changed

Specified by:
DataSourceIndexRangeChanged in interface DataSourceListener
Overrides:
DataSourceIndexRangeChanged in class SceneGraphData
Parameters:
ds - The data source that changed
startIndex - The new start Index
lastIndex - The new last index

DataSourceValueChanged

public void DataSourceValueChanged(DataSource ds,
                                   long minIndex,
                                   long maxIndex)
Description copied from interface: DataSourceListener
Called when at least a value changed in the data source. The listener shall then get the values in the given range again, if it is interested by the values in that range.

Specified by:
DataSourceValueChanged in interface DataSourceListener
Overrides:
DataSourceValueChanged in class SceneGraphData
Parameters:
ds - The data source that changed
minIndex - Lower bound of the range where values changed
maxIndex - Higher bound of the range where values changed

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class SceneGraphData
Throws:
java.lang.CloneNotSupportedException

updateFrom

public void updateFrom(SceneGraphData dataCopy)
Description copied from class: SceneGraphData
Inverse operation from clone() Update this data from the content of another one

Overrides:
updateFrom in class SceneGraphData

dispose

public void dispose()
Description copied from class: SceneGraphData
Cleanup anything that could possibly help the garbage collector. Ref counted listeners may be a good start...

Overrides:
dispose in class SceneGraphData