Next: Function_Slider
Up: Classes and Methods
Previous: Function_Bar1d
(subclass of 9.1.3.9 Function_Bar1d)
- GRAPE(Function_Ruler, "new-instance")(spline, fun_arg, var, name, atype)
- CLASS *Function_Ruler
SPLINE1D *spline
double *fun_arg
void *var
char *name
DECLARATION_FORMAT atype
Creates a new instance of the class Function_Ruler which is named
name. The variable var, which is controlled by the ruler
must be of the type defined by atype.
If no spline is given (spline == NULL) the
Function_Ruler will try to load a spline from a file, whose name is
equal to the name of the Function_Ruler and the extension .sp (all
spaces in the name are converted to underscores in the filename). If
no matching file is found, the Function_Ruler will create a new
linear spline.
The parameter fun_arg is the argument of the spline function
and must be of type double. Most time this argument is the
main time or the scene time.
SFB 256 Universität Bonn and IAM Universität Freiburg Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik,
Universität Bonn.