libpgplotxx.a (C++ interface to PGPLOT)

◆ space()

Ttext & pgplot::Ttext::space ( basic_device dev)

advance one character

Definition at line 520 of file xpgplotxx.cc.

References advance(), Mangle, Merase, Mjust, Mxref, Myref, pgplot::basic_device::poly(), pgplot::basic_device::qtxt(), pgplot::basic_device::save(), pgplot::basic_device::sci(), pgplot::basic_device::sfs(), and pgplot::basic_device::unsa().

521  {
522  const char* spacechar="t";
523  float xbox[4], ybox[4];
524  // get bounding box
525  dev.qtxt(Mxref, Myref, Mangle, Mjust, spacechar, xbox, ybox);
526  // erase txet if requested
527  if (Merase)
528  {
529  dev.save();
530  dev.sfs(1);
531  dev.sci(0);
532  dev.poly(4, xbox, ybox);
533  dev.unsa();
534  }
535  this->advance(xbox, ybox, false, 0.);
536  return(*this);
537  } // Ttext::space
void advance(const float *xbox, const float *ybox, const bool &nl, const float &sep)
advance to new reference position
Definition: xpgplotxx.cc:466
float Mangle
Definition: xpgplotxx.h:602
float Mjust
parameters to pgptxt
Definition: xpgplotxx.h:602
float Myref
text reference position
Definition: xpgplotxx.h:601
bool Merase
erase box prior to plotting text
Definition: xpgplotxx.h:606
Here is the call graph for this function: