QSAS_2_4/QSAS_dist/src/Utilities/qplplot/plot3d.c File Reference

#include "plplotP.h"

Defines

#define BINC   50
#define NPTS   100
#define min3(a, b, c)   (MIN((MIN(a,b)),c))
#define max3(a, b, c)   (MAX((MAX(a,b)),c))

Functions

static void plgrid3 (PLFLT)
static void plnxtv (PLINT *, PLINT *, PLFLT *, PLINT, PLINT)
static void plside3 (PLFLT *, PLFLT *, PLFLT **, PLINT, PLINT, PLINT)
static void plt3zz (PLINT, PLINT, PLINT, PLINT, PLINT, PLINT *, PLFLT *, PLFLT *, PLFLT **, PLINT, PLINT, PLINT *, PLINT *, PLFLT *)
static void plnxtvhi (PLINT *, PLINT *, PLFLT *, PLINT, PLINT)
static void plnxtvlo (PLINT *, PLINT *, PLFLT *, PLINT, PLINT)
static void plnxtvhi_draw (PLINT *u, PLINT *v, PLFLT *c, PLINT n)
static void savehipoint (PLINT, PLINT)
static void savelopoint (PLINT, PLINT)
static void swaphiview (void)
static void swaploview (void)
static void myexit (char *)
static void myabort (char *)
static void freework (void)
static int plabv (PLINT, PLINT, PLINT, PLINT, PLINT, PLINT)
static void pl3cut (PLINT, PLINT, PLINT, PLINT, PLINT, PLINT, PLINT, PLINT, PLINT *, PLINT *)
static PLFLT plGetAngleToLight (PLFLT *x, PLFLT *y, PLFLT *z)
static void plP_draw3d (PLINT x, PLINT y, PLFLT *c, PLINT j, PLINT move)
static void plxyindexlimits (PLINT instart, PLINT inn, PLINT *inarray_min, PLINT *inarray_max, PLINT *outstart, PLINT *outn, PLINT outnmax, PLINT *outarray_min, PLINT *outarray_max)
void c_pllightsource (PLFLT x, PLFLT y, PLFLT z)
void c_plmesh (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt)
void c_plmeshc (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLFLT *clevel, PLINT nlevel)
int plP_clip_poly (int Ni, PLFLT *Vi[3], int axis, PLFLT dir, PLFLT offset)
static void shade_triangle (PLFLT x0, PLFLT y0, PLFLT z0, PLFLT x1, PLFLT y1, PLFLT z1, PLFLT x2, PLFLT y2, PLFLT z2)
void c_plsurf3d (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLFLT *clevel, PLINT nlevel)
void c_plsurf3dl (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLFLT *clevel, PLINT nlevel, PLINT ixstart, PLINT ixn, PLINT *indexymin, PLINT *indexymax)
void c_plot3d (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLBOOL side)
void c_plot3dc (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLFLT *clevel, PLINT nlevel)
void c_plot3dcl (PLFLT *x, PLFLT *y, PLFLT **z, PLINT nx, PLINT ny, PLINT opt, PLFLT *clevel, PLINT nlevel, PLINT ixstart, PLINT ixn, PLINT *indexymin, PLINT *indexymax)
void plP_gzback (PLINT **zbf, PLINT **zbc, PLFLT **zbt, PLINT **zbw)
void plRotationShear (PLFLT *xFormMatrix, PLFLT *rotation, PLFLT *shear, PLFLT *stride)

Variables

static PLINT pl3mode = 0
static PLINT pl3upv = 1
static PLINT zbflg = 0
static PLINT zbcol
static PLINT zbwidth
static PLFLT zbtck
static PLINToldhiview = NULL
static PLINToldloview = NULL
static PLINTnewhiview = NULL
static PLINTnewloview = NULL
static PLINTutmp = NULL
static PLINTvtmp = NULL
static PLFLTctmp = NULL
static PLINT mhi
static PLINT xxhi
static PLINT newhisize
static PLINT mlo
static PLINT xxlo
static PLINT newlosize
static PLFLT xlight
static PLFLT ylight
static PLFLT zlight
static PLINT falsecolor = 0
static PLFLT fc_minz
static PLFLT fc_maxz

Define Documentation

#define BINC   50

#define max3 ( a,
b,
 )     (MAX((MAX(a,b)),c))

#define min3 ( a,
b,
 )     (MIN((MIN(a,b)),c))

#define NPTS   100


Function Documentation

void c_pllightsource ( PLFLT  x,
PLFLT  y,
PLFLT  z 
)

void c_plmesh ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt 
)

void c_plmeshc ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLFLT clevel,
PLINT  nlevel 
)

void c_plot3d ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLBOOL  side 
)

void c_plot3dc ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLFLT clevel,
PLINT  nlevel 
)

void c_plot3dcl ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLFLT clevel,
PLINT  nlevel,
PLINT  ixstart,
PLINT  ixn,
PLINT indexymin,
PLINT indexymax 
)

void c_plsurf3d ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLFLT clevel,
PLINT  nlevel 
)

void c_plsurf3dl ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt,
PLFLT clevel,
PLINT  nlevel,
PLINT  ixstart,
PLINT  ixn,
PLINT indexymin,
PLINT indexymax 
)

static void freework ( void   )  [static]

static void myabort ( char *  msg  )  [static]

static void myexit ( char *  msg  )  [static]

static void pl3cut ( PLINT  sx1,
PLINT  sy1,
PLINT  sx2,
PLINT  sy2,
PLINT  su1,
PLINT  sv1,
PLINT  su2,
PLINT  sv2,
PLINT cx,
PLINT cy 
) [static]

static int plabv ( PLINT  px,
PLINT  py,
PLINT  sx1,
PLINT  sy1,
PLINT  sx2,
PLINT  sy2 
) [static]

static PLFLT plGetAngleToLight ( PLFLT x,
PLFLT y,
PLFLT z 
) [static]

static void plgrid3 ( PLFLT  tick  )  [static]

static void plnxtv ( PLINT u,
PLINT v,
PLFLT c,
PLINT  n,
PLINT  init 
) [static]

static void plnxtvhi ( PLINT u,
PLINT v,
PLFLT c,
PLINT  n,
PLINT  init 
) [static]

static void plnxtvhi_draw ( PLINT u,
PLINT v,
PLFLT c,
PLINT  n 
) [static]

static void plnxtvlo ( PLINT u,
PLINT v,
PLFLT c,
PLINT  n,
PLINT  init 
) [static]

int plP_clip_poly ( int  Ni,
PLFLT Vi[3],
int  axis,
PLFLT  dir,
PLFLT  offset 
)

static void plP_draw3d ( PLINT  x,
PLINT  y,
PLFLT c,
PLINT  j,
PLINT  move 
) [static]

void plP_gzback ( PLINT **  zbf,
PLINT **  zbc,
PLFLT **  zbt,
PLINT **  zbw 
)

void plRotationShear ( PLFLT xFormMatrix,
PLFLT rotation,
PLFLT shear,
PLFLT stride 
)

static void plside3 ( PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT  opt 
) [static]

static void plt3zz ( PLINT  x0,
PLINT  y0,
PLINT  dx,
PLINT  dy,
PLINT  flag,
PLINT init,
PLFLT x,
PLFLT y,
PLFLT **  z,
PLINT  nx,
PLINT  ny,
PLINT u,
PLINT v,
PLFLT c 
) [static]

static void plxyindexlimits ( PLINT  instart,
PLINT  inn,
PLINT inarray_min,
PLINT inarray_max,
PLINT outstart,
PLINT outn,
PLINT  outnmax,
PLINT outarray_min,
PLINT outarray_max 
) [static]

static void savehipoint ( PLINT  px,
PLINT  py 
) [static]

static void savelopoint ( PLINT  px,
PLINT  py 
) [static]

static void shade_triangle ( PLFLT  x0,
PLFLT  y0,
PLFLT  z0,
PLFLT  x1,
PLFLT  y1,
PLFLT  z1,
PLFLT  x2,
PLFLT  y2,
PLFLT  z2 
) [static]

static void swaphiview ( void   )  [static]

static void swaploview ( void   )  [static]


Variable Documentation

PLFLT* ctmp = NULL [static]

PLINT falsecolor = 0 [static]

PLFLT fc_maxz [static]

PLFLT fc_minz [static]

PLINT mhi [static]

PLINT mlo [static]

PLINT newhisize [static]

PLINT* newhiview = NULL [static]

PLINT newlosize [static]

PLINT* newloview = NULL [static]

PLINT* oldhiview = NULL [static]

PLINT* oldloview = NULL [static]

PLINT pl3mode = 0 [static]

PLINT pl3upv = 1 [static]

PLINT* utmp = NULL [static]

PLINT* vtmp = NULL [static]

PLFLT xlight [static]

PLINT xxhi [static]

PLINT xxlo [static]

PLFLT ylight [static]

PLINT zbcol [static]

PLINT zbflg = 0 [static]

PLFLT zbtck [static]

PLINT zbwidth [static]

PLFLT zlight [static]


Generated on Fri Jan 8 12:51:26 2010 for QSAS by  doxygen 1.5.7