public abstract class AbstractTransformAnimator extends AbstractAnimator
ViewerFrame
instance 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 |
---|
AbstractTransformAnimator(long duration)
Create new animator with the given duration.
|
Modifier and Type | Method and Description |
---|---|
abstract AffineTransform3D |
get(double t)
Returns an
AffineTransform3D for the specified completion factor. |
AffineTransform3D |
getCurrent(long time)
Returns an
AffineTransform3D that can be used to set the
viewpoint of a ViewerFrame instance, for the time specified. |
isComplete, ratioComplete, setTime
public AbstractTransformAnimator(long duration)
AbstractAnimator.setTime(long)
.duration
- animation duration (in time units)public AffineTransform3D getCurrent(long time)
AffineTransform3D
that can be used to set the
viewpoint of a ViewerFrame
instance, 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)
AffineTransform3D
for 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–2021 Fiji. All rights reserved.