ROOT
6.06/09
Reference Guide
|
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 21 of file TVirtualPadPainter.h.
Public Types | |
enum | EBoxMode { kHollow, kFilled } |
enum | ETextMode { kClear, kOpaque } |
Public Member Functions | |
virtual | ~TVirtualPadPainter () |
virtual Color_t | GetLineColor () const =0 |
virtual Style_t | GetLineStyle () const =0 |
virtual Width_t | GetLineWidth () const =0 |
virtual void | SetLineColor (Color_t lcolor)=0 |
virtual void | SetLineStyle (Style_t lstyle)=0 |
virtual void | SetLineWidth (Width_t lwidth)=0 |
virtual Color_t | GetFillColor () const =0 |
virtual Style_t | GetFillStyle () const =0 |
virtual Bool_t | IsTransparent () const =0 |
virtual void | SetFillColor (Color_t fcolor)=0 |
virtual void | SetFillStyle (Style_t fstyle)=0 |
virtual void | SetOpacity (Int_t percent)=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 | GetTextSize () const =0 |
virtual Float_t | GetTextMagnitude () const =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 Int_t | CreateDrawable (UInt_t w, UInt_t h)=0 |
virtual void | ClearDrawable ()=0 |
virtual void | CopyDrawable (Int_t device, Int_t px, Int_t py)=0 |
virtual void | DestroyDrawable ()=0 |
virtual void | SelectDrawable (Int_t device)=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 | InitPainter () |
Empty definition. More... | |
virtual void | InvalidateCS () |
Empty definition. More... | |
virtual void | LockPainter () |
Empty definition. More... | |
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 | 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 | 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 void | SaveImage (TVirtualPad *pad, const char *fileName, Int_t type) const =0 |
Static Public Member Functions | |
static TVirtualPadPainter * | PadPainter (Option_t *opt="") |
Create a pad painter of specified type. More... | |
#include <TVirtualPadPainter.h>
Enumerator | |
---|---|
kHollow | |
kFilled |
Definition at line 23 of file TVirtualPadPainter.h.
Enumerator | |
---|---|
kClear | |
kOpaque |
Definition at line 24 of file TVirtualPadPainter.h.
|
virtual |
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::Clear(), TPad::PaintBorder(), and TPad::PaintModified().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::CopyBackgroundPixmap(), and TPad::CopyPixmap().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::ResizePad().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::Close().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBorder(), and TPad::PaintBox().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBorder(), and TPad::PaintFillArea().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintLine().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintLineNDC().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintPolyLine().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintPolyLineNDC().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintPolyMarker().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintText().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintTextNDC().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBox(), and TPad::PaintFillArea().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintFillAreaHatches().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintFillAreaHatches().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintFillAreaHatches().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
virtual |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 35 of file TVirtualPadPainter.cxx.
Referenced by TCanvas::Flush().
|
virtual |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 42 of file TVirtualPadPainter.cxx.
Referenced by TPad::Range().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
|
virtual |
Empty definition.
Reimplemented in TGLPadPainter.
Definition at line 49 of file TVirtualPadPainter.cxx.
Referenced by TCanvas::Flush().
|
static |
Create a pad painter of specified type.
Definition at line 56 of file TVirtualPadPainter.cxx.
Referenced by TCanvas::CreatePainter().
|
pure virtual |
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::Print().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TCanvas::Build(), TPad::cd(), TPad::Close(), TPad::Print(), and TCanvas::SetDoubleBuffer().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBorder(), and TPad::PaintBox().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBox().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::ExecuteEvent(), TPad::PaintBorder(), and TPad::PaintFillAreaHatches().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintFillAreaHatches().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::ExecuteEvent(), TPad::PaintFillAreaHatches(), and TPad::ResizePad().
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::PaintBox().
Implemented in TGLPadPainter, and TPadPainter.
Implemented in TGLPadPainter, and TPadPainter.
Implemented in TGLPadPainter, and TPadPainter.
Implemented in TGLPadPainter, and TPadPainter.
Implemented in TGLPadPainter, and TPadPainter.
Referenced by TPad::ResizePad().
Implemented in TGLPadPainter, and TPadPainter.