Implement TVirtualPadPainter which abstracts painting operations.
Definition at line 27 of file TPadPainter.h.
Public Member Functions | |
| TPadPainter () | |
| Empty ctor. We need it only because of explicit copy ctor. | |
| void | ClearDrawable () override |
| Clear the current gVirtualX window. | |
| void | CopyDrawable (Int_t device, Int_t px, Int_t py) override |
| Copy a gVirtualX pixmap. | |
| Int_t | CreateDrawable (UInt_t w, UInt_t h) override |
| Create a gVirtualX Pixmap. | |
| void | DestroyDrawable (Int_t device) override |
| Close the current gVirtualX pixmap. | |
| void | DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override |
| Paint a simple box. | |
| void | DrawFillArea (Int_t n, const Double_t *x, const Double_t *y) override |
| Paint filled area. | |
| void | DrawFillArea (Int_t n, const Float_t *x, const Float_t *y) override |
| Paint filled area. | |
| void | DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override |
| Paint a simple line. | |
| void | DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override |
| Paint a simple line in normalized coordinates. | |
| void | DrawPixels (const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending) override |
| Noop, for non-gl pad TASImage calls gVirtualX->CopyArea. | |
| void | DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y) override |
| Paint Polyline. | |
| void | DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y) override |
| Paint polyline. | |
| void | DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v) override |
| Paint polyline in normalized coordinates. | |
| void | DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y) override |
| Paint polymarker. | |
| void | DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y) override |
| Paint polymarker. | |
| void | DrawSegments (Int_t n, Double_t *x, Double_t *y) override |
| Paint N segments on the pad. | |
| void | DrawSegmentsNDC (Int_t n, Double_t *u, Double_t *v) override |
| Paint N segments in normalized coordinates on the pad. | |
| 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 |
| Special version working with wchar_t and required by TMathText. | |
| void | DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode) override |
| Paint text in normalized coordinates. | |
| void | DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode) override |
| Paint text in normalized coordinates. | |
| Color_t | GetFillColor () const override |
| Delegate to gVirtualX. | |
| Style_t | GetFillStyle () const override |
| Delegate to gVirtualX. | |
| Color_t | GetLineColor () const override |
| Delegate to gVirtualX. | |
| Style_t | GetLineStyle () const override |
| Delegate to gVirtualX. | |
| Width_t | GetLineWidth () const override |
| Delegate to gVirtualX. | |
| Color_t | GetMarkerColor () const override |
| Delegate to gVirtualX. | |
| Size_t | GetMarkerSize () const override |
| Delegate to gVirtualX. | |
| Style_t | GetMarkerStyle () const override |
| Delegate to gVirtualX. | |
| Short_t | GetTextAlign () const override |
| Delegate to gVirtualX. | |
| Float_t | GetTextAngle () const override |
| Delegate to gVirtualX. | |
| Color_t | GetTextColor () const override |
| Delegate to gVirtualX. | |
| Font_t | GetTextFont () const override |
| Delegate to gVirtualX. | |
| Float_t | GetTextMagnitude () const override |
| Delegate to gVirtualX. | |
| Float_t | GetTextSize () const override |
| Delegate to gVirtualX. | |
| TClass * | IsA () const override |
| Bool_t | IsCocoa () const override |
| Returns true when cocoa backend is used. | |
| Bool_t | IsNative () const override |
| Bool_t | IsSupportAlpha () const override |
| Returns true if trasnparent colors are supported. | |
| Bool_t | IsTransparent () const override |
| Delegate to gVirtualX. | |
| Int_t | ResizeDrawable (Int_t device, UInt_t w, UInt_t h) override |
| Resize a gVirtualX Pixmap. | |
| void | SaveImage (TVirtualPad *pad, const char *fileName, Int_t type) const override |
| Save the image displayed in the canvas pointed by "pad" into a binary file. | |
| void | SelectDrawable (Int_t device) override |
| Select the window in which the graphics will go. | |
| 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. | |
| void | SetDrawMode (Int_t device, Int_t mode) override |
| Set drawing mode for specified device. | |
| void | SetFillColor (Color_t fcolor) override |
| Delegate to gVirtualX. | |
| void | SetFillStyle (Style_t fstyle) override |
| Delegate to gVirtualX. | |
| void | SetLineColor (Color_t lcolor) override |
| Delegate to gVirtualX. | |
| void | SetLineStyle (Style_t lstyle) override |
| Delegate to gVirtualX. | |
| void | SetLineWidth (Width_t lwidth) override |
| Delegate to gVirtualX. | |
| void | SetMarkerColor (Color_t mcolor) override |
| Delegate to gVirtualX. | |
| void | SetMarkerSize (Size_t msize) override |
| Delegate to gVirtualX. | |
| void | SetMarkerStyle (Style_t mstyle) override |
| Delegate to gVirtualX. | |
| void | SetOpacity (Int_t percent) override |
| Delegate to gVirtualX. | |
| void | SetTextAlign (Short_t align) override |
| Delegate to gVirtualX. | |
| void | SetTextAngle (Float_t tangle) override |
| Delegate to gVirtualX. | |
| void | SetTextColor (Color_t tcolor) override |
| Delegate to gVirtualX. | |
| void | SetTextFont (Font_t tfont) override |
| Delegate to gVirtualX. | |
| void | SetTextSize (Float_t tsize) override |
| Delegate to gVirtualX. | |
| void | SetTextSizePixels (Int_t npixels) override |
| Delegate to gVirtualX. | |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| void | UpdateDrawable (Int_t mode) override |
| Call low-level update of selected drawable, redirect to gVirtualX. | |
Public Member Functions inherited from TVirtualPadPainter | |
| virtual | ~TVirtualPadPainter () |
| Virtual dtor. | |
| 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 TVirtualPS * | GetPS () const |
| virtual void | InitPainter () |
| Empty definition. | |
| virtual void | InvalidateCS () |
| Empty definition. | |
| virtual void | LockPainter () |
| Empty definition. | |
| virtual void | NewPage () |
| virtual void | OnPad (TVirtualPad *) |
| virtual void | SetCursor (Int_t win, ECursor cursor) |
| Set cursor for specified device, redirect to gVirtualX. | |
| virtual void | SetDoubleBuffer (Int_t device, Int_t mode) |
| Set double buffer mode for specified device, redirect to gVirtualX. | |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Static Public Member Functions inherited from TVirtualPadPainter | |
| 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. | |
Private Member Functions | |
| TPadPainter (const TPadPainter &)=delete | |
| TPadPainter (TPadPainter &&)=delete | |
| TPadPainter & | operator= (const TPadPainter &)=delete |
| TPadPainter & | operator= (TPadPainter &&)=delete |
Private Attributes | |
| Style_t | fSetFillStyle = 0 |
| remember set fill style to optimize painting | |
| Int_t | fSetLineWidth = 0 |
| remember set width to optimize some painting | |
| WinContext_t | fWinContext |
Additional Inherited Members | |
Public Types inherited from TVirtualPadPainter | |
| enum | EBoxMode { kHollow , kFilled } |
| enum | ETextMode { kClear , kOpaque } |
#include <TPadPainter.h>
| TPadPainter::TPadPainter | ( | ) |
Empty ctor. We need it only because of explicit copy ctor.
Definition at line 71 of file TPadPainter.cxx.
|
privatedelete |
|
privatedelete |
Definition at line 142 of file TPadPainter.h.
|
overridevirtual |
Clear the current gVirtualX window.
Implements TVirtualPadPainter.
Definition at line 394 of file TPadPainter.cxx.
Copy a gVirtualX pixmap.
Implements TVirtualPadPainter.
Definition at line 402 of file TPadPainter.cxx.
Create a gVirtualX Pixmap.
Implements TVirtualPadPainter.
Definition at line 361 of file TPadPainter.cxx.
Definition at line 142 of file TPadPainter.h.
|
overridevirtual |
Close the current gVirtualX pixmap.
Implements TVirtualPadPainter.
Definition at line 411 of file TPadPainter.cxx.
|
overridevirtual |
Paint a simple line in normalized coordinates.
Implements TVirtualPadPainter.
Definition at line 505 of file TPadPainter.cxx.
|
overridevirtual |
Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.
Implements TVirtualPadPainter.
Definition at line 447 of file TPadPainter.cxx.
|
overridevirtual |
Paint polyline in normalized coordinates.
Implements TVirtualPadPainter.
Definition at line 604 of file TPadPainter.cxx.
Paint N segments on the pad.
Reimplemented from TVirtualPadPainter.
Definition at line 627 of file TPadPainter.cxx.
Paint N segments in normalized coordinates on the pad.
Reimplemented from TVirtualPadPainter.
Definition at line 658 of file TPadPainter.cxx.
|
overridevirtual |
Special version working with wchar_t and required by TMathText.
Implements TVirtualPadPainter.
Definition at line 732 of file TPadPainter.cxx.
|
overridevirtual |
Paint text in normalized coordinates.
Implements TVirtualPadPainter.
Definition at line 745 of file TPadPainter.cxx.
|
overridevirtual |
Paint text in normalized coordinates.
Implements TVirtualPadPainter.
Definition at line 821 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 143 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 152 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 88 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 97 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 106 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 307 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 325 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 316 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 199 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 208 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 217 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 226 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 244 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 235 of file TPadPainter.cxx.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 142 of file TPadPainter.h.
|
overridevirtual |
Returns true when cocoa backend is used.
Reimplemented from TVirtualPadPainter.
Definition at line 378 of file TPadPainter.cxx.
|
inlineoverridevirtual |
Reimplemented from TVirtualPadPainter.
Definition at line 129 of file TPadPainter.h.
|
overridevirtual |
Returns true if trasnparent colors are supported.
Reimplemented from TVirtualPadPainter.
Definition at line 386 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 161 of file TPadPainter.cxx.
|
privatedelete |
|
privatedelete |
Resize a gVirtualX Pixmap.
Reimplemented from TVirtualPadPainter.
Definition at line 369 of file TPadPainter.cxx.
|
overridevirtual |
Save the image displayed in the canvas pointed by "pad" into a binary file.
Implements TVirtualPadPainter.
Definition at line 758 of file TPadPainter.cxx.
|
overridevirtual |
Select the window in which the graphics will go.
Implements TVirtualPadPainter.
Definition at line 422 of file TPadPainter.cxx.
Set fill attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 455 of file TPadPainter.cxx.
Set line attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 464 of file TPadPainter.cxx.
|
overridevirtual |
Set marker attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 473 of file TPadPainter.cxx.
Set text attributes.
Reimplemented from TVirtualPadPainter.
Definition at line 481 of file TPadPainter.cxx.
Set drawing mode for specified device.
Reimplemented from TVirtualPadPainter.
Definition at line 439 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 171 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 180 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 115 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 124 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 133 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 334 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 352 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 343 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 190 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 253 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 262 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 271 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 280 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 289 of file TPadPainter.cxx.
|
overridevirtual |
Delegate to gVirtualX.
Implements TVirtualPadPainter.
Definition at line 298 of file TPadPainter.cxx.
|
overridevirtual |
Reimplemented from TVirtualPadPainter.
|
inline |
Definition at line 142 of file TPadPainter.h.
|
overridevirtual |
Call low-level update of selected drawable, redirect to gVirtualX.
Reimplemented from TVirtualPadPainter.
Definition at line 431 of file TPadPainter.cxx.
|
private |
remember set fill style to optimize painting
Definition at line 30 of file TPadPainter.h.
|
private |
remember set width to optimize some painting
Definition at line 29 of file TPadPainter.h.
|
private |
Definition at line 28 of file TPadPainter.h.