1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Program to convert lamp color from table and compute radiance. |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
|
|
10 |
+ |
#include <math.h> |
11 |
+ |
|
12 |
|
#include "color.h" |
13 |
|
|
14 |
|
#define PI 3.14159265358979323846 |
15 |
|
|
16 |
|
extern char *gets(), *strcpy(); |
18 |
– |
extern double atof(); |
17 |
|
extern float *matchlamp(); |
18 |
|
|
19 |
|
/* lamp parameters */ |
36 |
|
int (*check)(); |
37 |
|
char *help; |
38 |
|
} param[NPARAMS] = { |
39 |
< |
{ "lamp type", "white", typecheck, |
39 |
> |
{ "lamp type", "WHITE", typecheck, |
40 |
|
"The lamp type is a string which corresponds to one of the types registered\n\ |
41 |
< |
in the lamp table file. A value of \"white\" means an uncolored source,\n\ |
41 |
> |
in the lamp table file. A value of \"WHITE\" means an uncolored source,\n\ |
42 |
|
which may be preferable because it results in a color balanced image." }, |
43 |
|
{ "length unit", "meter", unitcheck, |
44 |
|
"Unit must be one of: \"meter\", \"centimeter\", \"foot\", or \"inch\".\n\ |