| www.delorie.com/gnu/docs/plotutils/plotutils_65.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following are the "mapping functions" in libplot. When
invoked on a Plotter, they affect the affine transformation it employs
to map the user coordinate system to the device coordinate system.
That is, they affect the transformation matrix attribute of objects
subsequently drawn on the graphics display.
The names of these functions resemble those of the corresponding functions in the Postscript language. For information on how to use them to draw graphics efficiently, consult any good book on Postscript programming, or the Postscript Language Reference Manual.
Each of these functions, if called, terminates and draws the path under construction (if any), as if endpath had been called.
In the current C binding, each of these functions takes a pointer to
a plPlotter as its first argument. Also in the current C
binding, the name of each function begins with "pl_" and ends with
"_r". ("_r" stands for `revised' or `reentrant'.) For information
on older C bindings, see 9.2.2 Older C application programming interfaces. In the C++
binding, these are member functions of the Plotter class and its
subclasses, and the prefix and suffix are not used.
In NDC space, the graphics display (i.e., viewport) has corners
(0,0), (1,0), (1,1), and (0,1). For
information on the size of the graphics display in physical units, see
C. Page Sizes and Viewport Sizes.
The default transformation matrix from user space to NDC space is [1 0 0 1 0 0], which means that by default, user coordinates are the same as NDC coordinates. This transformation matrix is also altered by space, fspace, space2, and fspace2, and by the following functions.
fconcat is a wrapper around the more fundamental fsetmatrix function. The following three functions (frotate, fscale, ftranslate) are convenience functions that are special cases of fconcat.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |