| 1 | 
greg | 
2.1 | 
/* Copyright (c) 1991 Regents of the University of California */ | 
| 2 | 
  | 
  | 
 | 
| 3 | 
  | 
  | 
/* SCCSid "$SunId$ LBL" */ | 
| 4 | 
  | 
  | 
 | 
| 5 | 
  | 
  | 
/* | 
| 6 | 
  | 
  | 
 * Header file for modifiers using function files. | 
| 7 | 
  | 
  | 
 * Include after standard.h. | 
| 8 | 
  | 
  | 
 */ | 
| 9 | 
  | 
  | 
 | 
| 10 | 
  | 
  | 
#include  "calcomp.h" | 
| 11 | 
  | 
  | 
 | 
| 12 | 
  | 
  | 
#define  MAXEXPR        9       /* maximum expressions in modifier */ | 
| 13 | 
  | 
  | 
 | 
| 14 | 
  | 
  | 
typedef struct { | 
| 15 | 
  | 
  | 
        EPNODE  *ep[MAXEXPR+1];         /* NULL-terminated expression list */ | 
| 16 | 
  | 
  | 
        char  *ctx;                     /* context (from file name) */ | 
| 17 | 
  | 
  | 
        XF  *f, *b;                     /* forward and backward transforms */ | 
| 18 | 
  | 
  | 
} MFUNC;                        /* material function */ | 
| 19 | 
  | 
  | 
 | 
| 20 | 
  | 
  | 
extern XF  unitxf;              /* identity transform */ | 
| 21 | 
  | 
  | 
extern XF  funcxf;              /* current transform */ | 
| 22 | 
  | 
  | 
 | 
| 23 | 
  | 
  | 
extern MFUNC  *getfunc();       /* get MFUNC structure for modifier */ |