Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_postscript Class Reference

to output and draw in postscript More...

#include <mdp_postscript.h>

List of all members.

Public Types

enum  { BOLD = 10 }

Public Member Functions

 mdp_postscript (char filename[])
FILE * open (char filename[])
void close ()
void size (float x0, float y0, float x1, float y1)
void line (float x0, float y0, float x1, float y1)
void box (float x0, float y0, float x1, float y1, int fill=0)
void arc (float x0, float y0, float r, float alpha, float beta)
void circle (float x0, float y0, float r, int fill=0)
void pen (float size)
void color (float r, float g, float b)
void font (const char *text, int size)
void print (float x0, float y0, char text[])

Public Attributes

FILE * fp
float X0
float Y0
float Z0
float X1
float Y1
float Z1
float c0
float c1
float c2
float scale
float alpha


Detailed Description

to output and draw in postscript

Example:

       mdp_postscript ps("test.ps");
       ps.color(0.2,0.2,0.7);
       ps.line(0,0,  5,5);
       ps.print(5,5,"a line from (0,0) to here");
    


The documentation for this class was generated from the following file:
Generated on Sun Feb 27 15:12:26 2005 by  doxygen 1.4.1