visad.java3d
Class DownRoundingAnimationControlJ3D
java.lang.Object
visad.Control
visad.java3d.AVControlJ3D
visad.java3d.AnimationControlJ3D
visad.java3d.DownRoundingAnimationControlJ3D
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, AnimationControl, AVControl
public class DownRoundingAnimationControlJ3D
- extends AnimationControlJ3D
- implements java.lang.Runnable, AnimationControl
DownRoundingAnimationControlJ3D extends AnimationControlJ3D to provide a
different sampling behavior. Instead of nearest neighbor, the nearest sample
LESS THAN the current value will be displayed.
Doug Lindholm (DML) - Dec 2001
- See Also:
- Serialized Form
Method Summary |
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()
|
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 |
Methods inherited from class visad.java3d.AnimationControlJ3D |
equals, getCurrent, getDirection, getOn, getRealType, getSaveString, getSet, getStep, getSteps, nullControl, run, setDirection, setOn, setSaveString, setSet, setSet, setStep, setSteps, stop, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, syncControl, takeStep, toggle |
Methods inherited from class visad.Control |
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
Methods inherited from interface visad.AnimationControl |
getCurrent, getDirection, getOn, getSet, getStep, getSteps, run, setDirection, setOn, setSet, setSet, setStep, setSteps, stop, takeStep, toggle |
DownRoundingAnimationControlJ3D
public DownRoundingAnimationControlJ3D(DisplayImplJ3D d,
RealType r)
setCurrent
public void setCurrent(int c)
throws VisADException,
java.rmi.RemoteException
- Description copied from class:
AnimationControlJ3D
- set the current ordinal step number = c
- Specified by:
setCurrent
in interface AnimationControl
- Overrides:
setCurrent
in class AnimationControlJ3D
- Throws:
VisADException
java.rmi.RemoteException
setCurrent
public void setCurrent(double value)
throws VisADException,
java.rmi.RemoteException
- Description copied from class:
AnimationControlJ3D
- set the current step by the value of the RealType
mapped to Display.Animation
- Specified by:
setCurrent
in interface AnimationControl
- Overrides:
setCurrent
in class AnimationControlJ3D
- Throws:
VisADException
java.rmi.RemoteException
getIndexLessThanValue
protected int getIndexLessThanValue(Set set,
double value)
throws VisADException
- Return the index of the sample with the nearest value less than or equal
to the given value, -1 if no earlier samples.
- Throws:
VisADException
init
public void init()
throws VisADException
- Specified by:
init
in interface AnimationControl
- Overrides:
init
in class AnimationControlJ3D
- Throws:
VisADException
selectSwitches
public void selectSwitches(double value,
Set animation_set)
throws VisADException
- Overrides:
selectSwitches
in class AVControlJ3D
- Throws:
VisADException