[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
p.s., Re: [Fwd: AnimationControl - turning animation string on/off.]
On Tue, 10 Jun 2003, Bill Hibbard wrote:
> > What do these mods do? Jim's note didn't say. I noticed you
> > checked in some other changes to change the way single
> > time fields were handled, but couldn't figure out how to
> > use them.
The changes for single time fields came from Luke Mattews.
There is a method of AVControlJ3D (the parent class of
AnimationControlJ3D):
public void setInterval(int interval)
If you pass a positive value to this, it is the interval (in
minutes) during which each sample is visible. Note that this
is something of a hack. If the actual samples in an animated
Field are spaced more closely the interval minutes, then the
first sample whose interval includes the "valid time" for the
current animation step is visible. If the actual samples in an
animated Field are spaced less closely the interval minutes,
then there may be animation steps with no samples visible. My
commit message was misleading, since this setInterval() logic
applies to more than just singleton time fields.
I hadn't really looked all that closely at setInterval() before
your question, so have CC'ed Luke and James just to make sure
this is what they want.
Bill