#include <math.h>#include "haio.h"#include "canvas3d.h"#include "abstree.h"#include "font.h"
pixutils.c RasMol2 Molecular Graphics Roger Sayle, August 1995 Version 2.6
|
|
Value: if( (d) > *(dptr) ) \
{ *(dptr) = (d); \
*(fptr) = (c); \
}
|
|
|
Value: z1 += zrate; SETPIXEL(dptr,fptr,z1,c); \
if( (zerr+=dz)>0 ) { zerr-=(s); z1+=iz; }
|
|
|
Value: { if((err+=dy)>0) { fptr+=ystep; dptr+=ystep; err-=dx; } \
fptr+=ix; dptr+=ix; x1+=ix; CommonStep(dx); }
|
|
|
Value: { if((err+=dx)>0) { fptr+=ix; dptr+=ix; err-=dy; } \
fptr+=ystep; dptr+=ystep; y1+=iy; CommonStep(dy); }
|
|
|
Value: z1 += zrate; c1 += crate; \
SETPIXEL(dptr,fptr,z1,Lut[col+c1]); \
if( (zerr+=dz)>0 ) { zerr -= (s); z1 += iz; } \
if( (cerr+=dc)>0 ) { cerr -= (s); c1 += iz; }
|
|
|
Value: { if((err+=dy)>0) { fptr+=ystep; dptr+=ystep; err-=dx; } \
fptr+=ix; dptr+=ix; x1+=ix; CommonVectStep(dx); }
|
|
|
Value: { if((err+=dx)>0) { fptr+=ix; dptr+=ix; err-=dy; } \
fptr+=ystep; dptr+=ystep; y1+=iy; CommonVectStep(dy); }
|
|
|
Value: depth = (dz)+z; \
if( depth > *dptr ) \
{ *dptr = depth; \
fptr = fold+dx; \
CalcInten((dz)); \
if( inten>0 ) \
{ inten = (int)((inten*ColConst[rad])>>ColBits); \
*fptr = Lut[col+inten]; \
} else *fptr = Lut[col]; \
} \
dptr++; dx++;
|
|
|
Value: dx = -wide; \
dptr = dold-wide; \
tptr = LookUp[wide]+wide; \
while( dx<0 ) { UpdateAcross(*tptr); tptr--; } \
do { UpdateAcross(*tptr); tptr++; } while(dx<=wide); \
dold += View.yskip; fold += View.yskip; \
dy++;
|
1.3.6