An object drawing a vector field. For the moment, only one
type of arrow is implemented, but this could change in the
future. The coloring of the arrows can be adjusted with a
function returning red, green, blue and alpha values
(floats) knowing x and y values. See example 6 for an example of
code.
Relevant part of the header :
-(id)initWithXAxis:(PHxAxis*)xaxis
yAxis:(PHyAxis*)yaxis
function:(int
(*)(double,double,double*,double*))aFunction;
-(void)setFunction:(int
(*)(double,double,double*,double*))newFunction;
-(void)setColorFunction:(void
(*)(double,double,float*,float*,float*,float*))newFunction;
-(void)setColor:(NSColor
*)newColor;
-(void)setXGrid:(int)newXgrid
yGrid:(int)newYgrid;
-(void)setWidth:(float)newWidth;
Examples of functions for defining vector field and
coloring scheme is given in example 6. The xGrid and yGrid
values define the grid subdivisions and the number of
calculated and drawn arrows.