libpgplotxx.a (C++ interface to PGPLOT)
pgplot::Ttext Class Reference

text plotting tool. More...

#include <xpgplotxx.h>

Collaboration diagram for pgplot::Ttext:

Public Member Functions

 Ttext ()
 default constructor. More...
 
 Ttext (const float &x, const float &y, const float &angle=0., const float &just=0.)
 setup initial text position and orientation. More...
 
Ttextprint (basic_device &dev, const char *txt, const bool &nl=false, const float &sep=0.025)
 print text. More...
 
Tbbox bbox () const
 return bounding box of previously printed text. More...
 
void erase ()
 erase text box prior to plotting text More...
 
void noerase ()
 do not erase text box prior to plotting text More...
 
Ttextspace (basic_device &dev)
 advance one character More...
 

Private Member Functions

void advance (const float *xbox, const float *ybox, const bool &nl, const float &sep)
 advance to new reference position More...
 

Private Attributes

float Mxref
 
float Myref
 text reference position More...
 
float Mangle
 
float Mjust
 parameters to pgptxt More...
 
float Mxnl
 
float Mynl
 text reference position for carriage return More...
 
bool Minline
 true if text was written previously with no nl More...
 
Tbbox Mbbox
 place to store bounding box of print function More...
 
bool Merase
 erase box prior to plotting text More...
 

Detailed Description

text plotting tool.

This class ist used to plot multiline text.

By calling the constructor, you set the initial reference point for the text to be plotted. The member function print can then be called repeatedly. Upon each call to print you may decide whether to issue a carriage return after plotting the text or not.

Definition at line 557 of file xpgplotxx.h.


The documentation for this class was generated from the following files: