31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

17.5 Postscript Files ( ps file )<br />

1. Definition<br />

<strong>The</strong> date type ps file is a graphical input/output interface for the familiar <strong>LEDA</strong> drawing<br />

operations of two-dimensional geometry. Unlike the data type window, the output produced<br />

by a ps file object is permanent, i.e., it is not lost after exiting the C++-program<br />

as it is saved in an output file.<br />

An instance of type ps file is (as far as the user takes notice of it) an ordinary ASCII<br />

file that contains the source code of the graphics output in the PostScript description<br />

language. After running the C++-program, the file is created in the user’s current working<br />

directory and can later be handled like any other PostScript file, i.e., it may be viewed,<br />

printed etc.<br />

Of course, features like a panel section (as in window type instances) don’t make sense<br />

for a representation that is not supposed to be displayed on the screen and interactively<br />

worked with by the user. <strong>The</strong>refore, only drawing operations are applicable to a ps file<br />

instance.<br />

ps file was implemented by<br />

Thomas Wahl<br />

Lehrstuhl für Informatik I<br />

Universität Würzburg<br />

<strong>The</strong> complete user manual can be found in <strong>LEDA</strong>ROOT/<strong>Manual</strong>/contrib.<br />

#include < <strong>LEDA</strong>/graphics/ps file.h >

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!