00001 /* D M - P S . H 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 1993-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 /** @addtogroup libdm */ 00022 /*@{*/ 00023 /** @file dm-ps.h 00024 * 00025 */ 00026 #ifndef SEEN_DM_PS 00027 #define SEEN_DM_PS 00028 00029 /* 00030 * Display coordinate conversion: 00031 * GED is using -2048..+2047, 00032 * and we define the Postscript file to use 0..4095 00033 */ 00034 #define GED_TO_PS(x) ((int)((x)+2048)) 00035 00036 struct ps_vars { 00037 struct bu_list l; 00038 FILE *ps_fp; 00039 char ttybuf[BUFSIZ]; 00040 vect_t clipmin; 00041 vect_t clipmax; 00042 struct bu_vls fname; 00043 struct bu_vls font; 00044 struct bu_vls title; 00045 struct bu_vls creator; 00046 fastf_t scale; 00047 int linewidth; 00048 int zclip; 00049 int debug; 00050 }; 00051 00052 extern struct ps_vars head_ps_vars; 00053 00054 #endif /* SEEN_DM_PS */ 00055 /*@}*/ 00056 /* 00057 * Local Variables: 00058 * mode: C 00059 * tab-width: 8 00060 * c-basic-offset: 4 00061 * indent-tabs-mode: t 00062 * End: 00063 * ex: shiftwidth=4 tabstop=8 00064 */ 00065