public abstract class AbstractTransformAnimator extends AbstractAnimator
ViewerFrameinstance by modifying the viewer transform. The time unit for animation duration, start time and current time is not specified, or example you can use ms obtained from
System.currentTimeMillis()or a frame number when rendering movies.
|Constructor and Description|
Create new animator with the given duration.
|Modifier and Type||Method and Description|
public AbstractTransformAnimator(long duration)
duration- animation duration (in time units)
public AffineTransform3D getCurrent(long time)
AffineTransform3Dthat can be used to set the viewpoint of a
ViewerFrameinstance, for the time specified.
time- the target absolute time for which the transform should be generated (in time units).
public abstract AffineTransform3D get(double t)
AffineTransform3Dfor the specified completion factor. For values below 0, that starting transform should be returned. For values larger than 1, the final transform should be returned. Values below 0 and 1 should interpolate between the two, depending on the concrete animation implementation.
t- the completion factor, ranging from 0 to 1.
Copyright © 2015–2017 Fiji. All rights reserved.