12#ifndef ROOT_TPadPainter
13#define ROOT_TPadPainter
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
include TDocParser_001 C image html pict1_TDocParser_001 png width
Implement TVirtualPadPainter which abstracts painting operations.
void SetFillColor(Color_t fcolor)
Delegate to gVirtualX.
Float_t GetTextAngle() const
Delegate to gVirtualX.
void SetLineColor(Color_t lcolor)
Delegate to gVirtualX.
TPadPainter()
Empty ctor. We need it only because of explicit copy ctor.
void DrawPixels(const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending)
Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.
Int_t CreateDrawable(UInt_t w, UInt_t h)
Create a gVirtualX Pixmap.
void SetLineStyle(Style_t lstyle)
Delegate to gVirtualX.
void SetTextSize(Float_t tsize)
Delegate to gVirtualX.
Style_t GetFillStyle() const
Delegate to gVirtualX.
void SetTextSizePixels(Int_t npixels)
Delegate to gVirtualX.
void DestroyDrawable(Int_t device)
Close the current gVirtualX pixmap.
void DrawPolyLine(Int_t n, const Double_t *x, const Double_t *y)
Paint Polyline.
Color_t GetTextColor() const
Delegate to gVirtualX.
void DrawTextNDC(Double_t u, Double_t v, const char *text, ETextMode mode)
Paint text in normalized coordinates.
Style_t GetLineStyle() const
Delegate to gVirtualX.
void SetLineWidth(Width_t lwidth)
Delegate to gVirtualX.
Float_t GetTextMagnitude() const
Delegate to gVirtualX.
Short_t GetTextAlign() const
Delegate to gVirtualX.
void SetTextFont(Font_t tfont)
Delegate to gVirtualX.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode)
Paint a simple box.
void SetTextAlign(Short_t align)
Delegate to gVirtualX.
TPadPainter(const TPadPainter &rhs)=delete
Color_t GetFillColor() const
Delegate to gVirtualX.
Color_t GetLineColor() const
Delegate to gVirtualX.
void SetFillStyle(Style_t fstyle)
Delegate to gVirtualX.
Bool_t IsTransparent() const
Delegate to gVirtualX.
void SetTextAngle(Float_t tangle)
Delegate to gVirtualX.
Width_t GetLineWidth() const
Delegate to gVirtualX.
void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Paint a simple line.
void ClearDrawable()
Clear the current gVirtualX window.
void SetOpacity(Int_t percent)
Delegate to gVirtualX.
TPadPainter & operator=(const TPadPainter &rhs)=delete
void DrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
Paint a simple line in normalized coordinates.
void SelectDrawable(Int_t device)
Select the window in which the graphics will go.
void SaveImage(TVirtualPad *pad, const char *fileName, Int_t type) const
Save the image displayed in the canvas pointed by "pad" into a binary file.
Float_t GetTextSize() const
Delegate to gVirtualX.
void CopyDrawable(Int_t device, Int_t px, Int_t py)
Copy a gVirtualX pixmap.
void DrawText(Double_t x, Double_t y, const char *text, ETextMode mode)
Paint text.
void SetTextColor(Color_t tcolor)
Delegate to gVirtualX.
void DrawPolyMarker(Int_t n, const Double_t *x, const Double_t *y)
Paint polymarker.
void DrawPolyLineNDC(Int_t n, const Double_t *u, const Double_t *v)
Paint polyline in normalized coordinates.
void DrawFillArea(Int_t n, const Double_t *x, const Double_t *y)
Paint filled area.
TPadPainter(TPadPainter &&rhs)=delete
Font_t GetTextFont() const
Delegate to gVirtualX.
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
TVirtualPad is an abstract base class for the Pad and Canvas classes.