shout3d.core
Class RotationDefChannel

java.lang.Object
  |
  +--shout3d.core.Node
        |
        +--shout3d.core.DeformationChannel
              |
              +--shout3d.core.RotationDefChannel

public class RotationDefChannel
extends DeformationChannel

A RotationDefChannel A DeformationChannel that rotates points based on a single rotation, a single center, and an array of weights. When invoked, deform method operates on the array of points given as follows: The modifiedCoordIndex specifies which points in the array are to be deformed. If modifiedCoordIndex is null or empty, then all points will be deformed. The rotation field contains a single rotation to be applied to each point. The rotation is a 4-vector in which the first 3 floats describe the axis of rotation and the 4th float specifies the angle of rotation about that axis. The center field specifies the center of rotation for the rotation. The weight field contains a single multiplier which scales the angle of rotation applied to each point.


Field Summary
 FloatArrayField center
           
 IntArrayField modifiedCoordIndex
           
 FloatArrayField rotation
           
 FloatField weight
           
 
Constructor Summary
RotationDefChannel()
           
 
Method Summary
 void deform(float[] points)
           
 
Methods inherited from class shout3d.core.Node
cleanUp, getDEFName, getField, getFieldByIndex, getFieldName, getNumFields, getTypeName, getViewer, isOfType, setDEFName, setViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weight

public final FloatField weight

modifiedCoordIndex

public final IntArrayField modifiedCoordIndex

center

public final FloatArrayField center

rotation

public final FloatArrayField rotation
Constructor Detail

RotationDefChannel

public RotationDefChannel()
Method Detail

deform

public void deform(float[] points)
Overrides:
deform in class DeformationChannel