Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
plotting.h
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file plotting.h
5 
6  \version V1.3
7  \date 14.08.14
8  \brief Include file for using plotting routines
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 
40 **************************************************************************
41 
42  Usage:
43  ======
44 
45 **************************************************************************
46 
47  Revision History:
48  =================
49 
50 - V1.1 07.07.14 Use bl prefix for functions By: CTP
51 - V1.2 31.07.14 Updated deprecation: Removed deprecated.h and added
52  prototypes for renamed functions. By: CTP
53 - V1.3 14.08.14 Moved deprecated function prototypes to deprecated.h
54  By: CTP
55 
56 *************************************************************************/
57 #ifndef _PLOTTING_H
58 #define _PLOTTING_H
59 
60 /************************************************************************/
61 /* Includes
62 */
63 #include <stdio.h>
64 #include "SysDefs.h"
65 #include "MathType.h"
66 
67 #include "hpgl.h"
68 #include "ps.h"
69 
70 /************************************************************************/
71 /* Defines
72 */
73 #define DEST_SCREEN 0
74 #define DEST_PS 1
75 #define DEST_HPGL 2
76 
77 /************************************************************************/
78 /* Prototypes
79 */
80 BOOL blAMInitPlot(char *filename, char *title, int dest, REAL OutXSize,
81  REAL OutYSize, REAL OutXOff, REAL OutYOff,
82  char *AltFont, REAL xmargin, REAL ymargin,
83  REAL DataXMin, REAL DataYMin, REAL DataXMax,
84  REAL DataYMax);
85 void blAMSetPen(int dest, int pen);
86 void blAMMove(int dest, REAL x, REAL y);
87 void blAMDraw(int dest, REAL x, REAL y);
88 void blAMSetLineStyle(int dest, int style);
89 void blAMEndLine(int dest);
90 void blAMSetFont(int dest, char *PSFontName, REAL FontSize);
91 void blAMText(int dest, REAL x, REAL y, char *text);
92 void blAMCBText(int dest, REAL x, REAL y, char *text);
93 void blAMRText(int dest, REAL x, REAL y, REAL offset, char *text);
94 void blAMLCText(int dest, REAL x, REAL y, char *text);
95 void blAMCTText(int dest, REAL x, REAL y, REAL CTOffset, char *text);
96 void blAMEndPlot(int dest);
97 int blPS2HPGLFont(char *font);
98 char *blSimplifyText(char *string);
99 
100 /************************************************************************/
101 /* Include deprecated functions */
102 #define _PLOTTING_H_DEPRECATED
103 # include "deprecated.h"
104 /************************************************************************/
105 
106 
107 #endif
void blAMRText(int dest, REAL x, REAL y, REAL offset, char *text)
Definition: plotting.c:614
Include file for hpgl.
void blAMMove(int dest, REAL x, REAL y)
Definition: plotting.c:303
void blAMSetFont(int dest, char *PSFontName, REAL FontSize)
Definition: plotting.c:472
short BOOL
Definition: SysDefs.h:64
Include file for PostScript routine.
BOOL blAMInitPlot(char *filename, char *title, int dest, REAL OutXSize, REAL OutYSize, REAL OutXOff, REAL OutYOff, char *AltFont, REAL xmargin, REAL ymargin, REAL DataXMin, REAL DataYMin, REAL DataXMax, REAL DataYMax)
Definition: plotting.c:204
int blPS2HPGLFont(char *font)
Definition: plotting.c:803
Redirect calls to deprecated functions.
void blAMEndLine(int dest)
Definition: plotting.c:432
void blAMCBText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:563
void blAMLCText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:665
double REAL
Definition: MathType.h:67
void blAMText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:515
void blAMSetLineStyle(int dest, int style)
Definition: plotting.c:392
void blAMDraw(int dest, REAL x, REAL y)
Definition: plotting.c:347
char * blSimplifyText(char *string)
Definition: plotting.c:915
System-type variable type definitions.
void blAMEndPlot(int dest)
Definition: plotting.c:764
Type definitions for maths.
void blAMCTText(int dest, REAL x, REAL y, REAL CTOffset, char *text)
Definition: plotting.c:718
void blAMSetPen(int dest, int pen)
Definition: plotting.c:261