Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualPadPainter Class Referenceabstract

To make it possible to use GL for 2D graphic in a TPad/TCanvas.

TVirtualPadPainter interface must be used instead of TVirtualX. Internally, non-GL implementation should delegate all calls to gVirtualX, GL implementation will delegate part of calls to gVirtualX, and has to implement some of the calls from the scratch.

Definition at line 19 of file TVirtualPadPainter.h.

Public Types

enum  EBoxMode { kHollow , kFilled }
 
enum  ETextMode { kClear , kOpaque }
 

Public Member Functions

virtual ~TVirtualPadPainter ()
 Virtual dtor.
 
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.
 
virtual void InvalidateCS ()
 Empty definition.
 
virtual TClassIsA () const
 
virtual Bool_t IsTransparent () const =0
 
virtual void LockPainter ()
 Empty definition.
 
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 constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualPadPainterPadPainter (Option_t *opt="")
 Create a pad painter of specified type.
 

#include <TVirtualPadPainter.h>

Inheritance diagram for TVirtualPadPainter:
[legend]

Member Enumeration Documentation

◆ EBoxMode

Enumerator
kHollow 
kFilled 

Definition at line 21 of file TVirtualPadPainter.h.

◆ ETextMode

Enumerator
kClear 
kOpaque 

Definition at line 22 of file TVirtualPadPainter.h.

Constructor & Destructor Documentation

◆ ~TVirtualPadPainter()

TVirtualPadPainter::~TVirtualPadPainter ( )
virtual

Virtual dtor.

Definition at line 30 of file TVirtualPadPainter.cxx.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 103 of file TVirtualPadPainter.h.

◆ ClearDrawable()

virtual void TVirtualPadPainter::ClearDrawable ( )
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ CopyDrawable()

virtual void TVirtualPadPainter::CopyDrawable ( Int_t  device,
Int_t  px,
Int_t  py 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ CreateDrawable()

virtual Int_t TVirtualPadPainter::CreateDrawable ( UInt_t  w,
UInt_t  h 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DeclFileName()

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

Definition at line 103 of file TVirtualPadPainter.h.

◆ DestroyDrawable()

virtual void TVirtualPadPainter::DestroyDrawable ( Int_t  device)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawBox()

virtual void TVirtualPadPainter::DrawBox ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
EBoxMode  mode 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawFillArea() [1/2]

virtual void TVirtualPadPainter::DrawFillArea ( Int_t  n,
const Double_t x,
const Double_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawFillArea() [2/2]

virtual void TVirtualPadPainter::DrawFillArea ( Int_t  n,
const Float_t x,
const Float_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawLine()

virtual void TVirtualPadPainter::DrawLine ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawLineNDC()

virtual void TVirtualPadPainter::DrawLineNDC ( Double_t  u1,
Double_t  v1,
Double_t  u2,
Double_t  v2 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawPixels()

virtual void TVirtualPadPainter::DrawPixels ( const unsigned char *  pixelData,
UInt_t  width,
UInt_t  height,
Int_t  dstX,
Int_t  dstY,
Bool_t  enableAlphaBlending 
)
pure virtual

Implemented in TPadPainter, TWebPadPainter, and TGLPadPainter.

◆ DrawPolyLine() [1/2]

virtual void TVirtualPadPainter::DrawPolyLine ( Int_t  n,
const Double_t x,
const Double_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawPolyLine() [2/2]

virtual void TVirtualPadPainter::DrawPolyLine ( Int_t  n,
const Float_t x,
const Float_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawPolyLineNDC()

virtual void TVirtualPadPainter::DrawPolyLineNDC ( Int_t  n,
const Double_t u,
const Double_t v 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawPolyMarker() [1/2]

virtual void TVirtualPadPainter::DrawPolyMarker ( Int_t  n,
const Double_t x,
const Double_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawPolyMarker() [2/2]

virtual void TVirtualPadPainter::DrawPolyMarker ( Int_t  n,
const Float_t x,
const Float_t y 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawText() [1/2]

virtual void TVirtualPadPainter::DrawText ( Double_t  x,
Double_t  y,
const char *  text,
ETextMode  mode 
)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ DrawText() [2/2]

virtual void TVirtualPadPainter::DrawText ( Double_t  x,
Double_t  y,
const wchar_t *  text,
ETextMode  mode 
)
pure virtual

Implemented in TPadPainter, TWebPadPainter, and TGLPadPainter.

◆ DrawTextNDC() [1/2]

virtual void TVirtualPadPainter::DrawTextNDC ( Double_t  u,
Double_t  v,
const char *  text,
ETextMode  mode 
)
pure virtual

Implemented in TPadPainter, TWebPadPainter, and TGLPadPainter.

◆ DrawTextNDC() [2/2]

virtual void TVirtualPadPainter::DrawTextNDC ( Double_t  u,
Double_t  v,
const wchar_t *  text,
ETextMode  mode 
)
pure virtual

Implemented in TPadPainter, TWebPadPainter, and TGLPadPainter.

◆ GetFillColor()

virtual Color_t TVirtualPadPainter::GetFillColor ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetFillStyle()

virtual Style_t TVirtualPadPainter::GetFillStyle ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetLineColor()

virtual Color_t TVirtualPadPainter::GetLineColor ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetLineStyle()

virtual Style_t TVirtualPadPainter::GetLineStyle ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetLineWidth()

virtual Width_t TVirtualPadPainter::GetLineWidth ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextAlign()

virtual Short_t TVirtualPadPainter::GetTextAlign ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextAngle()

virtual Float_t TVirtualPadPainter::GetTextAngle ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextColor()

virtual Color_t TVirtualPadPainter::GetTextColor ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextFont()

virtual Font_t TVirtualPadPainter::GetTextFont ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextMagnitude()

virtual Float_t TVirtualPadPainter::GetTextMagnitude ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ GetTextSize()

virtual Float_t TVirtualPadPainter::GetTextSize ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ InitPainter()

void TVirtualPadPainter::InitPainter ( )
virtual

Empty definition.

Reimplemented in TGLPadPainter.

Definition at line 37 of file TVirtualPadPainter.cxx.

◆ InvalidateCS()

void TVirtualPadPainter::InvalidateCS ( )
virtual

Empty definition.

Reimplemented in TGLPadPainter.

Definition at line 44 of file TVirtualPadPainter.cxx.

◆ IsA()

virtual TClass * TVirtualPadPainter::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

Definition at line 103 of file TVirtualPadPainter.h.

◆ IsTransparent()

virtual Bool_t TVirtualPadPainter::IsTransparent ( ) const
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ LockPainter()

void TVirtualPadPainter::LockPainter ( )
virtual

Empty definition.

Reimplemented in TGLPadPainter.

Definition at line 51 of file TVirtualPadPainter.cxx.

◆ PadPainter()

TVirtualPadPainter * TVirtualPadPainter::PadPainter ( Option_t opt = "")
static

Create a pad painter of specified type.

Definition at line 58 of file TVirtualPadPainter.cxx.

◆ SaveImage()

virtual void TVirtualPadPainter::SaveImage ( TVirtualPad pad,
const char *  fileName,
Int_t  type 
) const
pure virtual

Implemented in TWebPadPainter, TPadPainter, and TGLPadPainter.

◆ SelectDrawable()

virtual void TVirtualPadPainter::SelectDrawable ( Int_t  device)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetFillColor()

virtual void TVirtualPadPainter::SetFillColor ( Color_t  fcolor)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetFillStyle()

virtual void TVirtualPadPainter::SetFillStyle ( Style_t  fstyle)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetLineColor()

virtual void TVirtualPadPainter::SetLineColor ( Color_t  lcolor)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetLineStyle()

virtual void TVirtualPadPainter::SetLineStyle ( Style_t  lstyle)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetLineWidth()

virtual void TVirtualPadPainter::SetLineWidth ( Width_t  lwidth)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetOpacity()

virtual void TVirtualPadPainter::SetOpacity ( Int_t  percent)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextAlign()

virtual void TVirtualPadPainter::SetTextAlign ( Short_t  align = 11)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextAngle()

virtual void TVirtualPadPainter::SetTextAngle ( Float_t  tangle = 0)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextColor()

virtual void TVirtualPadPainter::SetTextColor ( Color_t  tcolor = 1)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextFont()

virtual void TVirtualPadPainter::SetTextFont ( Font_t  tfont = 62)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextSize()

virtual void TVirtualPadPainter::SetTextSize ( Float_t  tsize = 1)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ SetTextSizePixels()

virtual void TVirtualPadPainter::SetTextSizePixels ( Int_t  npixels)
pure virtual

Implemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ Streamer()

virtual void TVirtualPadPainter::Streamer ( TBuffer )
virtual

Reimplemented in TPadPainter, TGLPadPainter, and TWebPadPainter.

◆ StreamerNVirtual()

void TVirtualPadPainter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 103 of file TVirtualPadPainter.h.


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