BRL-CAD
dm-ps.h
Go to the documentation of this file.
1 /* D M - P S . H
2  * BRL-CAD
3  *
4  * Copyright (c) 1993-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 
21 /** @addtogroup libdm */
22 /** @{ */
23 /** @file dm-ps.h
24  *
25  */
26 
27 #ifndef DM_PS_H
28 #define DM_PS_H
29 
30 /*
31  * Display coordinate conversion:
32  * GED is using -2048..+2047,
33  * and we define the Postscript file to use 0..4095
34  */
35 #define GED_TO_PS(x) ((int)((x)+2048))
36 
37 struct ps_vars {
38  struct bu_list l;
39  FILE *ps_fp;
40  char ttybuf[BUFSIZ];
41  vect_t clipmin;
42  vect_t clipmax;
43  struct bu_vls fname;
44  struct bu_vls font;
45  struct bu_vls title;
46  struct bu_vls creator;
48  int linewidth;
49  int zclip;
50  int debug;
51 };
52 
53 extern struct ps_vars head_ps_vars;
54 
55 #endif /* DM_PS_H */
56 
57 /** @} */
58 /*
59  * Local Variables:
60  * mode: C
61  * tab-width: 8
62  * indent-tabs-mode: t
63  * c-file-style: "stroustrup"
64  * End:
65  * ex: shiftwidth=4 tabstop=8
66  */
Definition: list.h:118
char ttybuf[BUFSIZ]
Definition: dm-ps.h:40
Definition: dm-ps.h:37
vect_t clipmax
Definition: dm-ps.h:42
int zclip
Definition: dm-ps.h:49
fastf_t scale
Definition: dm-ps.h:47
int linewidth
Definition: dm-ps.h:48
struct bu_vls font
Definition: dm-ps.h:44
struct bu_vls title
Definition: dm-ps.h:45
struct bu_list l
Definition: dm-ps.h:38
int debug
Definition: dm-ps.h:50
struct ps_vars head_ps_vars
Definition: dm-ps.c:62
FILE * ps_fp
Definition: dm-ps.h:39
struct bu_vls creator
Definition: dm-ps.h:46
struct bu_vls fname
Definition: dm-ps.h:43
vect_t clipmin
Definition: dm-ps.h:41
Definition: vls.h:56
double fastf_t
Definition: defines.h:300