libpgplotxx.a (C++ interface to PGPLOT)
|
the standard device class More...
#include <device.h>
Public Member Functions | |
device (const char *devName) | |
create a new device More... | |
interface to PGPLOT cursor routines | |
Reimplementation of cursor functions to make them public. | |
int | band (int mode, int posn, float xref, float yref, float *x, float *y, char *ch) |
read cursor position, with anchor. More... | |
int | band (const int &mode, const int &posn, const float &xref, const float &yref, float &x, float &y, char &ch) |
read cursor position, with anchor. More... | |
int | curs (float *x, float *y, char *ch) |
read cursor position. More... | |
int | curs (float &x, float &y, char &ch) |
read cursor position, with anchor. More... | |
basic_device & | lcur (int maxpt, int *npt, float *x, float *y) |
read cursor position, with anchor. More... | |
basic_device & | ncur (int maxpt, int *npt, float *x, float *y, int symbol) |
read cursor position, with anchor. More... | |
basic_device & | olin (int maxpt, int *npt, float *x, float *y, int symbol) |
read cursor position, with anchor. More... | |
interface to PGPLOT plot functions | |
basic_device & | arro (const float &x1, const float &y1, const float &x2, const float &y2) |
plot arrow More... | |
basic_device & | ask (const Logical &flag) |
ask before clearing page? (Logical version) More... | |
basic_device & | ask (const bool &flag=true) |
ask before clearing page? (bool version) More... | |
basic_device & | axis (const char *opt, const float &x1, const float &y1, const float &x2, const float &y2, const float &v1, const float &v2, const float &step, const int &nsub, const float &dmajl, const float &dmajr, const float &fmin, const float &disp, const float &orient) |
plot arbitrary axis More... | |
basic_device & | axis (const char *opt, const Trect &line, const Trange &val, const float &step=0., const int &nsub=0, const float &dmajl=0.01, const float &dmajr=0.01, const float &fmin=0.3, const float &disp=0.05, const float &orient=0.) |
plot arbitrary axis More... | |
basic_device & | bbuf (void) |
start buffering More... | |
basic_device & | bin (const int &nbin, const float *x, const float *data, const Logical ¢er) |
plot binning More... | |
basic_device & | box (const char *xopt, float xtick, int nxsub, const char *yopt, float ytick, int nysub) |
plot box around graph More... | |
basic_device & | draw (const float &x, const float &y) |
draw line to position More... | |
basic_device & | draw (const Tcoor &c) |
draw line to position More... | |
basic_device & | ebuf (void) |
stop buffering More... | |
basic_device & | env (const float &xmin, const float &xmax, const float &ymin, const float &ymax, const int &just=0, const int &axis=0) |
define PGPLOT window and axis More... | |
basic_device & | env (const Trect rect, const int &just=0, const int &axis=0) |
define PGPLOT window and axis More... | |
basic_device & | eras (void) |
erase total panel More... | |
basic_device & | err1 (const int &dir, const float &x, const float &y, const float &e, const float &t) |
plot single error bar More... | |
basic_device & | gray (const float *a, int idim, int jdim, int i1, int i2, int j1, int j2, float fg, float bg, const float *tr) |
plot gray scale image More... | |
basic_device & | lab (const char *xlbl, const char *ylbl, const char *toplbl) |
write labels More... | |
basic_device & | line (const int &n, const float *xpts, const float *ypts) |
draw an open polygon More... | |
basic_device & | move (const float &x, const float &y) |
move plot position More... | |
basic_device & | move (const Tcoor &c) |
move plot position More... | |
basic_device & | mtxt (const char *side, const float &disp, const float &coord, const float &fjust, const char *text) |
plot text outside viewport (for labels) More... | |
basic_device & | page () |
advance to next output page More... | |
basic_device & | panl (int nxc, int nyc) |
switch to a different panel on the view surface More... | |
basic_device & | poly (int n, const float *xpts, const float *ypts) |
draw polygonial line More... | |
basic_device & | pt (int n, const float *xpts, const float *ypts, int symbol) |
draw a sequence of marker symbols More... | |
basic_device & | pt1 (float xpt, float ypt, int symbol) |
draw one marker symbol More... | |
basic_device & | ptxt (const float &x, const float &y, const float &angle, const float &fjust, const char *text) |
write text at arbitraty position More... | |
basic_device & | rect (const float &x1, const float &x2, const float &y1, const float &y2) |
plot rectangle (cf. poly) More... | |
basic_device & | rect (const Trect &rec) |
plot rectangle (cf. poly) More... | |
basic_device & | tbox (const char *xopt, float xtick, int nxsub, const char *yopt, float ytick, int nysub) |
plot tbox around graph More... | |
basic_device & | updt (void) |
update plot (in buffering mode) More... | |
basic_device & | vsiz (const float &xleft, const float &xright, const float &ybot, const float &ytop) |
set viewport (view area - here: in inches) More... | |
basic_device & | vsiz (const Trect &vp) |
set viewport (view area - here: in inches) More... | |
basic_device & | vstd (void) |
select standard viewport More... | |
basic_device & | wedg (const char *side, const float &disp, const float &width, const float &fg, const float &bg, const char *label) |
annotate an image plot with a wedge More... | |
basic_device & | wedg (const char *side, const float &disp, const float &width, const Trange &range, const char *label) |
annotate an image plot with a wedge More... | |
basic_device & | gwedg (const Trange &range, const char *label="value", const float &disp=0.3, const float &width=3.0, const char *side="RG") |
annotate an image plot with a wedge More... | |
basic_device & | wnad (const float &x1, const float &x2, const float &y1, const float &y2) |
set world coordinates and adjust viewport to same aspect ratio More... | |
basic_device & | wnad (const Trect &win) |
set world coordinates and adjust viewport to same aspect ratio More... | |
interface to PGPLOT query functions | |
Functions to inquire various plot settings | |
basic_device & | qcr (const int &ci, float *cr, float *cg, float *cb) |
inquire color representation More... | |
basic_device & | qtxt (const float &x, const float &y, const float &angle, const float &fjust, const char *text, float *xbox, float *ybox) |
get bounding box of text More... | |
basic_device & | qtxt (const float &x, const float &y, const float &angle, const float &fjust, const char *text, Tbbox &b) |
get bounding box of text More... | |
basic_device & | qwin (float *x1, float *x2, float *y1, float *y2) |
inquire window boundary coordinates More... | |
basic_device & | qwin (float &x1, float &x2, float &y1, float &y2) |
inquire window boundary coordinates More... | |
basic_device & | qwin (Trect &win) |
inquire window boundary coordinates More... | |
interface to PGPLOT set functions | |
Functions used to set various plot properties | |
basic_device & | sah (const int &fs, const float &angle, const float &barb) |
set arrow head style More... | |
basic_device & | save (void) |
save device settings More... | |
basic_device & | unsa (void) |
restore device settings More... | |
basic_device & | scf (const int &font) |
set character font More... | |
basic_device & | sch (const float &size) |
set character height More... | |
basic_device & | sci (const int &ci) |
set color index More... | |
basic_device & | scir (const int &icilo, const int &icihi) |
set color index range More... | |
basic_device & | sclp (const int &state) |
set clipping mode More... | |
basic_device & | scr (const int &ci, const float &cr, const float &cg, const float &cb) |
set color representation More... | |
basic_device & | scr (const int &ci, const Tcol &rgb) |
set color representation by rgb values More... | |
basic_device & | sfs (const int &fs) |
set fill style More... | |
basic_device & | shls (const int &ci, const float &ch, const float &cl, const float &cs) |
set color in the HLS system More... | |
basic_device & | shls (const int &ci, const Tcol &hls) |
set color representation by hls values More... | |
basic_device & | shs (const float &angle, const float &sepn, const float &phase) |
set hatching style More... | |
basic_device & | sitf (const int &itf) |
set image transfer function More... | |
basic_device & | sls (const int &ls) |
set line style More... | |
basic_device & | slw (const int &lw) |
set line width More... | |
basic_device & | stbg (const int &tbci) |
set background color index More... | |
basic_device & | subp (int nxsub, int nysub) |
subdivide view surface into panels More... | |
basic_device & | svp (const float &xleft, const float &xright, const float &ybot, const float &ytop) |
set viewport (view area) More... | |
basic_device & | svp (const Trect &vp) |
set viewport (view area) More... | |
basic_device & | swin (const float &x1, const float &x2, const float &y1, const float &y2) |
set window (world coordinate range) More... | |
basic_device & | swin (const Trect &win) |
set window (world coordinate range) More... | |
Static Public Member Functions | |
interface to device-independent PGPLOT functions | |
These are class specific member functions | |
static float | rnd (const float &x, int *nsub) |
find smallest "round" number greater than x More... | |
static void | ldev (void) |
tell about available devices More... | |
static void | rnge (const float &x1, const float &x2, float *xlo, float *xhi) |
found suitable range More... | |
static Trange | rnge (const Trange &xin) |
found suitable range More... | |
Protected Member Functions | |
interface to PGPLOT cursor routines | |
Here we go with cpgplot functions that are only valid together with special devices. They are dclared protected and may be made public by a derived class. They are protected in the base class since not all devices are interactive. | |
int | band (const int &mode, const int &posn, const float &xref, const float &yref, float *x, float *y, char *ch_scalar) |
the standard device class
This class includes the full pgplot functionality and does not care about interactive or not. It derives directly from basic_device
and exports the cursor functions.