CGAL::Arr_postscript_file_stream

Definition

Arr_postscript_file_stream enables exporting Arrangement_2 objects to a stream in Postscript format. An object of type Arr_postscript_file_stream enables you to create nice drawings of arrangements in Postscript format, which you can insert into your publications. Arr_postscript_file_stream is derived from Postscript_file_stream, which in turn is derived from the LEDA class ps_file. Arr_postscript_file_stream allows you to specify the color of points and curves separately in addition to the functionality of the based class.

#include <CGAL/IO/Arr_postscript_file_stream.h>

Inherits From

postscript_file_stream

Creation

Arr_postscript_file_stream psstream ( const char* filename = "CGAL_arr.ps");
creates a postscript file stream. The name of the output file is filename , which is CGAL_arr.ps by default.


Arr_postscript_file_stream psstream ( float w, float h, const char* filename = "CGAL_arr.ps");
creates a postscript file stream that draws the output to a box of physical size width × height cm. The name of the output file is filename, which is CGAL_arr.ps by default.

Access Functions

Color psstream.point_color () obtains the color of points.

Color psstream.curve_color () obtains the color of curves.

Modifiers

void psstream.set_point_color ( Color color)
sets the color of points.

void psstream.set_curve_color ( Color color)
sets the color of curves.

See Also

write