RasMol2
|
Announce,
ChangeLog,
ChangeLog.1,
ChangeLog.2,
ChangeLog.3,
ChangeLog.4,
ChangeLog.5,
ChangeLog.6,
INSTALL,
Imakefile,
Makefile,
Makefile.bak,
Makefile.in,
Makefile.nt,
Makefile.pc,
PROJECTS,
README,
TODO,
abstree.c,
abstree.h,
abstree.o,
applemac.c,
bitmaps.h,
cexio.c,
command.c,
command.h,
command.o,
data,
doc,
font.h,
graphics.h,
infile.c,
infile.h,
infile.o,
mac,
molecule.c,
molecule.h,
molecule.o,
mswin,
mswin31.c,
outfile.c,
outfile.h,
outfile.o,
pixutils.c,
pixutils.h,
pixutils.o,
rasmac.c,
rasmol.c,
rasmol.h,
rasmol.hlp,
rasmol.o,
rasmol.sh,
raswin.c,
render.c,
render.h,
render.o,
repres.c,
repres.h,
repres.o,
script.c,
script.h,
script.o,
tokens.h,
transfor.c,
transfor.h,
transfor.o,
vms,
x11win.c,
x11win.o,
|
|
|
/* transfor.h
* RasMol2 Molecular Graphics
* Roger Sayle, August 1995
* Version 2.6
*/
#define GroupAttr 0x00
#define ChainAttr 0x01
#define TempAttr 0x02
#define ChargeAttr 0x03
#define MaskColourFlag 0x01
#define MaskRadiusFlag 0x02
#define MaskBothFlag 0x03
#define RibColInside 0x01
#define RibColOutside 0x02
#define RibColBoth 0x03
#ifdef EIGHTBIT
#define DefaultAmbient 0.6
#define DefaultColDepth 16
#else
#define DefaultAmbient 0.05
#define DefaultColDepth 32
#endif
#define MAXSHADE 32
typedef struct {
Long refcount;
unsigned char r;
unsigned char g;
unsigned char b;
} ShadeDesc;
#ifdef IBMPC
#define BackCol 0
#define BoxCol 1
#define LabelCol 2
#define FirstCol 3
#endif
#ifdef APPLEMAC
#define BackCol 1
#define BoxCol 2
#define LabelCol 3
#define FirstCol 4
#endif
#if !defined(IBMPC) && !defined(APPLEMAC)
#define BackCol 5
#define BoxCol 6
#define LabelCol 7
#define FirstCol 8
#endif
#define Colour2Shade(x) ((int)((x)-FirstCol)/ColourDepth)
#define Shade2Colour(x) ((x)*ColourDepth+FirstCol)
#ifdef TRANSFORM
ShadeDesc Shade[MAXSHADE];
Real RotX[3],RotY[3],RotZ[3];
Real MatX[3],MatY[3],MatZ[3];
Real InvX[3],InvY[3],InvZ[3];
Long OrigCX,OrigCY,OrigCZ;
Long CenX, CenY, CenZ;
int FakeSpecular,SpecPower;
int ColourDepth,ColourMask;
int BackR,BackG,BackB;
int LabR,LabG,LabB;
int BoxR,BoxG,BoxB;
int UseLabelCol;
int UseBackFade;
Real Ambient;
Real Scale,MaxZoom;
Real DScale,IScale;
Long SideLen,Offset;
Card WorldRadius,WorldSize;
int XOffset,YOffset,ZOffset;
int UseScreenClip;
int ZoomRange;
int Hydrogens,HetaGroups;
int DrawAtoms,MaxAtomRadius;
int DrawBonds,MaxBondRadius;
int DrawRibbon;
int ZoneBoth;
#else
extern ShadeDesc Shade[MAXSHADE];
extern Real RotX[3],RotY[3],RotZ[3];
extern Real MatX[3],MatY[3],MatZ[3];
extern Real InvX[3],InvY[3],InvZ[3];
extern Long OrigCX, OrigCY, OrigCZ;
extern Long CenX, CenY, CenZ;
extern int FakeSpecular,SpecPower;
extern int ColourDepth,ColourMask;
extern int BackR,BackG,BackB;
extern int LabR,LabG,LabB;
extern int BoxR,BoxG,BoxB;
extern int UseLabelCol;
extern int UseBackFade;
extern Real Ambient;
extern Real Scale,MaxZoom;
extern Real DScale,IScale;
extern Long SideLen,Offset;
extern Card WorldRadius,WorldSize;
extern int XOffset,YOffset,ZOffset;
extern int UseScreenClip;
extern int ZoomRange;
extern int Hydrogens,HetaGroups;
extern int DrawAtoms,MaxAtomRadius;
extern int DrawBonds,MaxBondRadius;
extern int DrawRibbon;
extern int ZoneBoth;
#ifdef FUNCPROTO
void SetRadiusValue( int );
void SetRadiusTemperature();
void SetVanWaalRadius();
void DisableSpacefill();
void SetHBondStatus( int, int, int );
void SetRibbonStatus( int, int, int );
void SetRibbonCartoons();
void EnableWireframe( int, int );
void EnableBackbone( int, int );
void DisableWireframe();
void DisableBackbone();
void SelectZoneExpr( Expr* );
void RestrictZoneExpr( Expr* );
void RestrictZone( int );
void SelectZone( int );
int IsCPKColour( Atom __far * );
int IsVDWRadius( Atom __far * );
void DefineColourMap();
void ResetColourMap();
void ColourBackNone();
void ColourBondNone();
void ColourHBondType();
void ColourHBondNone( int );
void ColourRibbonNone( int );
void ColourMonitNone();
void ColourBackAttrib( int, int, int );
void ColourBondAttrib( int, int, int );
void ColourHBondAttrib( int, int, int, int );
void ColourRibbonAttrib( int, int, int, int );
void ColourMonitAttrib( int, int, int );
void ColourDotsAttrib( int, int, int );
void ColourDotsPotential();
void MonoColourAttrib( int, int, int );
void ScaleColourAttrib( int );
void CPKColourAttrib();
void AminoColourAttrib();
void ShapelyColourAttrib();
void StructColourAttrib();
void UserMaskAttrib( int );
void DetermineClipping();
void InitialiseTransform();
void InitialTransform();
void PrepareTransform();
void ReviseInvMatrix();
void ApplyTransform();
void ResetTransform();
#else /* non-ANSI C compiler */
void SetRadiusValue();
void SetRadiusTemperature();
void SetVanWaalRadius();
void DisableSpacefill();
void SetHBondStatus();
void SetRibbonStatus();
void SetRibbonCartoons();
void EnableWireframe();
void EnableBackbone();
void DisableWireframe();
void DisableBackbone();
void SelectZoneExpr();
void RestrictZoneExpr();
void RestrictZone();
void SelectZone();
int IsCPKColour();
int IsVDWRadius();
void DefineColourMap();
void ResetColourMap();
void ColourBackNone();
void ColourBondNone();
void ColourHBondType();
void ColourHBondNone();
void ColourRibbonNone();
void ColourMonitNone();
void ColourBackAttrib();
void ColourBondAttrib();
void ColourHBondAttrib();
void ColourRibbonAttrib();
void ColourMonitAttrib();
void ColourDotsAttrib();
void ColourDotsPotential();
void MonoColourAttrib();
void ScaleColourAttrib();
void CPKColourAttrib();
void AminoColourAttrib();
void ShapelyColourAttrib();
void StructColourAttrib();
void UserMaskAttrib();
void DetermineClipping();
void InitialiseTransform();
void InitialTransform();
void PrepareTransform();
void ReviseInvMatrix();
void ApplyTransform();
void ResetTransform();
#endif
#endif
|