Extends TVirtualPadPainter interface to simplify work with graphical attributes.
Plus for now central place for TTF handling
Definition at line 23 of file TPadPainterBase.h.
Public Types | |
| enum | EBoxMode { kHollow , kFilled } |
| enum | ESaveImageResult { kSaveNotImplemented , kSaveFail , kSaveOk } |
| enum | ETextMode { kClear , kOpaque } |
Public Member Functions | |
| virtual void | ClearDrawable ()=0 |
| virtual void | ClearWindow (Int_t) |
| virtual void | CopyDrawable (Int_t device, Int_t px, Int_t py)=0 |
| virtual Int_t | CreateDrawable (UInt_t w, UInt_t h)=0 |
| virtual void | DestroyDrawable (Int_t device)=0 |
| virtual void | DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode)=0 |
| virtual void | DrawFillArea (Int_t n, const Double_t *x, const Double_t *y)=0 |
| virtual void | DrawFillArea (Int_t n, const Float_t *x, const Float_t *y)=0 |
| virtual void | DrawImage (TImage *img, Int_t x, Int_t y, Int_t flags=0) |
| Draw image, need to be implemented in correspondent. | |
| virtual void | DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)=0 |
| virtual void | DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2)=0 |
| virtual void | DrawPixels (const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending)=0 |
| virtual void | DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y)=0 |
| virtual void | DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y)=0 |
| virtual void | DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v)=0 |
| virtual void | DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y)=0 |
| virtual void | DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y)=0 |
| virtual void | DrawSegments (Int_t n, Double_t *x, Double_t *y) |
| Draw N segments on the pad Exclude segments where both points match. | |
| virtual void | DrawSegmentsNDC (Int_t n, Double_t *u, Double_t *v) |
| Draw N segments in NDC coordinates on the pad Exclude segments where both points match. | |
| void | DrawText (Double_t x, Double_t y, const char *text, ETextMode mode) override |
| Paint text. | |
| void | DrawText (Double_t x, Double_t y, const wchar_t *text, ETextMode mode) override |
| Paint wtext. | |
| void | DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode) override |
| Paint text at NDC coordinates. | |
| void | DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode) override |
| Paint wtext at NDC coordinates. | |
| virtual void | DrawTextUrl (Double_t x, Double_t y, const char *text, const char *url) |
| Draw text with url link By default only text is drawn. | |
| virtual void | DrawTTFglyphs (Int_t x, Int_t y, TTFhandle &ttf, ETextMode mode) |
| Performs rendering of TTF glyphs on output device Can be implemented in derived classes instead of implementing 4 different signatures of DrawText. | |
| virtual Bool_t | FillImageFromPad (TImage *image, TVirtualPad *pad) const |
| Fill TImage object by data from the pad Returns kFALSE if not supported or in case of failures. | |
| const TAttFill & | GetAttFill () const override |
| Get fill attributes. | |
| const TAttLine & | GetAttLine () const override |
| Get line attributes. | |
| const TAttMarker & | GetAttMarker () const override |
| Get marker attributes. | |
| const TAttText & | GetAttText () const override |
| Get text attributes. | |
| Color_t | GetFillColor () const override |
| Style_t | GetFillStyle () const override |
| Color_t | GetLineColor () const override |
| Style_t | GetLineStyle () const override |
| Width_t | GetLineWidth () const override |
| Color_t | GetMarkerColor () const override |
| Size_t | GetMarkerSize () const override |
| Style_t | GetMarkerStyle () const override |
| virtual TVirtualPS * | GetPS () const |
| UInt_t | GetTextAdvance (Font_t font, Double_t size, const char *text, Bool_t kern) override |
| Returns text advance. | |
| Short_t | GetTextAlign () const override |
| Float_t | GetTextAngle () const override |
| void | GetTextAscentDescent (Font_t font, Double_t size, UInt_t &a, UInt_t &d, const char *mess) override |
| Returns text accent / descent. | |
| void | GetTextAscentDescent (Font_t font, Double_t size, UInt_t &a, UInt_t &d, const wchar_t *mess) override |
| Returns text accent / descent. | |
| Color_t | GetTextColor () const override |
| void | GetTextExtent (Font_t font, Double_t size, UInt_t &w, UInt_t &h, const char *mess) override |
| Returns text extend. | |
| void | GetTextExtent (Font_t font, Double_t size, UInt_t &w, UInt_t &h, const wchar_t *mess) override |
| Returns text extend. | |
| Font_t | GetTextFont () const override |
| Float_t | GetTextMagnitude () const override |
| Float_t | GetTextSize () const override |
| virtual Bool_t | HasTTFonts () const |
| virtual void | InitPainter () |
| Empty definition. | |
| virtual void | InvalidateCS () |
| Empty definition. | |
| TClass * | IsA () const override |
| virtual Bool_t | IsCocoa () const |
| virtual Bool_t | IsNative () const |
| virtual Bool_t | IsSupportAlpha () const |
| Bool_t | IsTransparent () const override |
| virtual Bool_t | IsX11 () const |
| virtual void | LockPainter () |
| Empty definition. | |
| virtual void | NewPage () |
| void | OnPad (TVirtualPad *pad) override |
| virtual void | R__DEPRECATED (7, 00, "Old method, replaced by SaveAsImage") SaveImage(TVirtualPad *pad |
| virtual Int_t | ResizeDrawable (Int_t, UInt_t, UInt_t) |
| ESaveImageResult | SaveAsImage (TVirtualPad *pad, const char *fileName, Int_t type) const override |
| Store pad image into the file One should provide FillImageFromPad implementation in the subclass. | |
| virtual void | SelectDrawable (Int_t device)=0 |
| void | SetAttFill (const TAttFill &att) override |
| Set fill attributes. | |
| void | SetAttLine (const TAttLine &att) override |
| Set line attributes. | |
| void | SetAttMarker (const TAttMarker &att) override |
| Set marker attributes. | |
| void | SetAttText (const TAttText &att) override |
| Set text attributes. | |
| virtual void | SetDoubleBuffer (Int_t, Int_t) |
| virtual void | SetDrawMode (Int_t, Int_t) |
| void | SetFillColor (Color_t fcolor) override |
| void | SetFillStyle (Style_t fstyle) override |
| void | SetLineColor (Color_t lcolor) override |
| void | SetLineStyle (Style_t lstyle) override |
| void | SetLineWidth (Width_t lwidth) override |
| void | SetMarkerColor (Color_t mcolor) override |
| void | SetMarkerSize (Size_t msize) override |
| void | SetMarkerStyle (Style_t mstyle) override |
| virtual void | SetOpacity (Int_t percent)=0 |
| void | SetTextAlign (Short_t align) override |
| void | SetTextAngle (Float_t tangle) override |
| void | SetTextColor (Color_t tcolor) override |
| void | SetTextFont (Font_t tfont) override |
| void | SetTextSize (Float_t tsize) override |
| void | SetTextSizePixels (Int_t npixels) override |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| virtual void | UpdateDrawable (Int_t) |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
| static TVirtualPadPainter * | PadPainter (Option_t *opt="") |
| Create a pad painter of specified type. | |
Public Attributes | |
| virtual void const char Int_t type | const |
| virtual void const char * | fileName |
Protected Member Functions | |
| TAttFill | GetAttFillInternal (Bool_t with_transparency) |
| Returns fill attributes after modification Checks for special fill styles 4000 . | |
| virtual Double_t | GetTTFScale () const |
Protected Attributes | |
| TAttFill | fAttFill |
| current fill attributes | |
| TAttLine | fAttLine |
| current line attributes | |
| TAttMarker | fAttMarker |
| current marker attributes | |
| TAttText | fAttText |
| current text attributes | |
| Bool_t | fFullyTransparent = kFALSE |
| if transformed fill attributes fully transparent | |
| TVirtualPad * | fPad = nullptr |
| WinContext_t | fWinContext = (WinContext_t) 0 |
#include <TPadPainterBase.h>
|
inherited |
| Enumerator | |
|---|---|
| kHollow | |
| kFilled | |
Definition at line 28 of file TVirtualPadPainter.h.
|
inherited |
| Enumerator | |
|---|---|
| kSaveNotImplemented | |
| kSaveFail | |
| kSaveOk | |
Definition at line 41 of file TVirtualPadPainter.h.
|
inherited |
| Enumerator | |
|---|---|
| kClear | |
| kOpaque | |
Definition at line 29 of file TVirtualPadPainter.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 132 of file TPadPainterBase.h.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 101 of file TVirtualPadPainter.h.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
inlinestatic |
Definition at line 132 of file TPadPainterBase.h.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
virtualinherited |
Draw image, need to be implemented in correspondent.
Reimplemented in TPadPainter, TPadPainterPS, TGLPadPainter, and ROOT::Experimental::TQt6PadPainter.
Definition at line 197 of file TVirtualPadPainter.cxx.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, ROOT::Experimental::TQt6PadPainter, TWebPadPainter, and TGLPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Draw N segments on the pad Exclude segments where both points match.
Reimplemented in TPadPainter, and TPadPainterPS.
Definition at line 77 of file TVirtualPadPainter.cxx.
Draw N segments in NDC coordinates on the pad Exclude segments where both points match.
Reimplemented in TPadPainter, and TPadPainterPS.
Definition at line 88 of file TVirtualPadPainter.cxx.
|
overridevirtual |
Paint text.
Implements TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 173 of file TPadPainterBase.cxx.
|
overridevirtual |
Paint wtext.
Implements TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 197 of file TPadPainterBase.cxx.
|
overridevirtual |
Paint text at NDC coordinates.
Implements TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 221 of file TPadPainterBase.cxx.
|
overridevirtual |
Paint wtext at NDC coordinates.
Implements TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 245 of file TPadPainterBase.cxx.
|
virtualinherited |
Draw text with url link By default only text is drawn.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 99 of file TVirtualPadPainter.cxx.
Performs rendering of TTF glyphs on output device Can be implemented in derived classes instead of implementing 4 different signatures of DrawText.
Reimplemented in ROOT::Experimental::TQt6PadPainter, and TPadPainter.
Definition at line 166 of file TPadPainterBase.cxx.
|
virtualinherited |
Fill TImage object by data from the pad Returns kFALSE if not supported or in case of failures.
Reimplemented in TPadPainter, TGLPadPainter, and ROOT::Experimental::TQt6PadPainter.
Definition at line 223 of file TVirtualPadPainter.cxx.
Get fill attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 88 of file TPadPainterBase.h.
Returns fill attributes after modification Checks for special fill styles 4000 .
. 4100
Definition at line 34 of file TPadPainterBase.cxx.
Get line attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 89 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Get marker attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 90 of file TPadPainterBase.h.
Get text attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 91 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 52 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 53 of file TPadPainterBase.h.
|
inlineoverridevirtual |
old methods only for backward compatibility
Implements TVirtualPadPainter.
Definition at line 43 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 44 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 45 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 75 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 77 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 76 of file TPadPainterBase.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainterPS.
Definition at line 170 of file TVirtualPadPainter.h.
|
overridevirtual |
Returns text advance.
Reimplemented from TVirtualPadPainter.
Definition at line 143 of file TPadPainterBase.cxx.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 60 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 61 of file TPadPainterBase.h.
|
overridevirtual |
Returns text accent / descent.
Reimplemented from TVirtualPadPainter.
Definition at line 90 of file TPadPainterBase.cxx.
|
overridevirtual |
Returns text accent / descent.
Reimplemented from TVirtualPadPainter.
Definition at line 116 of file TPadPainterBase.cxx.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 62 of file TPadPainterBase.h.
|
overridevirtual |
Returns text extend.
Reimplemented from TVirtualPadPainter.
Definition at line 54 of file TPadPainterBase.cxx.
|
overridevirtual |
Returns text extend.
Reimplemented from TVirtualPadPainter.
Definition at line 72 of file TPadPainterBase.cxx.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 63 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 65 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 64 of file TPadPainterBase.h.
|
inlineprotectedvirtual |
Reimplemented in TGLPadPainter.
Definition at line 35 of file TPadPainterBase.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Definition at line 122 of file TVirtualPadPainter.h.
|
virtualinherited |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 40 of file TVirtualPadPainter.cxx.
|
virtualinherited |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 47 of file TVirtualPadPainter.cxx.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
Definition at line 132 of file TPadPainterBase.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 169 of file TVirtualPadPainter.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, TGLPadPainter, and ROOT::Experimental::TQt6PadPainter.
Definition at line 167 of file TVirtualPadPainter.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Definition at line 171 of file TVirtualPadPainter.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 54 of file TPadPainterBase.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 168 of file TVirtualPadPainter.h.
|
virtualinherited |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 54 of file TVirtualPadPainter.cxx.
|
inlinevirtualinherited |
Reimplemented in TPadPainterPS.
Definition at line 119 of file TVirtualPadPainter.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS.
Definition at line 85 of file TPadPainterBase.h.
|
staticinherited |
Create a pad painter of specified type.
Definition at line 61 of file TVirtualPadPainter.cxx.
|
virtualinherited |
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 102 of file TVirtualPadPainter.h.
|
overridevirtual |
Store pad image into the file One should provide FillImageFromPad implementation in the subclass.
Reimplemented from TVirtualPadPainter.
Reimplemented in ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Definition at line 270 of file TPadPainterBase.cxx.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
Set fill attributes.
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS.
Definition at line 93 of file TPadPainterBase.h.
Set line attributes.
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS.
Definition at line 99 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Set marker attributes.
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS.
Definition at line 105 of file TPadPainterBase.h.
Set text attributes.
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS.
Definition at line 111 of file TPadPainterBase.h.
Reimplemented in TPadPainter, and ROOT::Experimental::TQt6PadPainter.
Definition at line 108 of file TVirtualPadPainter.h.
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 107 of file TVirtualPadPainter.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 56 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 57 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 47 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 48 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 49 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 79 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 81 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 80 of file TPadPainterBase.h.
|
pure virtualinherited |
Implemented in TPadPainter, TPadPainterPS, TGLPadPainter, ROOT::Experimental::TQt6PadPainter, and TWebPadPainter.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 67 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 68 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 69 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 70 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 71 of file TPadPainterBase.h.
|
inlineoverridevirtual |
Implements TVirtualPadPainter.
Definition at line 72 of file TPadPainterBase.h.
|
overridevirtual |
Reimplemented from TVirtualPadPainter.
Reimplemented in TPadPainterPS, and TWebPadPainter.
|
inline |
Definition at line 132 of file TPadPainterBase.h.
|
inlinevirtualinherited |
Reimplemented in TPadPainter, and TGLPadPainter.
Definition at line 106 of file TVirtualPadPainter.h.
Definition at line 159 of file TVirtualPadPainter.h.
|
protected |
current fill attributes
Definition at line 28 of file TPadPainterBase.h.
|
protected |
current line attributes
Definition at line 29 of file TPadPainterBase.h.
|
protected |
current marker attributes
Definition at line 30 of file TPadPainterBase.h.
|
protected |
current text attributes
Definition at line 31 of file TPadPainterBase.h.
if transformed fill attributes fully transparent
Definition at line 32 of file TPadPainterBase.h.
|
inherited |
Definition at line 159 of file TVirtualPadPainter.h.
|
protected |
Definition at line 26 of file TPadPainterBase.h.
|
protected |
Definition at line 25 of file TPadPainterBase.h.