File illuminator.h

RCS Header

This is the interface for the Illuminator library.


Included Files


Preprocessor definitions

#define ORBIT2 1

#define _REENTRANT 1

#define IMLIB2_EXISTS 1

#define _FORTIFY_SOURCE 2

#define ILLUMINATOR_H

#define FLIP_HORIZONTAL 0x01

#define FLIP_VERTICAL 0x02

#define ROTATE_LEFT 0x04

#define COMPRESS_INT_MASK 0x30

#define COMPRESS_INT_NONE 0x00

#define COMPRESS_INT_LONG 0x10

#define COMPRESS_INT_SHORT 0x20

#define COMPRESS_INT_CHAR 0x30

#define COMPRESS_GZIP_MASK 0x0F

#define COMPRESS_GZIP_NONE 0x00

#define COMPRESS_GZIP_FAST 0x01

#define COMPRESS_GZIP_BEST 0x0A


Typedef ISurface

The ISurface type is the container (or object class) for triangle data which illuminator will render.

typedef void* ISurface


Typedef IDisplay

The IDisplay type is the container for display data, such as the geomview output pipe, RGB buffer, multi-layer z-buffer, etc.

typedef void* IDisplay


Typedef field_plot_type

A value of field_plot_type is attached to each field in a simulation in order to visualize them properly. Types are as follows:

typedef enum {...} field_plot_type

enum  
   {  
      FIELD_SCALAR; Scalar field.
      FIELD_TERNARY; Ternary composition field with two components (third component is inferred from first two).
      FIELD_TERNARY_SQUARE; Ternary composition with pseudo-components mapping onto a rectangle instead of a triangle.
      FIELD_VECTOR; Vector field.
      FIELD_TENSOR_FULL; Full ds*ds tensor field, e.g. transformation.
      FIELD_TENSOR_SYMMETRIC; Symmetric tensor field (using lines in principal stress directions).
      FIELD_TENSOR_SHEAR; Shear tensor field, both symmetric and inferring last diagonal from the opposite of the sum of the others.
   }  

Typedef IllLayerStyle

typedef enum {...} IllLayerStyle
enum  
   {  
      DEFAULT;  
      X_UP;  
      X_DOWN;  
      Y_UP;  
      Y_DOWN;  
      Z_UP;  
      Z_DOWN;  
   }  

Typedef IllImageFormat

typedef enum {...} IllImageFormat
enum  
   {  
      PPM;  
      TIFF;  
      PNG;  
      JPEG;  
      GIF;  
   }  

Local Function DATriangulate()

static inline int DATriangulate ( ISurface Surf, DA theda, Vec globalX, int this, PetscScalar* minmax, int n_quants, PetscScalar* isoquants, PetscScalar* colors, PetscTruth xcut, PetscTruth ycut, PetscTruth zcut )

Local Function DATriangulateLocal()

static inline int DATriangulateLocal ( ISurface Surf, DA theda, Vec localX, int this, PetscScalar* minmax, int n_quants, PetscScalar* isoquants, PetscScalar* colors, PetscTruth xcut, PetscTruth ycut, PetscTruth zcut )