Logo ROOT  
Reference Guide
TPadPainter Class Reference

Implement TVirtualPadPainter which abstracts painting operations.

Definition at line 26 of file TPadPainter.h.

Public Member Functions

 TPadPainter ()
 Empty ctor. We need it only because of explicit copy ctor. More...
 
void ClearDrawable () override
 Clear the current gVirtualX window. More...
 
void CopyDrawable (Int_t device, Int_t px, Int_t py) override
 Copy a gVirtualX pixmap. More...
 
Int_t CreateDrawable (UInt_t w, UInt_t h) override
 Create a gVirtualX Pixmap. More...
 
void DestroyDrawable (Int_t device) override
 Close the current gVirtualX pixmap. More...
 
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
 Paint a simple box. More...
 
void DrawFillArea (Int_t n, const Double_t *x, const Double_t *y) override
 Paint filled area. More...
 
void DrawFillArea (Int_t n, const Float_t *x, const Float_t *y) override
 Paint filled area. More...
 
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Paint a simple line. More...
 
void DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
 Paint a simple line in normalized coordinates. More...
 
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. More...
 
void DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y) override
 Paint Polyline. More...
 
void DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y) override
 Paint polyline. More...
 
void DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v) override
 Paint polyline in normalized coordinates. More...
 
void DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y) override
 Paint polymarker. More...
 
void DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y) override
 Paint polymarker. More...
 
void DrawText (Double_t x, Double_t y, const char *text, ETextMode mode) override
 Paint text. More...
 
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. More...
 
void DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode) override
 Paint text in normalized coordinates. More...
 
void DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode) override
 Paint text in normalized coordinates. More...
 
Color_t GetFillColor () const override
 Delegate to gVirtualX. More...
 
Style_t GetFillStyle () const override
 Delegate to gVirtualX. More...
 
Color_t GetLineColor () const override
 Delegate to gVirtualX. More...
 
Style_t GetLineStyle () const override
 Delegate to gVirtualX. More...
 
Width_t GetLineWidth () const override
 Delegate to gVirtualX. More...
 
Short_t GetTextAlign () const override
 Delegate to gVirtualX. More...
 
Float_t GetTextAngle () const override
 Delegate to gVirtualX. More...
 
Color_t GetTextColor () const override
 Delegate to gVirtualX. More...
 
Font_t GetTextFont () const override
 Delegate to gVirtualX. More...
 
Float_t GetTextMagnitude () const override
 Delegate to gVirtualX. More...
 
Float_t GetTextSize () const override
 Delegate to gVirtualX. More...
 
TClassIsA () const override
 
Bool_t IsTransparent () const override
 Delegate to gVirtualX. More...
 
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. More...
 
void SelectDrawable (Int_t device) override
 Select the window in which the graphics will go. More...
 
void SetFillColor (Color_t fcolor) override
 Delegate to gVirtualX. More...
 
void SetFillStyle (Style_t fstyle) override
 Delegate to gVirtualX. More...
 
void SetLineColor (Color_t lcolor) override
 Delegate to gVirtualX. More...
 
void SetLineStyle (Style_t lstyle) override
 Delegate to gVirtualX. More...
 
void SetLineWidth (Width_t lwidth) override
 Delegate to gVirtualX. More...
 
void SetOpacity (Int_t percent) override
 Delegate to gVirtualX. More...
 
void SetTextAlign (Short_t align) override
 Delegate to gVirtualX. More...
 
void SetTextAngle (Float_t tangle) override
 Delegate to gVirtualX. More...
 
void SetTextColor (Color_t tcolor) override
 Delegate to gVirtualX. More...
 
void SetTextFont (Font_t tfont) override
 Delegate to gVirtualX. More...
 
void SetTextSize (Float_t tsize) override
 Delegate to gVirtualX. More...
 
void SetTextSizePixels (Int_t npixels) override
 Delegate to gVirtualX. More...
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TVirtualPadPainter
virtual ~TVirtualPadPainter ()
 Virtual dtor. More...
 
virtual void ClearDrawable ()=0
 
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 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 DrawText (Double_t x, Double_t y, const char *text, ETextMode mode)=0
 
virtual void DrawText (Double_t x, Double_t y, const wchar_t *text, ETextMode mode)=0
 
virtual void DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode)=0
 
virtual void DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode)=0
 
virtual Color_t GetFillColor () const =0
 
virtual Style_t GetFillStyle () const =0
 
virtual Color_t GetLineColor () const =0
 
virtual Style_t GetLineStyle () const =0
 
virtual Width_t GetLineWidth () const =0
 
virtual Short_t GetTextAlign () const =0
 
virtual Float_t GetTextAngle () const =0
 
virtual Color_t GetTextColor () const =0
 
virtual Font_t GetTextFont () const =0
 
virtual Float_t GetTextMagnitude () const =0
 
virtual Float_t GetTextSize () const =0
 
virtual void InitPainter ()
 Empty definition. More...
 
virtual void InvalidateCS ()
 Empty definition. More...
 
virtual TClassIsA () const
 
virtual Bool_t IsTransparent () const =0
 
virtual void LockPainter ()
 Empty definition. More...
 
virtual void SaveImage (TVirtualPad *pad, const char *fileName, Int_t type) const =0
 
virtual void SelectDrawable (Int_t device)=0
 
virtual void SetFillColor (Color_t fcolor)=0
 
virtual void SetFillStyle (Style_t fstyle)=0
 
virtual void SetLineColor (Color_t lcolor)=0
 
virtual void SetLineStyle (Style_t lstyle)=0
 
virtual void SetLineWidth (Width_t lwidth)=0
 
virtual void SetOpacity (Int_t percent)=0
 
virtual void SetTextAlign (Short_t align=11)=0
 
virtual void SetTextAngle (Float_t tangle=0)=0
 
virtual void SetTextColor (Color_t tcolor=1)=0
 
virtual void SetTextFont (Font_t tfont=62)=0
 
virtual void SetTextSize (Float_t tsize=1)=0
 
virtual void SetTextSizePixels (Int_t npixels)=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualPadPainter
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualPadPainterPadPainter (Option_t *opt="")
 Create a pad painter of specified type. More...
 

Private Member Functions

 TPadPainter (const TPadPainter &)=delete
 
 TPadPainter (TPadPainter &&)=delete
 
TPadPainteroperator= (const TPadPainter &)=delete
 
TPadPainteroperator= (TPadPainter &&)=delete
 

Additional Inherited Members

- Public Types inherited from TVirtualPadPainter
enum  EBoxMode { kHollow , kFilled }
 
enum  ETextMode { kClear , kOpaque }
 

#include <TPadPainter.h>

Inheritance diagram for TPadPainter:
[legend]

Constructor & Destructor Documentation

◆ TPadPainter() [1/3]

TPadPainter::TPadPainter ( )

Empty ctor. We need it only because of explicit copy ctor.

Definition at line 72 of file TPadPainter.cxx.

◆ TPadPainter() [2/3]

TPadPainter::TPadPainter ( const TPadPainter )
privatedelete

◆ TPadPainter() [3/3]

TPadPainter::TPadPainter ( TPadPainter &&  )
privatedelete

Member Function Documentation

◆ Class()

static TClass * TPadPainter::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TPadPainter::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TPadPainter::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 109 of file TPadPainter.h.

◆ ClearDrawable()

void TPadPainter::ClearDrawable ( )
overridevirtual

Clear the current gVirtualX window.

Implements TVirtualPadPainter.

Definition at line 315 of file TPadPainter.cxx.

◆ CopyDrawable()

void TPadPainter::CopyDrawable ( Int_t  device,
Int_t  px,
Int_t  py 
)
overridevirtual

Copy a gVirtualX pixmap.

Implements TVirtualPadPainter.

Definition at line 324 of file TPadPainter.cxx.

◆ CreateDrawable()

Int_t TPadPainter::CreateDrawable ( UInt_t  w,
UInt_t  h 
)
overridevirtual

Create a gVirtualX Pixmap.

Implements TVirtualPadPainter.

Definition at line 306 of file TPadPainter.cxx.

◆ DeclFileName()

static const char * TPadPainter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 109 of file TPadPainter.h.

◆ DestroyDrawable()

void TPadPainter::DestroyDrawable ( Int_t  device)
overridevirtual

Close the current gVirtualX pixmap.

Implements TVirtualPadPainter.

Definition at line 333 of file TPadPainter.cxx.

◆ DrawBox()

void TPadPainter::DrawBox ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
EBoxMode  mode 
)
overridevirtual

Paint a simple box.

Implements TVirtualPadPainter.

Definition at line 390 of file TPadPainter.cxx.

◆ DrawFillArea() [1/2]

void TPadPainter::DrawFillArea ( Int_t  n,
const Double_t x,
const Double_t y 
)
overridevirtual

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 411 of file TPadPainter.cxx.

◆ DrawFillArea() [2/2]

void TPadPainter::DrawFillArea ( Int_t  n,
const Float_t x,
const Float_t y 
)
overridevirtual

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 425 of file TPadPainter.cxx.

◆ DrawLine()

void TPadPainter::DrawLine ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
overridevirtual

Paint a simple line.

Implements TVirtualPadPainter.

Definition at line 360 of file TPadPainter.cxx.

◆ DrawLineNDC()

void TPadPainter::DrawLineNDC ( Double_t  u1,
Double_t  v1,
Double_t  u2,
Double_t  v2 
)
overridevirtual

Paint a simple line in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 375 of file TPadPainter.cxx.

◆ DrawPixels()

void TPadPainter::DrawPixels ( const unsigned char *  pixelData,
UInt_t  width,
UInt_t  height,
Int_t  dstX,
Int_t  dstY,
Bool_t  enableAlphaBlending 
)
overridevirtual

Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.

Implements TVirtualPadPainter.

Definition at line 351 of file TPadPainter.cxx.

◆ DrawPolyLine() [1/2]

void TPadPainter::DrawPolyLine ( Int_t  n,
const Double_t x,
const Double_t y 
)
overridevirtual

Paint Polyline.

Implements TVirtualPadPainter.

Definition at line 438 of file TPadPainter.cxx.

◆ DrawPolyLine() [2/2]

void TPadPainter::DrawPolyLine ( Int_t  n,
const Float_t x,
const Float_t y 
)
overridevirtual

Paint polyline.

Implements TVirtualPadPainter.

Definition at line 454 of file TPadPainter.cxx.

◆ DrawPolyLineNDC()

void TPadPainter::DrawPolyLineNDC ( Int_t  n,
const Double_t u,
const Double_t v 
)
overridevirtual

Paint polyline in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 470 of file TPadPainter.cxx.

◆ DrawPolyMarker() [1/2]

void TPadPainter::DrawPolyMarker ( Int_t  n,
const Double_t x,
const Double_t y 
)
overridevirtual

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 493 of file TPadPainter.cxx.

◆ DrawPolyMarker() [2/2]

void TPadPainter::DrawPolyMarker ( Int_t  n,
const Float_t x,
const Float_t y 
)
overridevirtual

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 507 of file TPadPainter.cxx.

◆ DrawText() [1/2]

void TPadPainter::DrawText ( Double_t  x,
Double_t  y,
const char *  text,
ETextMode  mode 
)
overridevirtual

Paint text.

Implements TVirtualPadPainter.

Definition at line 521 of file TPadPainter.cxx.

◆ DrawText() [2/2]

void TPadPainter::DrawText ( Double_t  x,
Double_t  y,
const wchar_t *  text,
ETextMode  mode 
)
overridevirtual

Special version working with wchar_t and required by TMathText.

Implements TVirtualPadPainter.

Definition at line 534 of file TPadPainter.cxx.

◆ DrawTextNDC() [1/2]

void TPadPainter::DrawTextNDC ( Double_t  u,
Double_t  v,
const char *  text,
ETextMode  mode 
)
overridevirtual

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 547 of file TPadPainter.cxx.

◆ DrawTextNDC() [2/2]

void TPadPainter::DrawTextNDC ( Double_t  u,
Double_t  v,
const wchar_t *  text,
ETextMode  mode 
)
overridevirtual

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 623 of file TPadPainter.cxx.

◆ GetFillColor()

Color_t TPadPainter::GetFillColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 143 of file TPadPainter.cxx.

◆ GetFillStyle()

Style_t TPadPainter::GetFillStyle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 152 of file TPadPainter.cxx.

◆ GetLineColor()

Color_t TPadPainter::GetLineColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 89 of file TPadPainter.cxx.

◆ GetLineStyle()

Style_t TPadPainter::GetLineStyle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 98 of file TPadPainter.cxx.

◆ GetLineWidth()

Width_t TPadPainter::GetLineWidth ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 107 of file TPadPainter.cxx.

◆ GetTextAlign()

Short_t TPadPainter::GetTextAlign ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 198 of file TPadPainter.cxx.

◆ GetTextAngle()

Float_t TPadPainter::GetTextAngle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 207 of file TPadPainter.cxx.

◆ GetTextColor()

Color_t TPadPainter::GetTextColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 216 of file TPadPainter.cxx.

◆ GetTextFont()

Font_t TPadPainter::GetTextFont ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 225 of file TPadPainter.cxx.

◆ GetTextMagnitude()

Float_t TPadPainter::GetTextMagnitude ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 243 of file TPadPainter.cxx.

◆ GetTextSize()

Float_t TPadPainter::GetTextSize ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 234 of file TPadPainter.cxx.

◆ IsA()

TClass * TPadPainter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TVirtualPadPainter.

Definition at line 109 of file TPadPainter.h.

◆ IsTransparent()

Bool_t TPadPainter::IsTransparent ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 161 of file TPadPainter.cxx.

◆ operator=() [1/2]

TPadPainter & TPadPainter::operator= ( const TPadPainter )
privatedelete

◆ operator=() [2/2]

TPadPainter & TPadPainter::operator= ( TPadPainter &&  )
privatedelete

◆ SaveImage()

void TPadPainter::SaveImage ( TVirtualPad pad,
const char *  fileName,
Int_t  type 
) const
overridevirtual

Save the image displayed in the canvas pointed by "pad" into a binary file.

Implements TVirtualPadPainter.

Definition at line 560 of file TPadPainter.cxx.

◆ SelectDrawable()

void TPadPainter::SelectDrawable ( Int_t  device)
overridevirtual

Select the window in which the graphics will go.

Implements TVirtualPadPainter.

Definition at line 343 of file TPadPainter.cxx.

◆ SetFillColor()

void TPadPainter::SetFillColor ( Color_t  fcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 171 of file TPadPainter.cxx.

◆ SetFillStyle()

void TPadPainter::SetFillStyle ( Style_t  fstyle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 180 of file TPadPainter.cxx.

◆ SetLineColor()

void TPadPainter::SetLineColor ( Color_t  lcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 116 of file TPadPainter.cxx.

◆ SetLineStyle()

void TPadPainter::SetLineStyle ( Style_t  lstyle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 125 of file TPadPainter.cxx.

◆ SetLineWidth()

void TPadPainter::SetLineWidth ( Width_t  lwidth)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 134 of file TPadPainter.cxx.

◆ SetOpacity()

void TPadPainter::SetOpacity ( Int_t  percent)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 189 of file TPadPainter.cxx.

◆ SetTextAlign()

void TPadPainter::SetTextAlign ( Short_t  align)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 252 of file TPadPainter.cxx.

◆ SetTextAngle()

void TPadPainter::SetTextAngle ( Float_t  tangle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 261 of file TPadPainter.cxx.

◆ SetTextColor()

void TPadPainter::SetTextColor ( Color_t  tcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 270 of file TPadPainter.cxx.

◆ SetTextFont()

void TPadPainter::SetTextFont ( Font_t  tfont)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 279 of file TPadPainter.cxx.

◆ SetTextSize()

void TPadPainter::SetTextSize ( Float_t  tsize)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 288 of file TPadPainter.cxx.

◆ SetTextSizePixels()

void TPadPainter::SetTextSizePixels ( Int_t  npixels)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 297 of file TPadPainter.cxx.

◆ Streamer()

void TPadPainter::Streamer ( TBuffer )
overridevirtual

Reimplemented from TVirtualPadPainter.

◆ StreamerNVirtual()

void TPadPainter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 109 of file TPadPainter.h.

Libraries for TPadPainter:
[legend]

The documentation for this class was generated from the following files: