12 #ifndef ROOT_TPadPainter
13 #define ROOT_TPadPainter
26 class TPadPainter :
public TVirtualPadPainter {
32 Color_t GetLineColor()
const;
33 Style_t GetLineStyle()
const;
34 Width_t GetLineWidth()
const;
36 void SetLineColor(Color_t lcolor);
37 void SetLineStyle(Style_t lstyle);
38 void SetLineWidth(Width_t lwidth);
40 Color_t GetFillColor()
const;
41 Style_t GetFillStyle()
const;
42 Bool_t IsTransparent()
const;
44 void SetFillColor(Color_t fcolor);
45 void SetFillStyle(Style_t fstyle);
46 void SetOpacity(Int_t percent);
48 Short_t GetTextAlign()
const;
49 Float_t GetTextAngle()
const;
50 Color_t GetTextColor()
const;
51 Font_t GetTextFont()
const;
52 Float_t GetTextSize()
const;
53 Float_t GetTextMagnitude()
const;
55 void SetTextAlign(Short_t align);
56 void SetTextAngle(Float_t tangle);
57 void SetTextColor(Color_t tcolor);
58 void SetTextFont(Font_t tfont);
59 void SetTextSize(Float_t tsize);
60 void SetTextSizePixels(Int_t npixels);
62 Int_t CreateDrawable(UInt_t w, UInt_t h);
64 void CopyDrawable(Int_t device, Int_t px, Int_t py);
65 void DestroyDrawable(Int_t device);
66 void SelectDrawable(Int_t device);
69 void DrawPixels(
const unsigned char *pixelData, UInt_t width, UInt_t height,
70 Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending);
73 void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
74 void DrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2);
76 void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode);
78 void DrawFillArea(Int_t n,
const Double_t *x,
const Double_t *y);
79 void DrawFillArea(Int_t n,
const Float_t *x,
const Float_t *y);
82 void DrawPolyLine(Int_t n,
const Double_t *x,
const Double_t *y);
83 void DrawPolyLine(Int_t n,
const Float_t *x,
const Float_t *y);
84 void DrawPolyLineNDC(Int_t n,
const Double_t *u,
const Double_t *v);
87 void DrawPolyMarker(Int_t n,
const Double_t *x,
const Double_t *y);
88 void DrawPolyMarker(Int_t n,
const Float_t *x,
const Float_t *y);
90 void DrawText(Double_t x, Double_t y,
const char *text, ETextMode mode);
91 void DrawText(Double_t x, Double_t y,
const wchar_t *text, ETextMode mode);
92 void DrawTextNDC(Double_t u, Double_t v,
const char *text, ETextMode mode);
93 void DrawTextNDC(Double_t u, Double_t v,
const wchar_t *text, ETextMode mode);
96 void SaveImage(TVirtualPad *pad,
const char *fileName, Int_t type)
const;
100 TPadPainter(
const TPadPainter &rhs) =
delete;
101 TPadPainter(TPadPainter && rhs) =
delete;
102 TPadPainter & operator = (
const TPadPainter &rhs) =
delete;
103 TPadPainter & operator = (TPadPainter && rhs) =
delete;
105 ClassDef(TPadPainter, 0)