75 TPDF(
const char *filename,
Int_t type=-111);
103 void Open(
const char *filename,
Int_t type = -111)
override;
106 void PrintStr(
const char *
string =
"")
override;
int Int_t
Signed integer 4 bytes (int).
short Width_t
Line width (short).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
short Color_t
Color number (short).
short Style_t
Style number (short).
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
void SetLineStyle(Style_t linestyle=1) override
Change the line style.
void Off()
Deactivate an already open PDF file.
std::vector< int > fPageObjects
Page object numbers.
Int_t fCurrentPage
Object number of the current page.
void SetMarkerColor(Color_t cindex=1) override
Set color index for markers.
Int_t fType
Workstation type used to know if the PDF is open.
void SetColor(Int_t color=1)
Set color with its color index.
Double_t YtoPDF(Double_t y)
Convert Y from world coordinate to PDF.
void Open(const char *filename, Int_t type=-111) override
Open a PDF file.
void Close(Option_t *opt="") override
Close a PDF file.
std::vector< Int_t > fObjPos
Objects position.
TPDF()
Default PDF constructor.
void Range(Float_t xrange, Float_t yrange)
Set the range for the paper in centimetres.
Double_t fD
"d" value of the Current Transformation Matrix (CTM)
void LineTo(Double_t x, Double_t y)
Draw a line to a new position.
Bool_t fUrl
True when the text has an URL.
void SetLineCap(Int_t linecap=0)
Set the value of the global parameter TPDF::fgLineCap.
Double_t XtoPDF(Double_t x)
Convert X from world coordinate to PDF.
void WriteReal(Float_t r, Bool_t space=kTRUE) override
Write a Real number to the file.
Double_t fB
"b" value of the Current Transformation Matrix (CTM)
void SetLineJoin(Int_t linejoin=0)
Set the value of the global parameter TPDF::fgLineJoin.
Double_t CMtoPDF(Double_t u)
void CellArrayEnd() override
End the Cell Array painting.
void NewPage() override
Start a new PDF page.
Float_t fAlpha
Per cent of transparency.
Float_t fLineScale
Line width scale factor.
void SetFillColor(Color_t cindex=1) override
Set color index for fill areas.
Float_t fGreen
Per cent of green.
Int_t fNbUrl
Number of URLs in the current page.
Int_t fPageOrientation
Page orientation (Portrait, Landscape).
void On()
Activate an already open PDF file.
Bool_t fObjectIsOpen
True if an object is opened.
Int_t fStartStream
Stream start.
Double_t fE
"e" value of the Current Transformation Matrix (CTM)
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Draw a Box.
void SetLineColor(Color_t cindex=1) override
Set color index for lines.
void ComputeRect(const char *chars, Double_t fontsize, Double_t a, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f)
Compute the Rect for url.
void FontEncode()
Font encoding.
Bool_t fCompress
True when fBuffer must be compressed.
static Int_t fgLineCap
Appearance of line caps.
void TextUrl(Double_t x, Double_t y, const char *string, const char *url) override
Draw text with URL.
void DrawPS(Int_t n, Float_t *xw, Float_t *yw) override
Draw a PolyLine.
Float_t fYsize
Page size along Y.
Double_t UtoPDF(Double_t u)
Convert U from NDC coordinate to PDF.
std::vector< std::string > fUrls
URLs.
std::vector< float > fRectY1
y1 /Rect coordinates for url annots
void SetAlpha(Float_t alpha=1.)
Set the alpha channel value.
Float_t fRed
Per cent of red.
std::vector< float > fRectY2
y2 /Rect coordinates for url annots
Int_t fPageFormat
Page format (A4, Letter etc ...).
Bool_t fRange
True when a range has been defined.
std::vector< float > fRectX1
x1 /Rect coordinates for url annots
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y) override
Draw markers at the n WC points xw, yw.
std::vector< float > fRectX2
x2 /Rect coordinates for url annots
Float_t fBlue
Per cent of blue.
std::vector< float > fAlphas
List of alpha values used.
void MoveTo(Double_t x, Double_t y)
Move to a new position.
void SetLineScale(Float_t scale=1)
void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t mode, Int_t border, Int_t dark, Int_t light) override
Draw a Frame around a box.
Double_t fC
"c" value of the Current Transformation Matrix (CTM)
void CellArrayFill(Int_t r, Int_t g, Int_t b) override
Paint the Cell Array.
~TPDF() override
Default PDF destructor.
void WriteUrlObjects()
Write the annotation objects containing the URLs.
void EnsureBufferSize(Int_t required_size)
Ensure that required space in the buffer is available.
Double_t fA
"a" value of the Current Transformation Matrix (CTM)
void EndObject()
Close the current opened object.
void PrintStr(const char *string="") override
Output the string str in the output buffer.
Int_t fNbPage
Number of pages.
void SetFillPatterns(Int_t ipat, Int_t color)
Set the fill patterns (1 to 25) for fill areas.
void WriteCM(Double_t a, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f, Bool_t acc=kTRUE)
Write and Accumulate (if acc is true) the Current Transformation Matrix (CTM).
void SetTextColor(Color_t cindex=1) override
Set color index for text.
void DrawPolyLineNDC(Int_t n, TPoints *uv)
Draw a PolyLine in NDC space.
Float_t fXsize
Page size along X.
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2) override
Begin the Cell Array painting.
void DrawHatch(Float_t dy, Float_t angle, Int_t n, Float_t *x, Float_t *y)
Draw Fill area with hatch styles.
void SetLineWidth(Width_t linewidth=1) override
Change the line width.
Double_t VtoPDF(Double_t v)
Convert V from NDC coordinate to PDF.
Bool_t fPageNotEmpty
True if the current page is not empty.
void NewObject(Int_t n)
Create a new object in the PDF file.
void DrawPolyLine(Int_t n, TPoints *xy)
Draw a PolyLine.
void Text(Double_t x, Double_t y, const char *string) override
Draw text.
void PatternEncode()
Patterns encoding.
Double_t fF
"f" value of the Current Transformation Matrix (CTM)
void WriteCompressedBuffer()
Write the buffer in a compressed way.
void TextNDC(Double_t u, Double_t v, const char *string)
Write a string of characters in NDC.
static Int_t fgLineJoin
Appearance of joining lines.
void PrintFast(Int_t nch, const char *string="") override
Fast version of Print.
2-D graphics point (world coordinates).
TVirtualPS(const TVirtualPS &)=delete