Logo ROOT  
Reference Guide
TWebPadPainter Class Reference

Implement TVirtualPadPainter which abstracts painting operations.

TWebPadPainter tries to support old Paint methods of the ROOT classes. Main classes (like histograms or graphs) should be painted on JavaScript side

Definition at line 26 of file TWebPadPainter.h.

Public Member Functions

 TWebPadPainter ()
 
void ClearDrawable () override
 
void CopyDrawable (Int_t, Int_t, Int_t) override
 
Int_t CreateDrawable (UInt_t, UInt_t) override
 
void DestroyDrawable (Int_t) override
 
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
 Return the fill area color. More...
 
Style_t GetFillStyle () const override
 Return the fill area style. More...
 
Color_t GetLineColor () const override
 Return the line color. More...
 
Style_t GetLineStyle () const override
 Return the line style. More...
 
Width_t GetLineWidth () const override
 Return the line width. More...
 
Short_t GetTextAlign () const override
 Return the text alignment. More...
 
Float_t GetTextAngle () const override
 Return the text angle. More...
 
Color_t GetTextColor () const override
 Return the text color. More...
 
Font_t GetTextFont () const override
 Return the text font. More...
 
Float_t GetTextMagnitude () const override
 
Float_t GetTextSize () const override
 Return the text size. More...
 
TClassIsA () const override
 
Bool_t IsTransparent () const override
 
void SaveImage (TVirtualPad *, const char *, Int_t) const override
 Produce image from WebPadPainter. More...
 
void SelectDrawable (Int_t) override
 
void SetFillColor (Color_t fcolor) override
 Set the fill area color. More...
 
void SetFillStyle (Style_t fstyle) override
 Set the fill area style. More...
 
void SetLineColor (Color_t lcolor) override
 Set the line color. More...
 
void SetLineStyle (Style_t lstyle) override
 Set the line style. More...
 
void SetLineWidth (Width_t lwidth) override
 Set the line width. More...
 
void SetOpacity (Int_t percent) override
 
void SetPainting (TWebPainting *p)
 
void SetTextAlign (Short_t align) override
 Set the text alignment. More...
 
void SetTextAngle (Float_t tangle) override
 Set the text angle. More...
 
void SetTextColor (Color_t tcolor) override
 Set the text color. More...
 
void SetTextFont (Font_t tfont) override
 Set the text font. More...
 
void SetTextSize (Float_t tsize) override
 Set the text size. More...
 
void SetTextSizePixels (Int_t npixels) override
 Set the text size in pixel. 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)
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor. More...
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor. More...
 
virtual ~TAttLine ()
 AttLine destructor. More...
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine. More...
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line. More...
 
virtual Color_t GetLineColor () const
 Return the line color. More...
 
virtual Style_t GetLineStyle () const
 Return the line style. More...
 
virtual Width_t GetLineWidth () const
 Return the line width. More...
 
virtual TClassIsA () const
 
virtual void Modify ()
 Change current line attributes if necessary. More...
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values. More...
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes. More...
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color. More...
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color. More...
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style. More...
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor. More...
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor. More...
 
virtual ~TAttFill ()
 AttFill destructor. More...
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill. More...
 
virtual Color_t GetFillColor () const
 Return the fill area color. More...
 
virtual Style_t GetFillStyle () const
 Return the fill area style. More...
 
virtual TClassIsA () const
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary. More...
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values. More...
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out. More...
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes. More...
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color. More...
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color. More...
 
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor. More...
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor. More...
 
virtual ~TAttText ()
 AttText destructor. More...
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText. More...
 
virtual Short_t GetTextAlign () const
 Return the text alignment. More...
 
virtual Float_t GetTextAngle () const
 Return the text angle. More...
 
virtual Color_t GetTextColor () const
 Return the text color. More...
 
virtual Font_t GetTextFont () const
 Return the text font. More...
 
virtual Float_t GetTextSize () const
 Return the text size. More...
 
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size. More...
 
virtual TClassIsA () const
 
virtual void Modify ()
 Change current text attributes if necessary. More...
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values. More...
 
virtual void SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
 Save text attributes as C++ statement(s) on output stream out. More...
 
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment. More...
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color. More...
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color. More...
 
virtual void SetTextFont (Font_t tfont=62)
 Set the text font. More...
 
virtual void SetTextSize (Float_t tsize=1)
 Set the text size. More...
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor. More...
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor. More...
 
virtual ~TAttMarker ()
 TAttMarker destructor. More...
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker. More...
 
virtual Color_t GetMarkerColor () const
 Return the marker color. More...
 
virtual Size_t GetMarkerSize () const
 Return the marker size. More...
 
virtual Style_t GetMarkerStyle () const
 Return the marker style. More...
 
virtual TClassIsA () const
 
virtual void Modify ()
 Change current marker attributes if necessary. More...
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values. More...
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes. More...
 
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color. More...
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color. More...
 
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size. More...
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualPadPainter
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualPadPainterPadPainter (Option_t *opt="")
 Create a pad painter of specified type. More...
 
- Static Public Member Functions inherited from TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttFill
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttText
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 Internal helper function that returns the line width of the given marker style (0 = filled marker) More...
 
static Style_t GetMarkerStyleBase (Style_t style)
 Internal helper function that returns the corresponding marker style with line width 1 for the given style. More...
 

Protected Types

enum  {
  attrLine = 0x1 , attrFill = 0x2 , attrMarker = 0x4 , attrText = 0x8 ,
  attrAll = 0xf
}
 !< object to store all painting, owned by TWebPS object More...
 

Protected Member Functions

Float_tStoreOperation (const std::string &oper, unsigned attrkind, int opersize=0)
 Store operation identifier with appropriate attributes. More...
 

Protected Attributes

TWebPaintingfPainting {nullptr}
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color. More...
 
Style_t fLineStyle
 Line style. More...
 
Width_t fLineWidth
 Line width. More...
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color. More...
 
Style_t fFillStyle
 Fill area style. More...
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment. More...
 
Float_t fTextAngle
 Text angle. More...
 
Color_t fTextColor
 Text color. More...
 
Font_t fTextFont
 Text font. More...
 
Float_t fTextSize
 Text size. More...
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color. More...
 
Size_t fMarkerSize
 Marker size. More...
 
Style_t fMarkerStyle
 Marker style. More...
 

Private Member Functions

 TWebPadPainter (const TWebPadPainter &rhs)=delete
 
 TWebPadPainter (TWebPadPainter &&rhs)=delete
 
TWebPadPainteroperator= (const TWebPadPainter &rhs)=delete
 
TWebPadPainteroperator= (TWebPadPainter &&rhs)=delete
 

Friends

class TWebCanvas
 

Additional Inherited Members

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

#include <TWebPadPainter.h>

Inheritance diagram for TWebPadPainter:
[legend]

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

!< object to store all painting, owned by TWebPS object

Enumerator
attrLine 
attrFill 
attrMarker 
attrText 
attrAll 

Definition at line 34 of file TWebPadPainter.h.

Constructor & Destructor Documentation

◆ TWebPadPainter() [1/3]

TWebPadPainter::TWebPadPainter ( )
inline

Definition at line 40 of file TWebPadPainter.h.

◆ TWebPadPainter() [2/3]

TWebPadPainter::TWebPadPainter ( const TWebPadPainter rhs)
privatedelete

◆ TWebPadPainter() [3/3]

TWebPadPainter::TWebPadPainter ( TWebPadPainter &&  rhs)
privatedelete

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static constexpr Version_t TWebPadPainter::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 122 of file TWebPadPainter.h.

◆ ClearDrawable()

void TWebPadPainter::ClearDrawable ( )
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 81 of file TWebPadPainter.h.

◆ CopyDrawable()

void TWebPadPainter::CopyDrawable ( Int_t  ,
Int_t  ,
Int_t   
)
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 82 of file TWebPadPainter.h.

◆ CreateDrawable()

Int_t TWebPadPainter::CreateDrawable ( UInt_t  ,
UInt_t   
)
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 80 of file TWebPadPainter.h.

◆ DeclFileName()

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

Definition at line 122 of file TWebPadPainter.h.

◆ DestroyDrawable()

void TWebPadPainter::DestroyDrawable ( Int_t  )
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 83 of file TWebPadPainter.h.

◆ DrawBox()

void TWebPadPainter::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 102 of file TWebPadPainter.cxx.

◆ DrawFillArea() [1/2]

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 124 of file TWebPadPainter.cxx.

◆ DrawFillArea() [2/2]

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 140 of file TWebPadPainter.cxx.

◆ DrawLine()

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

Paint a simple line.

Implements TVirtualPadPainter.

Definition at line 65 of file TWebPadPainter.cxx.

◆ DrawLineNDC()

void TWebPadPainter::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 83 of file TWebPadPainter.cxx.

◆ DrawPixels()

void TWebPadPainter::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 55 of file TWebPadPainter.cxx.

◆ DrawPolyLine() [1/2]

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

Paint Polyline.

Implements TVirtualPadPainter.

Definition at line 156 of file TWebPadPainter.cxx.

◆ DrawPolyLine() [2/2]

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

Paint polyline.

Implements TVirtualPadPainter.

Definition at line 172 of file TWebPadPainter.cxx.

◆ DrawPolyLineNDC()

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

Paint polyline in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 188 of file TWebPadPainter.cxx.

◆ DrawPolyMarker() [1/2]

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 206 of file TWebPadPainter.cxx.

◆ DrawPolyMarker() [2/2]

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 223 of file TWebPadPainter.cxx.

◆ DrawText() [1/2]

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

Paint text.

Implements TVirtualPadPainter.

Definition at line 240 of file TWebPadPainter.cxx.

◆ DrawText() [2/2]

void TWebPadPainter::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 252 of file TWebPadPainter.cxx.

◆ DrawTextNDC() [1/2]

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 264 of file TWebPadPainter.cxx.

◆ DrawTextNDC() [2/2]

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 279 of file TWebPadPainter.cxx.

◆ GetFillColor()

Color_t TWebPadPainter::GetFillColor ( ) const
inlineoverridevirtual

Return the fill area color.

Reimplemented from TAttFill.

Definition at line 56 of file TWebPadPainter.h.

◆ GetFillStyle()

Style_t TWebPadPainter::GetFillStyle ( ) const
inlineoverridevirtual

Return the fill area style.

Reimplemented from TAttFill.

Definition at line 57 of file TWebPadPainter.h.

◆ GetLineColor()

Color_t TWebPadPainter::GetLineColor ( ) const
inlineoverridevirtual

Return the line color.

Reimplemented from TAttLine.

Definition at line 47 of file TWebPadPainter.h.

◆ GetLineStyle()

Style_t TWebPadPainter::GetLineStyle ( ) const
inlineoverridevirtual

Return the line style.

Reimplemented from TAttLine.

Definition at line 48 of file TWebPadPainter.h.

◆ GetLineWidth()

Width_t TWebPadPainter::GetLineWidth ( ) const
inlineoverridevirtual

Return the line width.

Reimplemented from TAttLine.

Definition at line 49 of file TWebPadPainter.h.

◆ GetTextAlign()

Short_t TWebPadPainter::GetTextAlign ( ) const
inlineoverridevirtual

Return the text alignment.

Reimplemented from TAttText.

Definition at line 65 of file TWebPadPainter.h.

◆ GetTextAngle()

Float_t TWebPadPainter::GetTextAngle ( ) const
inlineoverridevirtual

Return the text angle.

Reimplemented from TAttText.

Definition at line 66 of file TWebPadPainter.h.

◆ GetTextColor()

Color_t TWebPadPainter::GetTextColor ( ) const
inlineoverridevirtual

Return the text color.

Reimplemented from TAttText.

Definition at line 67 of file TWebPadPainter.h.

◆ GetTextFont()

Font_t TWebPadPainter::GetTextFont ( ) const
inlineoverridevirtual

Return the text font.

Reimplemented from TAttText.

Definition at line 68 of file TWebPadPainter.h.

◆ GetTextMagnitude()

Float_t TWebPadPainter::GetTextMagnitude ( ) const
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 70 of file TWebPadPainter.h.

◆ GetTextSize()

Float_t TWebPadPainter::GetTextSize ( ) const
inlineoverridevirtual

Return the text size.

Reimplemented from TAttText.

Definition at line 69 of file TWebPadPainter.h.

◆ IsA()

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

Reimplemented from TAttFill.

Definition at line 122 of file TWebPadPainter.h.

◆ IsTransparent()

Bool_t TWebPadPainter::IsTransparent ( ) const
inlineoverridevirtual

Reimplemented from TAttFill.

Definition at line 58 of file TWebPadPainter.h.

◆ operator=() [1/2]

TWebPadPainter & TWebPadPainter::operator= ( const TWebPadPainter rhs)
privatedelete

◆ operator=() [2/2]

TWebPadPainter & TWebPadPainter::operator= ( TWebPadPainter &&  rhs)
privatedelete

◆ SaveImage()

void TWebPadPainter::SaveImage ( TVirtualPad pad,
const char *  fileName,
Int_t  gtype 
) const
overridevirtual

Produce image from WebPadPainter.

Implements TVirtualPadPainter.

Definition at line 294 of file TWebPadPainter.cxx.

◆ SelectDrawable()

void TWebPadPainter::SelectDrawable ( Int_t  )
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 84 of file TWebPadPainter.h.

◆ SetFillColor()

void TWebPadPainter::SetFillColor ( Color_t  fcolor)
inlineoverridevirtual

Set the fill area color.

Reimplemented from TAttFill.

Definition at line 60 of file TWebPadPainter.h.

◆ SetFillStyle()

void TWebPadPainter::SetFillStyle ( Style_t  fstyle)
inlineoverridevirtual

Set the fill area style.

Reimplemented from TAttFill.

Definition at line 61 of file TWebPadPainter.h.

◆ SetLineColor()

void TWebPadPainter::SetLineColor ( Color_t  lcolor)
inlineoverridevirtual

Set the line color.

Reimplemented from TAttLine.

Definition at line 51 of file TWebPadPainter.h.

◆ SetLineStyle()

void TWebPadPainter::SetLineStyle ( Style_t  lstyle)
inlineoverridevirtual

Set the line style.

Reimplemented from TAttLine.

Definition at line 52 of file TWebPadPainter.h.

◆ SetLineWidth()

void TWebPadPainter::SetLineWidth ( Width_t  lwidth)
inlineoverridevirtual

Set the line width.

Reimplemented from TAttLine.

Definition at line 53 of file TWebPadPainter.h.

◆ SetOpacity()

void TWebPadPainter::SetOpacity ( Int_t  percent)
inlineoverridevirtual

Implements TVirtualPadPainter.

Definition at line 62 of file TWebPadPainter.h.

◆ SetPainting()

void TWebPadPainter::SetPainting ( TWebPainting p)
inline

Definition at line 42 of file TWebPadPainter.h.

◆ SetTextAlign()

void TWebPadPainter::SetTextAlign ( Short_t  align)
inlineoverridevirtual

Set the text alignment.

Reimplemented from TAttText.

Definition at line 72 of file TWebPadPainter.h.

◆ SetTextAngle()

void TWebPadPainter::SetTextAngle ( Float_t  tangle)
inlineoverridevirtual

Set the text angle.

Reimplemented from TAttText.

Definition at line 73 of file TWebPadPainter.h.

◆ SetTextColor()

void TWebPadPainter::SetTextColor ( Color_t  tcolor)
inlineoverridevirtual

Set the text color.

Reimplemented from TAttText.

Definition at line 74 of file TWebPadPainter.h.

◆ SetTextFont()

void TWebPadPainter::SetTextFont ( Font_t  tfont)
inlineoverridevirtual

Set the text font.

Reimplemented from TAttText.

Definition at line 75 of file TWebPadPainter.h.

◆ SetTextSize()

void TWebPadPainter::SetTextSize ( Float_t  tsize)
inlineoverridevirtual

Set the text size.

Reimplemented from TAttText.

Definition at line 76 of file TWebPadPainter.h.

◆ SetTextSizePixels()

void TWebPadPainter::SetTextSizePixels ( Int_t  npixels)
inlineoverridevirtual

Set the text size in pixel.

Set the text size in pixels.

If the font precision is greater than 2, the text size is set to npixels, otherwise the text size is computed as a percent of the pad size.

Reimplemented from TAttText.

Definition at line 77 of file TWebPadPainter.h.

◆ StoreOperation()

Float_t * TWebPadPainter::StoreOperation ( const std::string &  oper,
unsigned  attrkind,
int  opersize = 0 
)
protected

Store operation identifier with appropriate attributes.

Definition at line 31 of file TWebPadPainter.cxx.

◆ Streamer()

void TWebPadPainter::Streamer ( TBuffer )
overridevirtual

Reimplemented from TAttFill.

◆ StreamerNVirtual()

void TWebPadPainter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 122 of file TWebPadPainter.h.

Friends And Related Function Documentation

◆ TWebCanvas

friend class TWebCanvas
friend

Definition at line 28 of file TWebPadPainter.h.

Member Data Documentation

◆ fPainting

TWebPainting* TWebPadPainter::fPainting {nullptr}
protected

Definition at line 32 of file TWebPadPainter.h.

Libraries for TWebPadPainter:
[legend]

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