Class DefaultColorInterpolationController
java.lang.Object
com.ardor3d.scenegraph.controller.ComplexSpatialController<Mesh>
com.ardor3d.scenegraph.controller.interpolation.InterpolationController<ReadOnlyColorRGBA,Mesh>
com.ardor3d.scenegraph.controller.interpolation.DefaultColorInterpolationController
- All Implemented Interfaces:
SpatialController<Mesh>
,Savable
,Serializable
public class DefaultColorInterpolationController
extends InterpolationController<ReadOnlyColorRGBA,Mesh>
ColorRGBAInterpolationController class interpolates the
default colour
of a mesh using
ReadOnlyColorRGBA
s.
Note: The default colour only works if a colour buffer
has NOT been set on the
mesh.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ardor3d.scenegraph.controller.ComplexSpatialController
ComplexSpatialController.RepeatType
-
Field Summary
Fields inherited from class com.ardor3d.scenegraph.controller.interpolation.InterpolationController
DELTA_MAX, DELTA_MIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
interpolate
(ReadOnlyColorRGBA from, ReadOnlyColorRGBA to, double delta, Mesh caller) Interpolates between the given colors using theColorRGBA.lerpLocal(ReadOnlyColorRGBA, ReadOnlyColorRGBA, float)
method.Methods inherited from class com.ardor3d.scenegraph.controller.interpolation.InterpolationController
clampIndex, decrementDelta, decrementIndex, getControlFrom, getControls, getControlTo, getDelta, getIndex, getMaximumIndex, getMinimumIndex, incrementDelta, incrementIndex, isClamped, isCycleForward, reset, setControls, setControls, setCycleForward, setDelta, setIndex, setRepeatType, update, updateDeltaAndIndex
Methods inherited from class com.ardor3d.scenegraph.controller.ComplexSpatialController
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, isRepeatTypeClamp, isRepeatTypeCycle, isRepeatTypeWrap, read, setActive, setControllerValues, setMaxTime, setMinTime, setSpeed, write
-
Constructor Details
-
DefaultColorInterpolationController
public DefaultColorInterpolationController()
-
-
Method Details
-
interpolate
Interpolates between the given colors using theColorRGBA.lerpLocal(ReadOnlyColorRGBA, ReadOnlyColorRGBA, float)
method.- Specified by:
interpolate
in classInterpolationController<ReadOnlyColorRGBA,
Mesh> - Parameters:
from
- The control to interpolate from.to
- The control to interpolate to.delta
- The distance betweenfrom
andto
, will be between0.0
and1.0
(inclusive).caller
- The object to interpolate, will not benull
.
-