public class KeyFramer
extends java.lang.Object
Constructor and Description |
---|
KeyFramer() |
Modifier and Type | Method and Description |
---|---|
void |
addFather(int fatherID,
TransformGroup newFather) |
Behavior |
createBehavior(java.lang.String meshName,
Group transformGroup,
java.lang.Object testObject)
Retrieves the named object for the current key framer
inserts the rotation, position and pivot transformations for frame 0
and assigns the coordinate system to it.
|
void |
growList(int index,
java.util.List list)
Make sure the list is at least able to
hold a value at index.
|
boolean |
hasKeys()
returns true if position keys and orientation
keys are longer than one element each.
|
void |
makeTwoListsTheSameSize(java.util.List list1,
java.util.List list2) |
void |
setCoordinateSystem(java.lang.String objectName,
Transform3D coordinateSystem)
Called to set the coordinate system transform for an object named
objectName.
|
void |
setDummyObject(Group object) |
void |
setID(int id)
Sets the id for these frames.
|
void |
setOrientationKeys(java.util.List orientations)
Sets the orientation information necessary for animation.s
|
void |
setPivot(Vector3f pivot)
Sets the pivot that will be used to as a pivot for
these transfomations.
|
void |
setPivotCenter(Point3f center)
Sets the center of the bounding box that the pivot
should offset.
|
void |
setPosition(Point3f position)
Sets the group that will be used to translate the mesh..
|
void |
setPositionKeys(java.util.List positions)
Sets the position information necessary for animation.s
|
void |
setRotation(Quat4f rotation)
Sets the group that will be used to center rotations.
|
void |
setScale(Vector3f scale)
Sets the scale for x y and z axis for objects.
|
void |
setScaleKeys(java.util.List scaleKeys)
Sets the scale information necessary for animation.s
|
public Behavior createBehavior(java.lang.String meshName, Group transformGroup, java.lang.Object testObject)
public void makeTwoListsTheSameSize(java.util.List list1, java.util.List list2)
public void growList(int index, java.util.List list)
index
- an int specifying the initial sizepublic void setPivotCenter(Point3f center)
public void setCoordinateSystem(java.lang.String objectName, Transform3D coordinateSystem)
public void setRotation(Quat4f rotation)
group
- the group that will act as the rotation transform.public void setPivot(Vector3f pivot)
group
- the group that will act as the pivot.public void setScale(Vector3f scale)
group
- the group that will act as the scalepublic void setScaleKeys(java.util.List scaleKeys)
scaleKeys
- a list of Vector3f, which may contain null elements,
containing a position for some keys.public void setPosition(Point3f position)
group
- the group that will act as the position transform.public void setPositionKeys(java.util.List positions)
positions
- a list of Point3f, which may contain null elements,
containing a position for some keys.public void setOrientationKeys(java.util.List orientations)
positions
- a list of Quat4f, which may contain null elements,
containing a orientation for some keys.public void setDummyObject(Group object)
public boolean hasKeys()
public void addFather(int fatherID, TransformGroup newFather)
public void setID(int id)
id
- the id for these frames.Copyright © 2000-2016 Microcrowd. All Rights Reserved.