|
From: Harald H. <h.h...@tu...> - 2005-03-12 11:27:30
|
On Thu, 10 Mar 2005, Hans-Bernhard Broeker wrote:
> Ethan Merritt wrote:
>
> > How about a terminal entry point (*term->layer)((int) layernumber)
> > that the core code would call at each stage of the plot process, once
> > per layer?
> [...]
> > enum layer { LAYER_PLOT_BACKGROUND, LAYER_AXES, LAYER_BACK_LABELS,
> > LAYER_PLOT_LINES, LAYER_FRONT_RECTANGLES, LAYER_FRONT_LABELS, ... }
>
> This idea certainly has a nicer ring to it than the current situation.
[...]
> I don't thus think that *naming* the layers would be a good idea at all.
> Let them have numbers, and export those to the user interface in some
> way the users can (hopefully) understand.
Would you prefer something like this? Or how do you think it should be
implemented?
int layer;
#define LAYER_PLOT_BACKGROUND -3
#define LAYER_AXES -2
#define LAYER_BACK_LABELS -1
#define LAYER_PLOT_LINES 0
#define LAYER_FRONT_RECTANGLES 1
#define LAYER_FRONT_LABELS 2
--
Harald Harders
h.h...@tu...
http://www.harald-harders.de
|