home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Educational / RasMol / Source / repres.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-11  |  2.0 KB  |  111 lines

  1. /* repres.h
  2.  * RasMol2 Molecular Graphics
  3.  * Roger Sayle, August 1995
  4.  * Version 2.6
  5.  */
  6.  
  7. #define DotMax    100
  8. typedef struct _DotStruct {
  9.         struct _DotStruct __far *next;
  10.         short col[DotMax];
  11.         Long xpos[DotMax];
  12.         Long ypos[DotMax];
  13.         Long zpos[DotMax];
  14.         int count;
  15.     } DotStruct;
  16.  
  17.  
  18. typedef struct _Monitor {
  19.         struct _Monitor *next;
  20.         Atom __far *src;
  21.         Atom __far *dst;
  22.         unsigned short dist;
  23.         short col;
  24.     } Monitor;
  25.  
  26.  
  27. typedef struct _Label {
  28.         struct _Label *next;
  29.         Long  refcount;
  30.         char *label;
  31.     } Label;
  32.  
  33.  
  34.  
  35. #ifdef REPRES
  36. DotStruct __far *DotPtr;
  37. Monitor *MonitList;
  38. Label *LabelList;
  39.  
  40. int CartoonHeight;
  41. int SolventDots;
  42. int ProbeRadius;
  43.  
  44. int DrawDots,DrawLabels;
  45. int DrawMonitDistance;
  46. int DrawBetaArrows;
  47.  
  48. #else
  49. extern DotStruct __far *DotPtr;
  50. extern Monitor *MonitList;
  51. extern Label *LabelList;
  52.  
  53. extern int CartoonHeight;
  54. extern int ProbeRadius;
  55. extern int SolventDots;
  56.  
  57. extern int DrawDots,DrawLabels;
  58. extern int DrawMonitDistance;
  59. extern int DrawBetaArrows;
  60.  
  61.  
  62. #ifdef FUNCPROTO
  63. int DeleteLabels();
  64. void DeleteLabel( Label* );
  65. Label *CreateLabel( char*, int );
  66. void DefineLabels( char* );
  67. void DefaultLabels( int );
  68. void DisplayLabels();
  69.  
  70. void DeleteMonitors();
  71. void AddMonitors( Atom __far*, Atom __far* );
  72. void CreateMonitor( Long, Long );
  73. void DisplayMonitors();
  74.  
  75. void DeleteSurface();
  76. void CalculateSurface( int );
  77. void DisplaySurface();
  78.  
  79. /* Ribbons & Cartoons */
  80. void DisplayRibbon( Chain __far* );
  81.  
  82. void ResetRepres();
  83. void InitialiseRepres();
  84.  
  85. #else /* non-ANSI C compiler */
  86. int DeleteLabels();
  87. void DeleteLabel();
  88. Label *CreateLabel( char*, int );
  89. void DefineLabels();
  90. void DefaultLabels();
  91. void DisplayLabels();
  92.  
  93. void DeleteMonitors();
  94. void AddMonitors();
  95. void CreateMonitor();
  96. void DisplayMonitors();
  97.  
  98. void DeleteSurface();
  99. void CalculateSurface();
  100. void DisplaySurface();
  101.  
  102. /* Ribbons & Cartoons */
  103. void DisplayRibbon();
  104.  
  105. void ResetRepres();
  106. void InitialiseRepres();
  107.  
  108. #endif
  109. #endif
  110.  
  111.