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 () |
| mdp_postscript (char filename[]) |
virtual | ~mdp_postscript () |
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");
///
Member Enumeration Documentation
Constructor & Destructor Documentation
mdp_postscript::mdp_postscript |
( |
|
) |
[inline] |
mdp_postscript::mdp_postscript |
( |
char |
filename[] |
) |
[inline] |
virtual mdp_postscript::~mdp_postscript |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void mdp_postscript::arc |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
r, |
|
|
float |
alpha, |
|
|
float |
beta | |
|
) |
| | [inline] |
void mdp_postscript::box |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
int |
fill = 0 | |
|
) |
| | [inline] |
void mdp_postscript::circle |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
r, |
|
|
int |
fill = 0 | |
|
) |
| | [inline] |
void mdp_postscript::close |
( |
|
) |
[inline] |
void mdp_postscript::color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b | |
|
) |
| | [inline] |
void mdp_postscript::font |
( |
const char * |
text, |
|
|
int |
size | |
|
) |
| | [inline] |
void mdp_postscript::line |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
x1, |
|
|
float |
y1 | |
|
) |
| | [inline] |
FILE* mdp_postscript::open |
( |
char |
filename[] |
) |
[inline] |
void mdp_postscript::pen |
( |
float |
size |
) |
[inline] |
void mdp_postscript::print |
( |
float |
x0, |
|
|
float |
y0, |
|
|
char |
text[] | |
|
) |
| | [inline] |
void mdp_postscript::size |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float |
x1, |
|
|
float |
y1 | |
|
) |
| | [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: