The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
ps.h
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file ps.h
5 
6  \version V1.14
7  \date 14.08.14
8  \brief Include file for PostScript routine
9 
10  \copyright (c) UCL / Dr. Andrew C. R. Martin 1993-2014
11  \author Dr. Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39  Include file for using with PSRoutines.c
40 
41  Variables are defined only from the main program. Otherwise they
42  are referenced as external.
43 
44 **************************************************************************
45 
46  Usage:
47  ======
48 
49 **************************************************************************
50 
51  Revision History:
52  =================
53 - V1.0 06.02.91 Original
54 - V1.7 25.02.91 Fixed prototypes and definition of PSFile.
55 - V1.10 07.05.92 Changed all prototypes to doubles
56 - V1.11 23.06.94 Made gPSFile a global
57 - V1.12 07.07.14 Use bl prefix for functions By: CTP
58 - V1.13 31.07.14 Updated deprecation: Removed deprecated.h and added
59  prototypes for renamed functions. By: CTP
60 - V1.14 14.08.14 Moved deprecated function prototypes to deprecated.h
61  By: CTP
62 
63 *************************************************************************/
64 #ifndef _PS_H
65 #define _PS_H
66 
67 /************************************************************************/
68 /* Includes
69 */
70 #include <stdio.h>
71 
72 #include "SysDefs.h"
73 #include "MathType.h"
74 
75 /************************************************************************/
76 /* Globals
77 */
78 #ifdef _PS_MAIN /* ------------------ _PS_MAIN ---------------------- */
79  REAL PSxpicsize = 5.0,
80  PSypicsize = 5.0,
81  PSxoffset = 1.0,
82  PSyoffset = 2.0;
83  FILE *gPSFile = NULL;
84 #else /* ----------------- Not _PS_MAIN ------------------- */
85  extern REAL PSxpicsize,
86  PSypicsize,
87  PSxoffset,
88  PSyoffset;
89  extern FILE *gPSFile;
90 #endif /* -------------------------------------------------- */
91 
92 /************************************************************************/
93 /* Prototypes
94 */
95 BOOL blPSInit(char *FName, char *creator, char *AltFont);
96 void blPSThick(REAL thickness);
97 void blPSMove(REAL X, REAL Y);
98 void blPSDraw(REAL X, REAL Y);
99 void blPSSetDash(char *linepatt);
100 void blPSClearDash(void);
101 void blPSStroke(void);
102 void blPSFont(char *fontname, REAL size);
103 void blPSLText(REAL X, REAL Y, char *label);
104 void blPSCBText(REAL X, REAL Y, REAL Offset, char *label);
105 void blPSROffText(REAL X, REAL Y, REAL offset, char *label);
106 void blPSLCText(REAL X, REAL Y, char *label);
107 void blPSCTText(REAL X, REAL Y, REAL Offset, char *label);
108 void blPSVText(REAL x, REAL y, REAL xoff, char *text, char *font, REAL size,
109  char *label, char *lfont, REAL lsize);
110 void blPSShowText(char *text);
111 void blPSEnd(void);
112 char *blPSCorrectCase(char *font);
113 
114 /************************************************************************/
115 /* Include deprecated functions */
116 #define _PS_H_DEPRECATED
117 # include "deprecated.h"
118 /************************************************************************/
119 
120 
121 #endif
void blPSLCText(REAL X, REAL Y, char *label)
Definition: ps.c:583
FILE * gPSFile
REAL PSyoffset
short BOOL
Definition: SysDefs.h:64
#define NULL
Definition: array2.c:99
void blPSVText(REAL x, REAL y, REAL xoff, char *text, char *font, REAL size, char *label, char *lfont, REAL lsize)
Definition: ps.c:688
Redirect calls to deprecated functions.
void blPSROffText(REAL X, REAL Y, REAL offset, char *label)
Definition: ps.c:548
void blPSCBText(REAL X, REAL Y, REAL Offset, char *label)
Definition: ps.c:490
void blPSEnd(void)
Definition: ps.c:840
double REAL
Definition: MathType.h:67
void blPSShowText(char *text)
Definition: ps.c:739
REAL PSypicsize
void blPSLText(REAL X, REAL Y, char *label)
Definition: ps.c:457
void blPSThick(REAL thickness)
Definition: ps.c:309
void blPSFont(char *fontname, REAL size)
Definition: ps.c:418
REAL PSxoffset
void blPSCTText(REAL X, REAL Y, REAL Offset, char *label)
Definition: ps.c:620
void blPSSetDash(char *linepatt)
Definition: ps.c:366
char * blPSCorrectCase(char *font)
Definition: ps.c:861
void blPSMove(REAL X, REAL Y)
Definition: ps.c:328
System-type variable type definitions.
REAL PSxpicsize
void blPSClearDash(void)
Definition: ps.c:382
Type definitions for maths.
BOOL blPSInit(char *FName, char *creator, char *AltFont)
Definition: ps.c:189
void blPSDraw(REAL X, REAL Y)
Definition: ps.c:348
void blPSStroke(void)
Definition: ps.c:397