|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.data.SceneGraphData
syn3d.data.SceneGraphFloatData
syn3d.data.TransformData
public abstract class TransformData
Class description ...
Nested Class Summary |
---|
Nested classes/interfaces inherited from class syn3d.data.SceneGraphData |
---|
SceneGraphData.SourceHolder |
Field Summary | |
---|---|
static int |
AFFINE
|
static int |
FULL
|
static int |
IDENTITY
|
protected int |
kind
|
protected TransformGroupNode |
node
|
protected static int[] |
PARAM_SIZE
|
static int |
ROTX
|
static int |
ROTXYZ
|
static int |
ROTY
|
static int |
ROTZ
|
static int |
SCALE
|
static int |
SCALEX
|
static int |
SCALEXYZ
|
static int |
SCALEY
|
static int |
SCALEZ
|
protected java.util.ArrayList |
transformChildren
|
protected TransformData |
transformRoot
|
static int |
TRANSX
|
static int |
TRANSXYZ
|
static int |
TRANSY
|
static int |
TRANSZ
|
Fields inherited from class syn3d.data.SceneGraphFloatData |
---|
params |
Fields inherited from class syn3d.data.SceneGraphData |
---|
delegateListener, editable, sources |
Constructor Summary | |
---|---|
TransformData(TransformGroupNode node)
|
|
TransformData(TransformGroupNode node,
TransformData transformRoot)
|
Method Summary | |
---|---|
abstract TransformData |
addComposedTransformation()
|
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. |
int |
getKind()
|
static int |
getKind(Matrix4f m)
|
java.util.ArrayList |
getTransformChildren()
|
void |
init()
Initialize data with the node current values |
protected abstract void |
init(int preferredKind,
boolean fromNode)
|
boolean |
isComposed()
|
static boolean |
isIdentity(Matrix3f m3)
|
static boolean |
isIdentity(Matrix4f m4)
|
abstract void |
removeLastComposedTransformation()
|
void |
removeSceneGraphData()
|
void |
restoreTransform(TransformGroupNode node)
|
void |
restoreTransform(TransformGroupNode node,
TransformData transformRoot)
Restore composed sub transformation |
void |
set(int kind,
float[] values,
DataSource[] d)
|
void |
setKind(int i)
|
void |
updateFrom(SceneGraphData dataCopy)
Inverse operation from clone() Update this data from the content of another one |
void |
updateTransform()
Apply current data values to the associated transformation |
Methods inherited from class syn3d.data.SceneGraphFloatData |
---|
apply, getValue, set, setValue |
Methods inherited from class syn3d.data.SceneGraphData |
---|
DataSourceInfoChanged, DataSourceOrderChanged, DataSourceReplaced, DataSourceValueRangeChanged, getDataSource, getDelegateListener, isEditable, length, notificationEnd, setDataSource, setDelegateListener, setEditable |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IDENTITY
public static final int TRANSX
public static final int TRANSY
public static final int TRANSZ
public static final int TRANSXYZ
public static final int ROTX
public static final int ROTY
public static final int ROTZ
public static final int ROTXYZ
public static final int SCALEX
public static final int SCALEY
public static final int SCALEZ
public static final int SCALE
public static final int SCALEXYZ
public static final int AFFINE
public static final int FULL
protected int kind
protected transient TransformGroupNode node
protected java.util.ArrayList transformChildren
protected TransformData transformRoot
protected static final int[] PARAM_SIZE
Constructor Detail |
---|
public TransformData(TransformGroupNode node)
node2
- public TransformData(TransformGroupNode node, TransformData transformRoot)
Method Detail |
---|
public void restoreTransform(TransformGroupNode node)
public void restoreTransform(TransformGroupNode node, TransformData transformRoot)
node
- transformRoot
- public void setKind(int i)
i
- public int getKind()
public void init()
SceneGraphData
init
in class SceneGraphData
protected abstract void init(int preferredKind, boolean fromNode)
public static boolean isIdentity(Matrix4f m4)
public static boolean isIdentity(Matrix3f m3)
public static int getKind(Matrix4f m)
public void set(int kind, float[] values, DataSource[] d)
public void updateFrom(SceneGraphData dataCopy)
SceneGraphData
updateFrom
in class SceneGraphFloatData
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class SceneGraphFloatData
java.lang.CloneNotSupportedException
public void updateTransform()
public void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
DataSourceListener
DataSourceIndexRangeChanged
in interface DataSourceListener
DataSourceIndexRangeChanged
in class SceneGraphFloatData
ds
- The data source that changedstartIndex
- The new start IndexlastIndex
- The new last indexpublic void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
DataSourceListener
DataSourceValueChanged
in interface DataSourceListener
DataSourceValueChanged
in class SceneGraphFloatData
ds
- The data source that changedminIndex
- Lower bound of the range where values changedmaxIndex
- Higher bound of the range where values changedpublic void dispose()
SceneGraphData
dispose
in class SceneGraphFloatData
public void removeSceneGraphData()
removeSceneGraphData
in class SceneGraphData
public boolean isComposed()
public java.util.ArrayList getTransformChildren()
public abstract TransformData addComposedTransformation()
public abstract void removeLastComposedTransformation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |