PSGrafport

## class PSGrafport : public Grafport

> PostScript(tm) grafport class.

## Inheritance:

### Public Fields

  static const char | BANNER [] postscript file containing front page for printer.
  static const double | XOFF
  static const double | YOFF

### Public Methods

  | PSGrafport (const char *fileName) open grafport to filename, When filename = "", stdout is used.
  virtual | ~PSGrafport ()
  bool | IsSucces ()
  void | ClearArea (int, int, int, int)
  void | SetLineWidth (unsigned n)
  void | SetBackgroundColor (const string *)
  void | SetBackgroundColor (const char *)
  void | SetForegroundColor (const string *)
  void | SetForegroundColor (const char *)
  void | DrawRectangle (int x, int y, int wd, int ht)
  void | FillRectangle (int x, int y, int wd, int ht)
  void | DrawRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawDisk (int x, int y, int wd, int ht, int ellipse_ht)
  void | FillDisk (int x, int y, int wd, int ht, int ellipse_ht)
  void | DrawUnzoomedRectangle (int x, int y, int wd, int ht)
  void | DrawStringLeft (int x, int y, const char *str)
  void | DrawStringCentered (int x, int y, const char *str)
  void | DrawStringRight (int x, int y, const char *str)
  void | DrawUnzoomedStringLeft (int x, int y, const char *str)
  void | DrawUnzoomedStringCentered (int x, int y, const char *str)
  void | DrawStringLeftUnderlined (int x, int y, const char *str)
  void | DrawStringRightUnderlined (int x, int y, const char *str)
  void | DrawStringCenteredUnderlined (int x, int y, const char *str)
  void | DrawLine (int x1, int y1, int x2, int y2)
  void | DrawLine (const Point *p1, const Point *p2)
  void | DrawCurve (const Point *p1, const Point *p2, const Point *p3, const Point *p4)
  void | DrawUnzoomedLine (int x1, int y1, int x2, int y2)
  void | DrawPoint (int x, int y)
  void | DrawPoint (const Point *p)
  void | DrawEllipse (int x, int y, int wd, int ht)
  void | FillEllipse (int x, int y, int wd, int ht)
  void | DrawArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | FillArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | DrawPolygon (const Point *points, int n)
  void | FillPolygon (const Point *points, int n)
  void | Header (const char *title, const char *creator) generate postscript header.
  void | BeginDrawProc ()
  void | EndDrawProc ()
  void | CallDrawProc ()
  void | Banner (const char *title) concat banner from file with name of document.
  void | BeginPage (int i, int j, int nx, int tot)
  void | EndPage ()
  void | Trailer () generate postscript trailer.
  void | SetFont (XFont *font) set grafport font.
  void | EPSHeader (const char *title, const char *creator, int llx, int lly, int urx, int ury) header for encapsulated postscript + bounding box
  void | EPSProlog (int y, int dy)
  void | SetPageSize (double x, double y)
  void | SetFactor (double f)
  void | SetISOLatin1Encoding (bool b)
  void | SetShowColors (bool b)

### Protected Methods

  static void | MakePSString (string *str)
  static void | FixEscapeChar (string *str, char c)
  static void | FixNonAscii (string *str)
  void | FontProlog ()
  void | InstallIsoLatin1Font (const char *psFont)
  void | PageSetup ()
  void | DrawPSRectangle (int x, int y, int wd, int ht)
  void | DrawPSRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawPSEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawPSArc (int x, int y, int wd, int ht, int ang1, int ang2)
  void | DrawPSEllipse (int x, int y, int wd, int ht)
  void | DrawPSDisk (int x, int y, int wd, int ht, int ellipse_ht)
  void | DrawPSLine (int x1, int y1, int x2, int y2)
  void | DrawPSPolygon (const Point *point, int nrPoints)

### Inherited from Grafport:

### Public Methods

virtual bool DrawsXor()
virtual void UpdateSize(int, int)
virtual int GetWidth()
virtual int GetHeight()
virtual void Redraw(int, int, int, int, int, int)
XFont* GetFont()
const string* GetBackgroundColor()
const string* GetForegroundColor()
List <Color *> * GetColors()
void SetLineStyle(LineStyle::Type s)
LineStyle::Type GetLineStyle()
void SetFillStyle(FillStyle::Type s)
FillStyle::Type GetFillStyle()
unsigned GetLineWidth()
void SetZoomValue(double newValue)
double GetZoomValue()
int Zoom(int x)
int ZoomCorrect(int x)
void DrawRectangles(const Rectangle *rects, int n)
void FillRectangles(const Rectangle *rects, int n)
virtual void DrawEditDashedRectangle(int, int, int, int)
Point DrawStringsCentered(int x, int y, const string *str, bool ul, int cursor=0)
Point DrawStringsLeft( int topLeftx, int topLefty, const string *str, bool ul, int cursor=0)
Point DrawStringsRight( int topRightx, int topRighty, const string *str, bool ul, int cursor=0)
unsigned CursorPosition( int x, int y, const string *str, int hitX, int hitY)
virtual void DrawEditLine(int, int, int, int)
virtual void DrawEditLine(const Point *, const Point *)
virtual void DrawEditDottedGridLine(int, int, int, int)
virtual void DrawEditDottedLine(int, int, int, int)
virtual void DrawEditPoint(int, int)
virtual void DrawEditPoint(const Point *)
virtual void DrawActiveCaret(int, int)
virtual void DrawDeactiveCaret(int, int)

### Public

### Protected Methods

Point CursorPosition(int x, int y, const string *buf, int cursor)
Color* LookupColor(const string *colorName)
Color* LookupColor(const char *colorName)
void AddColor(const string *colorName, unsigned long pixel)
void AddColor(const char *colorName, unsigned long pixel)
void AddColor(Color *c)
virtual void InitColors()
void RecalcPolygon(const Point *points, int nrPoints, Point *newPoints, int d)

## Documentation

> PostScript(tm) grafport class.

`PSGrafport(const char *fileName)`
  open grafport to filename, When filename = "", stdout is used.

`virtual ~PSGrafport()`

`bool IsSucces()`

`void ClearArea(int, int, int, int)`

`void SetLineWidth(unsigned n)`

`void SetBackgroundColor(const string *)`

`void SetBackgroundColor(const char *)`

`void SetForegroundColor(const string *)`

`void SetForegroundColor(const char *)`

`void DrawRectangle(int x, int y, int wd, int ht)`

`void FillRectangle(int x, int y, int wd, int ht)`

`void DrawRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawDisk(int x, int y, int wd, int ht, int ellipse_ht)`

`void FillDisk(int x, int y, int wd, int ht, int ellipse_ht)`

`void DrawUnzoomedRectangle(int x, int y, int wd, int ht)`

`void DrawStringLeft(int x, int y, const char *str)`

`void DrawStringCentered(int x, int y, const char *str)`

`void DrawStringRight(int x, int y, const char *str)`

`void DrawUnzoomedStringLeft(int x, int y, const char *str)`

`void DrawUnzoomedStringCentered(int x, int y, const char *str)`

`void DrawStringLeftUnderlined(int x, int y, const char *str)`

`void DrawStringRightUnderlined(int x, int y, const char *str)`

`void DrawStringCenteredUnderlined(int x, int y, const char *str)`

`void DrawLine(int x1, int y1, int x2, int y2)`

`void DrawLine(const Point *p1, const Point *p2)`

`void DrawCurve(const Point *p1, const Point *p2, const Point *p3, const Point *p4)`

`void DrawUnzoomedLine(int x1, int y1, int x2, int y2)`

`void DrawPoint(int x, int y)`

`void DrawPoint(const Point *p)`

`void DrawEllipse(int x, int y, int wd, int ht)`

`void FillEllipse(int x, int y, int wd, int ht)`

`void DrawArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void FillArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void DrawPolygon(const Point *points, int n)`

`void FillPolygon(const Point *points, int n)`

`void Header(const char *title, const char *creator)`
  generate postscript header.

`void BeginDrawProc()`

`void EndDrawProc()`

`void CallDrawProc()`

`void Banner(const char *title)`
  concat banner from file with name of document.

`void BeginPage(int i, int j, int nx, int tot)`

`void EndPage()`

`void Trailer()`
  generate postscript trailer.

`void SetFont(XFont *font)`
  set grafport font.

`void EPSHeader(const char *title, const char *creator, int llx, int lly, int urx, int ury)`
  header for encapsulated postscript + bounding box

`void EPSProlog(int y, int dy)`

`void SetPageSize(double x, double y)`

`void SetFactor(double f)`

`void SetISOLatin1Encoding(bool b)`

`void SetShowColors(bool b)`

`static const char BANNER[]`
  postscript file containing front page for printer.

`static const double XOFF`

`static const double YOFF`

`static void MakePSString(string *str)`

`static void FixEscapeChar(string *str, char c)`

`static void FixNonAscii(string *str)`

`void FontProlog()`

`void InstallIsoLatin1Font(const char *psFont)`

`void PageSetup()`

`void DrawPSRectangle(int x, int y, int wd, int ht)`

`void DrawPSRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawPSEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawPSArc(int x, int y, int wd, int ht, int ang1, int ang2)`

`void DrawPSEllipse(int x, int y, int wd, int ht)`

`void DrawPSDisk(int x, int y, int wd, int ht, int ellipse_ht)`

`void DrawPSLine(int x1, int y1, int x2, int y2)`

`void DrawPSPolygon(const Point *point, int nrPoints)`

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de