30using size_type = std::vector<TPoint>::size_type;
 
   34                   std::vector<TPoint> &
dst);
 
   45                                std::vector<TPoint> &
dst);
 
  414      ::Error(
"TPadPainter::DrawFillArea", 
"invalid number of points %d", 
nPoints);
 
 
  428      ::Error(
"TPadPainter::DrawFillArea", 
"invalid number of points %d", 
nPoints);
 
 
  443      ::Error(
"TPadPainter::DrawPolyLine", 
"invalid number of points");
 
 
  459      ::Error(
"TPadPainter::DrawPolyLine", 
"invalid number of points");
 
 
  475      ::Error(
"TPadPainter::DrawPolyLineNDC", 
"invalid number of points %d", 
n);
 
  479   std::vector<TPoint> 
xy(
n);
 
  481   for (
Int_t i = 0; i < 
n; ++i) {
 
 
  496      ::Error(
"TPadPainter::DrawPolyMarker", 
"invalid number of points %d", 
n);
 
 
  510      ::Error(
"TPadPainter::DrawPolyMarker", 
"invalid number of points %d", 
n);
 
 
  563      pad->GetCanvas() && 
pad->GetCanvas()->GetCanvasID() != -1) {
 
  572      const std::unique_ptr<unsigned char[]>
 
  578            image->DrawRectangle(0, 0, 
w, 
h);
 
  579            if (
unsigned char *
argb = (
unsigned char *)
image->GetArgbArray()) {
 
  581               if (
sizeof(
UInt_t) == 4) {
 
  588                  const unsigned shift = std::numeric_limits<unsigned char>::digits;
 
 
  642                   std::vector<TPoint> &
dst)
 
  649   for (
unsigned i = 0; i < 
nPoints; ++i) {
 
  712                                std::vector<TPoint> &
dst)
 
  720   for (
unsigned i = 0; i < 
nPoints;) {
 
  809                           const T *
y, std::vector<TPoint> &
dst)
 
  834   std::vector<TPoint> 
xy;
 
  837                                 pad->GetWh() * 
pad->GetAbsHNDC())) * 2;
 
  841      ::Error(
"DrawFillAreaAux", 
"invalid pad's geometry");
 
  852      xy.push_back(
xy.front());
 
  863  std::vector<TPoint> 
xy;
 
  866                                            pad->GetWh() * 
pad->GetAbsHNDC())) * 2;
 
  869      ::Error(
"DrawPolyLineAux", 
"invalid pad's geometry");
 
  890   for (
unsigned i = 0; i < 
nPoints; ++i) {
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
Option_t Option_t TPoint TPoint const char x2
 
Option_t Option_t TPoint TPoint const char x1
 
Option_t Option_t TPoint TPoint angle
 
Option_t Option_t TPoint xy
 
Option_t Option_t TPoint TPoint const char mode
 
Option_t Option_t TPoint TPoint const char y2
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
 
Option_t Option_t TPoint TPoint percent
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
Option_t Option_t TPoint TPoint const char text
 
Option_t Option_t TPoint TPoint const char y1
 
Int_t GetCanvasID() const override
 
UInt_t GetWw() const override
 
UInt_t GetWh() const override
 
void Flush()
Flush canvas buffers.
 
static TImage * Create()
Create an image.
 
Implement TVirtualPadPainter which abstracts painting operations.
 
TPadPainter()
Empty ctor. We need it only because of explicit copy ctor.
 
void DrawFillArea(Int_t n, const Double_t *x, const Double_t *y) override
Paint filled area.
 
Color_t GetFillColor() const override
Delegate to gVirtualX.
 
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.
 
Float_t GetTextAngle() const override
Delegate to gVirtualX.
 
void CopyDrawable(Int_t device, Int_t px, Int_t py) override
Copy a gVirtualX pixmap.
 
void SetFillColor(Color_t fcolor) override
Delegate to gVirtualX.
 
Float_t GetTextSize() const override
Delegate to gVirtualX.
 
Style_t GetFillStyle() const override
Delegate to gVirtualX.
 
void DrawPolyLine(Int_t n, const Double_t *x, const Double_t *y) override
Paint Polyline.
 
Short_t GetTextAlign() const override
Delegate to gVirtualX.
 
Style_t GetLineStyle() const override
Delegate to gVirtualX.
 
Bool_t IsTransparent() const override
Delegate to gVirtualX.
 
Float_t GetTextMagnitude() const override
Delegate to gVirtualX.
 
Color_t GetTextColor() const override
Delegate to gVirtualX.
 
Int_t CreateDrawable(UInt_t w, UInt_t h) override
Create a gVirtualX Pixmap.
 
void SetTextSize(Float_t tsize) override
Delegate to gVirtualX.
 
void SetTextAlign(Short_t align) override
Delegate to gVirtualX.
 
void SetFillStyle(Style_t fstyle) override
Delegate to gVirtualX.
 
void DrawPolyMarker(Int_t n, const Double_t *x, const Double_t *y) override
Paint polymarker.
 
void SetOpacity(Int_t percent) override
Delegate to gVirtualX.
 
void SetTextAngle(Float_t tangle) override
Delegate to gVirtualX.
 
void DrawTextNDC(Double_t u, Double_t v, const char *text, ETextMode mode) override
Paint text in normalized coordinates.
 
void SetTextFont(Font_t tfont) override
Delegate to gVirtualX.
 
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 SetLineStyle(Style_t lstyle) override
Delegate to gVirtualX.
 
Font_t GetTextFont() const override
Delegate to gVirtualX.
 
void DrawPolyLineNDC(Int_t n, const Double_t *u, const Double_t *v) override
Paint polyline in normalized coordinates.
 
void ClearDrawable() override
Clear the current gVirtualX window.
 
void DestroyDrawable(Int_t device) override
Close the current gVirtualX pixmap.
 
Width_t GetLineWidth() const override
Delegate to gVirtualX.
 
void SetTextColor(Color_t tcolor) override
Delegate to gVirtualX.
 
void SetLineWidth(Width_t lwidth) override
Delegate to gVirtualX.
 
void SetTextSizePixels(Int_t npixels) override
Delegate to gVirtualX.
 
void SelectDrawable(Int_t device) override
Select the window in which the graphics will go.
 
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
Paint a simple box.
 
void SetLineColor(Color_t lcolor) override
Delegate to gVirtualX.
 
Color_t GetLineColor() const override
Delegate to gVirtualX.
 
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 DrawText(Double_t x, Double_t y, const char *text, ETextMode mode) override
Paint text.
 
TVirtualPad is an abstract base class for the Pad and Canvas classes.
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
 
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
 
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.