BRL-CAD
optical.h File Reference

Header file for the BRL-CAD Optical Library, LIBOPTICAL. More...

#include "common.h"
#include "bu/vls.h"
#include "shadefuncs.h"
#include "shadework.h"
Include dependency graph for optical.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  floatpixel
 

Macros

#define R_DEBUG   rdebug
 
#define RDEBUG_HITS   0x00000001 /* 1 Print hits used by view() */
 
#define RDEBUG_MATERIAL   0x00000002 /* 2 Material properties */
 
#define RDEBUG_SHOWERR   0x00000004 /* 3 Colorful markers on errors */
 
#define RDEBUG_RTMEM   0x00000008 /* 4 Debug librt mem after startup */
 
#define RDEBUG_SHADE   0x00000010 /* 5 Shading calculation */
 
#define RDEBUG_PARSE   0x00000020 /* 6 Command parsing */
 
#define RDEBUG_LIGHT   0x00000040 /* 7 Debug lighting */
 
#define RDEBUG_REFRACT   0x00000080 /* 8 Debug reflection & refraction */
 
#define RDEBUG_STATS   0x00000200 /* 10 Print more statistics */
 
#define RDEBUG_RTMEM_END   0x00000400 /* 11 Print librt mem use on 'clean' */
 
#define RDEBUG_MISSPLOT   0x20000000 /* 30 plot(5) missed rays to stdout */
 
#define RDEBUG_RAYWRITE   0x40000000 /* 31 Ray(5V) view rays to stdout */
 
#define RDEBUG_RAYPLOT   0x80000000 /* 32 plot(5) rays to stdout */
 
#define RDEBUG_FORMAT   "\020\040RAYPLOT\037RAYWRITE\036MISSPLOT\\013RTMEM_END\\012STATS\010REFRACT\\7LIGHT\6PARSE\5SHADE\4RTMEM\3SHOWERR\2MATERIAL\1HITS"
 
#define VERBOSE_LIBVERSIONS   0x00000001 /* Library version strings */
 
#define VERBOSE_MODELTITLE   0x00000002 /* model title */
 
#define VERBOSE_TOLERANCE   0x00000004 /* model tolerance */
 
#define VERBOSE_STATS   0x00000008 /* stats about rt_gettrees() */
 
#define VERBOSE_FRAMENUMBER   0x00000010 /* current frame number */
 
#define VERBOSE_VIEWDETAIL   0x00000020 /* view specifications */
 
#define VERBOSE_LIGHTINFO   0x00000040 /* scene lights */
 
#define VERBOSE_INCREMENTAL   0x00000080 /* progressive/incremental state */
 
#define VERBOSE_MULTICPU   0x00000100 /* # of CPU's to be used */
 
#define VERBOSE_OUTPUTFILE   0x00000200 /* name of output image */
 
#define VERBOSE_FORMAT   "\012OUTPUTFILE\011MULTICPU\010INCREMENTAL\7LIGHTINFO\6VIEWDETAIL\\5FRAMENUMBER\4STATS\3TOLERANCE\2MODELTITLE\1LIBVERSIONS"
 

Functions

void optical_shader_init (struct mfuncs **headp)
 
int mlib_zero (struct application *, const struct partition *, struct shadework *, void *)
 
int mlib_one (struct region *, struct bu_vls *, void **, const struct mfuncs *, struct rt_i *)
 
void mlib_void (struct region *, void *)
 
int rr_render (struct application *app, const struct partition *pp, struct shadework *swp)
 
void shade_inputs (struct application *app, const struct partition *pp, struct shadework *swp, int want)
 
void wray (struct partition *pp, struct application *app, FILE *fp, const vect_t inormal)
 
void wraypts (vect_t in, vect_t inorm, vect_t out, int id, struct application *app, FILE *fp)
 
void wraypaint (vect_t start, vect_t norm, int paint, struct application *app, FILE *fp)
 
int viewshade (struct application *app, const struct partition *pp, struct shadework *swp)
 
const char * optical_version (void)
 

Variables

struct mfuncs camo_mfuncs []
 
struct mfuncs light_mfuncs []
 
struct mfuncs stk_mfuncs []
 
struct mfuncs phg_mfuncs []
 
struct mfuncs noise_mfuncs []
 
struct bn_tablespectrum
 
int rdebug
 
int rt_verbosity
 
double AmbientIntensity
 
vect_t background
 
struct region env_region
 
int max_bounces
 
int max_ireflect
 

Detailed Description

Header file for the BRL-CAD Optical Library, LIBOPTICAL.

Definition in file optical.h.