On Monday 14 April 2003 18:05, Gustavo Seabra wrote:
> I was just wondering how the plot ar the "screenshots" area of the
> website was generated. Is there any program available using CDK that
> generates function plots?
Though I have not used it myself yet (which happens if there are many
developers), I think it should look a bit like this:
The cdk.renderer.GraphRenderer uses a cdk.renderer.GraphRendererModel for its
information about: titles, x/y-min/max, and display mode (whatever that
is)... The actual data is taken care of with a cdk.math.Function, which you
seem to need to implement a subclass of... you add it to the
GraphRendererModel with the addFunction(Function) method...
The Function has a method getValue(double x,y,z), so the GraphRenderer seems
to be able to plot f(x,y,z) functions... As the function can return any
function value, you can plot any data...
Does this make sense?