~ubuntu-branches/ubuntu/raring/python-scipy/raring-proposed

« back to all changes in this revision

Viewing changes to Lib/sandbox/xplt/src/gist/ps.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-07 14:12:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070107141212-mm0ebkh5b37hcpzn
* Remove build dependency on python-numpy-dev.
* python-scipy: Depend on python-numpy instead of python-numpy-dev.
* Package builds on other archs than i386. Closes: #402783.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * PS.H
 
3
 *
 
4
 * $Id: ps.h 685 2003-03-08 15:26:51Z travo $
 
5
 *
 
6
 * Declare the PostScript engine for GIST.
 
7
 *
 
8
 */
 
9
/*    Copyright (c) 1994.  The Regents of the University of California.
 
10
                    All rights reserved.  */
 
11
 
 
12
#ifndef PS_H
 
13
#define PS_H
 
14
 
 
15
#include "gist.h"
 
16
#include "engine.h"
 
17
 
 
18
#include <stdio.h>
 
19
 
 
20
typedef struct GpsBBox GpsBBox;
 
21
struct GpsBBox {
 
22
  int xll, yll, xur, yur;
 
23
};
 
24
 
 
25
typedef struct PSEngine PSEngine;
 
26
struct PSEngine {
 
27
  Engine e;
 
28
 
 
29
  /* --------------- Specific to PSEngine ------------------- */
 
30
 
 
31
  char *filename;
 
32
  p_file *file;     /* 0 until file is actually written into */
 
33
  int closed;     /* if file==0 and closed!=0, there was a write error */
 
34
 
 
35
  /* Page orientation and color table can only be changed at the beginning
 
36
     of each page, so the entries in the Engine base class are repeated
 
37
     here as the "currently in effect" values.  When a new page begins,
 
38
     these values are brought into agreement with those in the base
 
39
     class.  The ChangePalette virtual function temporarily resets colorMode
 
40
     to 0, to avoid any references to the new palette until the
 
41
     next page begins.  */
 
42
  int landscape;
 
43
  int colorMode;
 
44
  int nColors;
 
45
 
 
46
  GpsBBox pageBB;   /* bounding box for current page */
 
47
  GpsBBox docBB;    /* bounding box for entire document */
 
48
  int currentPage;  /* current page number, incremented by EndPage */
 
49
  long fonts;       /* bits correspond to Gist fonts (set when used) */
 
50
 
 
51
  /* The ps.ps GistPrimitives assume knowledge of the several
 
52
     graphical state parameters, mostly from gistA.  These are
 
53
     reset at the beginning of each page.  */
 
54
  GpBox clipBox;
 
55
  int curClip;
 
56
  unsigned long curColor;
 
57
  int curType;
 
58
  GpReal curWidth;
 
59
  int curFont;
 
60
  GpReal curHeight;
 
61
  int curAlignH, curAlignV;
 
62
  int curOpaque;
 
63
 
 
64
  /* When clipping is turned off, the ps.ps GistPrimitives state
 
65
     partially reverts to its condition when clipping was turned on.  */
 
66
  unsigned long clipColor;
 
67
  int clipType;
 
68
  GpReal clipWidth;
 
69
  int clipFont;
 
70
  GpReal clipHeight;
 
71
 
 
72
  char line[80];   /* buffer in which to build current output line */
 
73
  int nchars;      /* current number of characters in line */
 
74
};
 
75
 
 
76
extern PSEngine *GisPSEngine(Engine *engine);
 
77
 
 
78
#endif