Back to index

radiance  4R0+20100331
Classes | Defines | Functions | Variables
otypes.h File Reference

Go to the source code of this file.

Classes

struct  FUN

Defines

#define OBJ_FACE   0 /* polygon */
#define OBJ_CONE   1 /* cone */
#define OBJ_SPHERE   2 /* sphere */
#define TEX_FUNC   3 /* surface texture function */
#define OBJ_RING   4 /* disk */
#define OBJ_CYLINDER   5 /* cylinder */
#define OBJ_INSTANCE   6 /* octree instance */
#define OBJ_CUP   7 /* inverted cone */
#define OBJ_BUBBLE   8 /* inverted sphere */
#define OBJ_TUBE   9 /* inverted cylinder */
#define OBJ_MESH   10 /* mesh instance */
#define MOD_ALIAS   11 /* modifier alias */
#define MAT_PLASTIC   12 /* plastic surface */
#define MAT_METAL   13 /* metal surface */
#define MAT_GLASS   14 /* thin glass surface */
#define MAT_TRANS   15 /* translucent material */
#define MAT_DIELECTRIC   16 /* dielectric material */
#define MAT_PLASTIC2   17 /* anisotropic plastic */
#define MAT_METAL2   18 /* anisotropic metal */
#define MAT_TRANS2   19 /* anisotropic translucent material */
#define MAT_INTERFACE   20 /* dielectric interface */
#define MAT_PFUNC   21 /* plastic brdf function */
#define MAT_MFUNC   22 /* metal brdf function */
#define PAT_BFUNC   23 /* brightness function */
#define PAT_BDATA   24 /* brightness data */
#define PAT_BTEXT   25 /* monochromatic text */
#define PAT_CPICT   26 /* color picture */
#define MAT_GLOW   27 /* proximity light source */
#define OBJ_SOURCE   28 /* distant source */
#define MAT_LIGHT   29 /* primary light source */
#define MAT_ILLUM   30 /* secondary light source */
#define MAT_SPOT   31 /* spot light source */
#define MAT_MIST   32 /* mist medium */
#define MAT_MIRROR   33 /* mirror (secondary source) */
#define MAT_TFUNC   34 /* trans brdf function */
#define MAT_BRTDF   35 /* brtd function */
#define MAT_PDATA   36 /* plastic brdf data */
#define MAT_MDATA   37 /* metal brdf data */
#define MAT_TDATA   38 /* trans brdf data */
#define PAT_CFUNC   39 /* color function */
#define MAT_CLIP   40 /* clipping surface */
#define PAT_CDATA   41 /* color data */
#define PAT_CTEXT   42 /* colored text */
#define TEX_DATA   43 /* surface texture data */
#define MIX_FUNC   44 /* mixing function */
#define MIX_DATA   45 /* mixing data */
#define MIX_TEXT   46 /* mixing text */
#define MIX_PICT   47 /* mixing picture */
#define MAT_DIRECT1   48 /* unidirecting material */
#define MAT_DIRECT2   49 /* bidirecting material */
#define NUMOTYPE   50
#define T_S   01 /* surface (object) */
#define T_M   02 /* material */
#define T_P   04 /* pattern */
#define T_T   010 /* texture */
#define T_X   020 /* mixture */
#define T_V   040 /* volume */
#define T_L   0100 /* light source modifier */
#define T_LV   0200 /* virtual light source modifier */
#define T_F   0400 /* function */
#define T_D   01000 /* data */
#define T_I   02000 /* picture */
#define T_E   04000 /* text */
#define T_SP1   010000
#define T_SP2   020000
#define T_SP3   040000
#define issurface(t)   (ofun[t].flags & T_S)
#define isvolume(t)   (ofun[t].flags & T_V)
#define ismodifier(t)   (!(ofun[t].flags & (T_S|T_V)))
#define ismaterial(t)   (ofun[t].flags & T_M)
#define ispattern(t)   (ofun[t].flags & T_P)
#define istexture(t)   (ofun[t].flags & T_T)
#define ismixture(t)   (ofun[t].flags & T_X)
#define islight(t)   (ofun[t].flags & T_L)
#define isvlight(t)   (ofun[t].flags & T_LV)
#define hasdata(t)   (ofun[t].flags & (T_D|T_I))
#define hasfunc(t)   (ofun[t].flags & (T_F|T_D|T_I))
#define hastext(t)   (ofun[t].flags & T_E)
#define isflat(t)   ((t)==OBJ_FACE || (t)==OBJ_RING)
#define ALIASKEY   "alias" /* alias keyword */
#define ALIASMOD   "inherit" /* inherit target modifier */
#define INIT_OTYPE

Functions

int o_default ()

Variables

FUN ofun []

Define Documentation

#define ALIASKEY   "alias" /* alias keyword */

Definition at line 116 of file otypes.h.

#define ALIASMOD   "inherit" /* inherit target modifier */

Definition at line 117 of file otypes.h.

#define hasdata (   t)    (ofun[t].flags & (T_D|T_I))

Definition at line 111 of file otypes.h.

#define hasfunc (   t)    (ofun[t].flags & (T_F|T_D|T_I))

Definition at line 112 of file otypes.h.

#define hastext (   t)    (ofun[t].flags & T_E)

Definition at line 113 of file otypes.h.

#define INIT_OTYPE

Definition at line 120 of file otypes.h.

#define isflat (   t)    ((t)==OBJ_FACE || (t)==OBJ_RING)

Definition at line 114 of file otypes.h.

#define islight (   t)    (ofun[t].flags & T_L)

Definition at line 109 of file otypes.h.

#define ismaterial (   t)    (ofun[t].flags & T_M)

Definition at line 105 of file otypes.h.

#define ismixture (   t)    (ofun[t].flags & T_X)

Definition at line 108 of file otypes.h.

#define ismodifier (   t)    (!(ofun[t].flags & (T_S|T_V)))

Definition at line 104 of file otypes.h.

#define ispattern (   t)    (ofun[t].flags & T_P)

Definition at line 106 of file otypes.h.

#define issurface (   t)    (ofun[t].flags & T_S)

Definition at line 102 of file otypes.h.

#define istexture (   t)    (ofun[t].flags & T_T)

Definition at line 107 of file otypes.h.

#define isvlight (   t)    (ofun[t].flags & T_LV)

Definition at line 110 of file otypes.h.

#define isvolume (   t)    (ofun[t].flags & T_V)

Definition at line 103 of file otypes.h.

#define MAT_BRTDF   35 /* brtd function */

Definition at line 65 of file otypes.h.

#define MAT_CLIP   40 /* clipping surface */

Definition at line 70 of file otypes.h.

#define MAT_DIELECTRIC   16 /* dielectric material */

Definition at line 46 of file otypes.h.

#define MAT_DIRECT1   48 /* unidirecting material */

Definition at line 78 of file otypes.h.

#define MAT_DIRECT2   49 /* bidirecting material */

Definition at line 79 of file otypes.h.

#define MAT_GLASS   14 /* thin glass surface */

Definition at line 44 of file otypes.h.

#define MAT_GLOW   27 /* proximity light source */

Definition at line 57 of file otypes.h.

#define MAT_ILLUM   30 /* secondary light source */

Definition at line 60 of file otypes.h.

#define MAT_INTERFACE   20 /* dielectric interface */

Definition at line 50 of file otypes.h.

#define MAT_LIGHT   29 /* primary light source */

Definition at line 59 of file otypes.h.

#define MAT_MDATA   37 /* metal brdf data */

Definition at line 67 of file otypes.h.

#define MAT_METAL   13 /* metal surface */

Definition at line 43 of file otypes.h.

#define MAT_METAL2   18 /* anisotropic metal */

Definition at line 48 of file otypes.h.

#define MAT_MFUNC   22 /* metal brdf function */

Definition at line 52 of file otypes.h.

#define MAT_MIRROR   33 /* mirror (secondary source) */

Definition at line 63 of file otypes.h.

#define MAT_MIST   32 /* mist medium */

Definition at line 62 of file otypes.h.

#define MAT_PDATA   36 /* plastic brdf data */

Definition at line 66 of file otypes.h.

#define MAT_PFUNC   21 /* plastic brdf function */

Definition at line 51 of file otypes.h.

#define MAT_PLASTIC   12 /* plastic surface */

Definition at line 42 of file otypes.h.

#define MAT_PLASTIC2   17 /* anisotropic plastic */

Definition at line 47 of file otypes.h.

#define MAT_SPOT   31 /* spot light source */

Definition at line 61 of file otypes.h.

#define MAT_TDATA   38 /* trans brdf data */

Definition at line 68 of file otypes.h.

#define MAT_TFUNC   34 /* trans brdf function */

Definition at line 64 of file otypes.h.

#define MAT_TRANS   15 /* translucent material */

Definition at line 45 of file otypes.h.

#define MAT_TRANS2   19 /* anisotropic translucent material */

Definition at line 49 of file otypes.h.

#define MIX_DATA   45 /* mixing data */

Definition at line 75 of file otypes.h.

#define MIX_FUNC   44 /* mixing function */

Definition at line 74 of file otypes.h.

#define MIX_PICT   47 /* mixing picture */

Definition at line 77 of file otypes.h.

#define MIX_TEXT   46 /* mixing text */

Definition at line 76 of file otypes.h.

#define MOD_ALIAS   11 /* modifier alias */

Definition at line 41 of file otypes.h.

#define NUMOTYPE   50

Definition at line 81 of file otypes.h.

#define OBJ_BUBBLE   8 /* inverted sphere */

Definition at line 38 of file otypes.h.

#define OBJ_CONE   1 /* cone */

Definition at line 31 of file otypes.h.

#define OBJ_CUP   7 /* inverted cone */

Definition at line 37 of file otypes.h.

#define OBJ_CYLINDER   5 /* cylinder */

Definition at line 35 of file otypes.h.

#define OBJ_FACE   0 /* polygon */

Definition at line 30 of file otypes.h.

#define OBJ_INSTANCE   6 /* octree instance */

Definition at line 36 of file otypes.h.

#define OBJ_MESH   10 /* mesh instance */

Definition at line 40 of file otypes.h.

#define OBJ_RING   4 /* disk */

Definition at line 34 of file otypes.h.

#define OBJ_SOURCE   28 /* distant source */

Definition at line 58 of file otypes.h.

#define OBJ_SPHERE   2 /* sphere */

Definition at line 32 of file otypes.h.

#define OBJ_TUBE   9 /* inverted cylinder */

Definition at line 39 of file otypes.h.

#define PAT_BDATA   24 /* brightness data */

Definition at line 54 of file otypes.h.

#define PAT_BFUNC   23 /* brightness function */

Definition at line 53 of file otypes.h.

#define PAT_BTEXT   25 /* monochromatic text */

Definition at line 55 of file otypes.h.

#define PAT_CDATA   41 /* color data */

Definition at line 71 of file otypes.h.

#define PAT_CFUNC   39 /* color function */

Definition at line 69 of file otypes.h.

#define PAT_CPICT   26 /* color picture */

Definition at line 56 of file otypes.h.

#define PAT_CTEXT   42 /* colored text */

Definition at line 72 of file otypes.h.

#define T_D   01000 /* data */

Definition at line 92 of file otypes.h.

#define T_E   04000 /* text */

Definition at line 94 of file otypes.h.

#define T_F   0400 /* function */

Definition at line 91 of file otypes.h.

#define T_I   02000 /* picture */

Definition at line 93 of file otypes.h.

#define T_L   0100 /* light source modifier */

Definition at line 89 of file otypes.h.

#define T_LV   0200 /* virtual light source modifier */

Definition at line 90 of file otypes.h.

#define T_M   02 /* material */

Definition at line 84 of file otypes.h.

#define T_P   04 /* pattern */

Definition at line 85 of file otypes.h.

#define T_S   01 /* surface (object) */

Definition at line 83 of file otypes.h.

#define T_SP1   010000

Definition at line 96 of file otypes.h.

#define T_SP2   020000

Definition at line 97 of file otypes.h.

#define T_SP3   040000

Definition at line 98 of file otypes.h.

#define T_T   010 /* texture */

Definition at line 86 of file otypes.h.

#define T_V   040 /* volume */

Definition at line 88 of file otypes.h.

#define T_X   020 /* mixture */

Definition at line 87 of file otypes.h.

#define TEX_DATA   43 /* surface texture data */

Definition at line 73 of file otypes.h.

#define TEX_FUNC   3 /* surface texture function */

Definition at line 33 of file otypes.h.


Function Documentation

int o_default ( )

Definition at line 18 of file init2otypes.c.

{
       return(O_MISS);
}

Here is the caller graph for this function:


Variable Documentation

FUN ofun[]

Definition at line 19 of file rglfile.c.