cz.cuni.jagrlib.iface
Interface TimeDependent

All Known Subinterfaces:
ImageFunction, ImageSynthesizer, RTScene
All Known Implementing Classes:
AdaptiveJitteringSynthesizer, CSGCommonNode, CSGLeaf, CSGNode, DefaultImageFunction, DefaultImageSynthesizer, DynamicCSGScene, FeatureDeformation, FractalCircles, JitteringSynthesizer, Mandelbrot, RayCasting, RayTracing, SimpleSynthesizer, StaticCSGScene, TestGamma, TestImageFunctions, TestImageLaser, TextureFunctions

public interface TimeDependent

Abstract time-dependency of an object.

Since:
0.12
Version:
0.25 $Rev: 918 $ $Date: 2010-04-08 03:18:02 +0200 (čt, 08 IV 2010) $ $Author: pepca $
See Also:
TimeDependent.java

Method Summary
 double getTime()
          Returns the actual time value for the object (used in animations).
 double[] getTimeInterval(double[] pre)
          Retrieve the valid bounds for time variable.
 void setTime(double time)
          Sets the actual time value for the object (used in animations).
 

Method Detail

getTimeInterval

double[] getTimeInterval(double[] pre)
Retrieve the valid bounds for time variable.

Parameters:
pre - Pre-allocated double[2] array to hold the result (can be null).
Returns:
result[0] .. minimum time value, result[1] .. maximum time value.
See Also:
getTime(), setTime(double)

getTime

double getTime()
Returns the actual time value for the object (used in animations).

Returns:
Actual time (in seconds).
See Also:
setTime(double)

setTime

void setTime(double time)
Sets the actual time value for the object (used in animations).

Parameters:
time - New scene time (in seconds).
See Also:
getTime(), getTimeInterval(double[])