libpgplotxx.a (C++ interface to PGPLOT)
device.h
Go to the documentation of this file.
1 
19 // include guard
20 #ifndef TF_PGPLOTDEVICE_H_VERSION
21 
22 #define TF_PGPLOTDEVICE_H_VERSION \
23  "TF_DEVICE_H V1.0 (17-03-2015)"
24 
25 #include <pgplotxx/basicdevice.h>
26 
27 namespace pgplot {
28 
34 
44 class device: public basic_device {
45  public:
47  device(const char* devName): basic_device(devName) { }
99  int band(int mode, int posn, float xref, float yref, float *x, float *y,
100  char *ch)
101  { return(basic_device::band(mode, posn, xref, yref, x, y, ch)); }
102  int band(const int& mode, const int& posn,
103  const float& xref, const float& yref, float& x, float& y,
104  char& ch)
105  { return(this->band(mode, posn, xref, yref, &x, &y, &ch)); }
116  int curs(float *x, float *y, char *ch)
117  { return(basic_device::curs(x, y, ch)); }
118  int curs(float& x, float& y, char& ch)
119  { return(this->curs(&x, &y, &ch)); }
120  basic_device& lcur(int maxpt, int *npt, float *x, float *y)
121  { basic_device::lcur(maxpt, npt, x, y); return(*this); }
122  basic_device& ncur(int maxpt, int *npt, float *x, float *y, int symbol)
123  { basic_device::ncur(maxpt, npt, x, y, symbol); return(*this); }
124  basic_device& olin(int maxpt, int *npt, float *x, float *y, int symbol)
125  { basic_device::olin(maxpt, npt, x, y, symbol); return(*this); }
127 }; // class device
128 
131 } // namespace pgplot
132 
133 #endif // TF_PGPLOTDEVICE_H_VERSION (includeguard)
134 
135 /* ----- END OF device.h ----- */
int band(const int &mode, const int &posn, const float &xref, const float &yref, float *x, float *y, char *ch_scalar)
Definition: basicdevice.h:586
int band(int mode, int posn, float xref, float yref, float *x, float *y, char *ch)
read cursor position, with anchor.
Definition: device.h:99
basic_device & olin(int maxpt, int *npt, float *x, float *y, int symbol)
Definition: basicdevice.h:602
PGPLOT basic device class (prototypes)
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.
Definition: device.h:102
contains all pgplot stuff
Definition: affpgplot.cc:46
int curs(float &x, float &y, char &ch)
read cursor position, with anchor.
Definition: device.h:118
pgplot base class
Definition: basicdevice.h:57
basic_device & lcur(int maxpt, int *npt, float *x, float *y)
Definition: basicdevice.h:598
basic_device & lcur(int maxpt, int *npt, float *x, float *y)
read cursor position, with anchor.
Definition: device.h:120
int curs(float *x, float *y, char *ch_scalar)
Definition: basicdevice.h:593
basic_device & ncur(int maxpt, int *npt, float *x, float *y, int symbol)
Definition: basicdevice.h:600
int curs(float *x, float *y, char *ch)
read cursor position.
Definition: device.h:116
the standard device class
Definition: device.h:44
basic_device & ncur(int maxpt, int *npt, float *x, float *y, int symbol)
read cursor position, with anchor.
Definition: device.h:122
basic_device & olin(int maxpt, int *npt, float *x, float *y, int symbol)
read cursor position, with anchor.
Definition: device.h:124
device(const char *devName)
create a new device
Definition: device.h:47