public class DownRoundingAnimationControlJ3D extends AnimationControlJ3D implements Runnable, AnimationControl
Doug Lindholm (DML) - Dec 2001
AVControlJ3D.SwitchSet
current
Constructor and Description |
---|
DownRoundingAnimationControlJ3D(DisplayImplJ3D d,
RealType r) |
Modifier and Type | Method and Description |
---|---|
protected int |
getIndexLessThanValue(Set set,
double value)
Return the index of the sample with the nearest value less than or equal
to the given value, -1 if no earlier samples.
|
void |
init()
actually set Switches (Java3D) or VisADSwitches (Java2D) to
child nodes corresponding to current ordinal step number
|
void |
selectSwitches(double value,
Set animation_set) |
void |
setCurrent(double value)
set the current step by the value of the RealType
mapped to Display.Animation
|
void |
setCurrent(int c)
set the current ordinal step number = c
|
equals, getComputeSet, getCurrent, getDirection, getOn, getRealType, getSaveString, getSet, getStep, getSteps, run, setComputeSet, setDirection, setOn, setSaveString, setSet, setSet, setStep, setSteps, stop, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, syncControl, takeStep, toggle
addPair, addPair, clearSwitches, getSwitches, nullControl, setInterval
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, toString
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComputeSet, getCurrent, getDirection, getOn, getSet, getStep, getSteps, run, setComputeSet, setDirection, setOn, setSet, setSet, setStep, setSteps, stop, takeStep, toggle
addControlListener, clearSwitches, getSaveString, removeControlListener, setSaveString
public DownRoundingAnimationControlJ3D(DisplayImplJ3D d, RealType r)
public void setCurrent(int c) throws VisADException, RemoteException
AnimationControlJ3D
setCurrent
in interface AnimationControl
setCurrent
in class AnimationControlJ3D
c
- - value for current ordinal step numberVisADException
- - a VisAD error occurredRemoteException
- - an RMI error occurredpublic void setCurrent(double value) throws VisADException, RemoteException
AnimationControlJ3D
setCurrent
in interface AnimationControl
setCurrent
in class AnimationControlJ3D
value
- - RealType value that is converted to an
ordinal step numberVisADException
- - a VisAD error occurredRemoteException
- - an RMI error occurredprotected int getIndexLessThanValue(Set set, double value) throws VisADException
VisADException
public void init() throws VisADException
AnimationControl
init
in interface AnimationControl
init
in class AnimationControlJ3D
VisADException
- - a VisAD error occurred.public void selectSwitches(double value, Set animation_set) throws VisADException
selectSwitches
in class AVControlJ3D
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.