5 static const char TRACE_NONE_STR[]= "none";
6 static const char TRACE_TEXT_STR[]= "text";
7 static const char TRACE_PHM_STR[]= "phm";
8 static const char TRACE_RAYS_STR[]= "rays";
9 static const char TRACE_PLOT_STR[]= "plot";
10 static const char TRACE_CLIPPING_STR[]= "clipping";
13 TRACE_NONE, /* No tracing */
14 TRACE_TEXT, /* Minimal status */
15 TRACE_PHM, /* Show phantom */
16 TRACE_RAYS, /* Show all rays */
17 TRACE_PLOT, /* Plot raysums */
18 TRACE_CLIPPING /* Plot clipping */
22 opt_set_trace (const char *optarg)
26 if (strcmp(optarg, TRACE_NONE_STR) == 0)
28 else if (strcmp(optarg, TRACE_TEXT_STR) == 0)
30 else if (strcmp(optarg, TRACE_PHM_STR) == 0)
32 else if (strcmp(optarg, TRACE_PLOT_STR) == 0)
34 else if (strcmp(optarg, TRACE_CLIPPING_STR) == 0)
36 else if (strcmp(optarg, TRACE_RAYS_STR) == 0)
39 sys_error(ERR_WARNING,"Invalid trace option %s\n", optarg);