2 |
|
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
|
/* |
5 |
< |
* rxtmain.c - main for per-ray calculation program |
5 |
> |
* rxtmain.cpp - main for per-ray calculation program |
6 |
|
*/ |
7 |
|
|
8 |
|
#include "copyright.h" |
43 |
|
char *tralist[MAXMODLIST]; /* list of modifers to trace (or no) */ |
44 |
|
int traincl = -1; /* include == 1, exclude == 0 */ |
45 |
|
|
46 |
< |
double (*sens_curve)(SCOLOR scol) = NULL; /* spectral conversion for 1-channel */ |
46 |
> |
double (*sens_curve)(const SCOLOR scol) = NULL; /* spectral conversion for 1-channel */ |
47 |
|
double out_scalefactor = 1; /* output calibration scale factor */ |
48 |
|
RGBPRIMP out_prims = stdprims; /* output color primitives (NULL if spectral) */ |
49 |
|
static RGBPRIMS our_prims; /* private output color primitives */ |
352 |
|
SET_FILE_BINARY(stdout); |
353 |
|
if (doheader) { /* print header? */ |
354 |
|
newheader("RADIANCE", stdout); |
355 |
< |
const char * ohdr = myRTmanager.GetHeader(); |
356 |
< |
if (ohdr) fputs(ohdr, stdout); |
355 |
> |
fputs(myRTmanager.GetHeadStr(), stdout); |
356 |
|
printargs(i, argv, stdout); |
357 |
|
printf("SOFTWARE= %s\n", VersionID); |
358 |
|
fputnow(stdout); |
387 |
|
|
388 |
|
void |
389 |
|
eputs( /* put string to stderr */ |
390 |
< |
char *s |
390 |
> |
const char *s |
391 |
|
) |
392 |
|
{ |
393 |
|
static int midline = 0; |