ROOT logo
ROOT » GRAF2D » GPAD » TPadPainter

class TPadPainter: public TVirtualPadPainter

Function Members (Methods)

public:
TPadPainter()
~TPadPainter()
static TClass*Class()
virtual voidClearDrawable()
virtual voidCopyDrawable(Int_t id, Int_t px, Int_t py)
virtual Int_tCreateDrawable(UInt_t w, UInt_t h)
virtual voidDestroyDrawable()
virtual voidDrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TVirtualPadPainter::EBoxMode mode)
virtual voidDrawFillArea(Int_t n, const Double_t* x, const Double_t* y)
virtual voidDrawFillArea(Int_t n, const Float_t* x, const Float_t* y)
virtual voidDrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidDrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
virtual voidDrawPixels(const unsigned char* pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableBlending)
virtual voidDrawPolyLine(Int_t n, const Double_t* x, const Double_t* y)
virtual voidDrawPolyLine(Int_t n, const Float_t* x, const Float_t* y)
virtual voidDrawPolyLineNDC(Int_t n, const Double_t* u, const Double_t* v)
virtual voidDrawPolyMarker(Int_t n, const Double_t* x, const Double_t* y)
virtual voidDrawPolyMarker(Int_t n, const Float_t* x, const Float_t* y)
virtual voidDrawText(Double_t x, Double_t y, const char* text, TVirtualPadPainter::ETextMode mode)
virtual voidDrawText(Double_t x, Double_t y, const wchar_t* text, TVirtualPadPainter::ETextMode mode)
virtual voidDrawTextNDC(Double_t u, Double_t v, const char* text, TVirtualPadPainter::ETextMode mode)
virtual voidDrawTextNDC(Double_t u, Double_t v, const wchar_t* text, TVirtualPadPainter::ETextMode mode)
virtual Color_tGetFillColor() const
virtual Style_tGetFillStyle() const
virtual Color_tGetLineColor() const
virtual Style_tGetLineStyle() const
virtual Width_tGetLineWidth() const
virtual Short_tGetTextAlign() const
virtual Float_tGetTextAngle() const
virtual Color_tGetTextColor() const
virtual Font_tGetTextFont() const
virtual Float_tGetTextMagnitude() const
virtual Float_tGetTextSize() const
virtual voidTVirtualPadPainter::InitPainter()
virtual voidTVirtualPadPainter::InvalidateCS()
virtual TClass*IsA() const
virtual Bool_tIsTransparent() const
virtual voidTVirtualPadPainter::LockPainter()
static TVirtualPadPainter*TVirtualPadPainter::PadPainter(Option_t* opt = "")
virtual voidSaveImage(TVirtualPad* pad, const char* fileName, Int_t type) const
virtual voidSelectDrawable(Int_t device)
virtual voidSetFillColor(Color_t fcolor)
virtual voidSetFillStyle(Style_t fstyle)
virtual voidSetLineColor(Color_t lcolor)
virtual voidSetLineStyle(Style_t lstyle)
virtual voidSetLineWidth(Width_t lwidth)
virtual voidSetOpacity(Int_t percent)
virtual voidSetTextAlign(Short_t align)
virtual voidSetTextAngle(Float_t tangle)
virtual voidSetTextColor(Color_t tcolor)
virtual voidSetTextFont(Font_t tfont)
virtual voidSetTextSize(Float_t tsize)
virtual voidSetTextSizePixels(Int_t npixels)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
private:
TPadPainter(const TPadPainter& rhs)
TPadPainter&operator=(const TPadPainter& rhs)

Data Members

public:
enum TVirtualPadPainter::EBoxMode { kHollow
kFilled
};
enum TVirtualPadPainter::ETextMode { kClear
kOpaque
};

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPadPainter()
Empty ctor. We need it only because of explicit copy ctor.
Color_t GetLineColor() const
 Delegate to gVirtualX.
Style_t GetLineStyle() const
 Delegate to gVirtualX.
Width_t GetLineWidth() const
 Delegate to gVirtualX.
void SetLineColor(Color_t lcolor)
 Delegate to gVirtualX.
void SetLineStyle(Style_t lstyle)
 Delegate to gVirtualX.
void SetLineWidth(Width_t lwidth)
 Delegate to gVirtualX.
Color_t GetFillColor() const
 Delegate to gVirtualX.
Style_t GetFillStyle() const
 Delegate to gVirtualX.
Bool_t IsTransparent() const
 Delegate to gVirtualX.
void SetFillColor(Color_t fcolor)
 Delegate to gVirtualX.
void SetFillStyle(Style_t fstyle)
 Delegate to gVirtualX.
void SetOpacity(Int_t percent)
 Delegate to gVirtualX.
Short_t GetTextAlign() const
 Delegate to gVirtualX.
Float_t GetTextAngle() const
 Delegate to gVirtualX.
Color_t GetTextColor() const
 Delegate to gVirtualX.
Font_t GetTextFont() const
 Delegate to gVirtualX.
Float_t GetTextSize() const
 Delegate to gVirtualX.
Float_t GetTextMagnitude() const
 Delegate to gVirtualX.
void SetTextAlign(Short_t align)
 Delegate to gVirtualX.
void SetTextAngle(Float_t tangle)
 Delegate to gVirtualX.
void SetTextColor(Color_t tcolor)
 Delegate to gVirtualX.
void SetTextFont(Font_t tfont)
 Delegate to gVirtualX.
void SetTextSize(Float_t tsize)
 Delegate to gVirtualX.
void SetTextSizePixels(Int_t npixels)
 Delegate to gVirtualX.
Int_t CreateDrawable(UInt_t w, UInt_t h)
 Create a gVirtualX Pixmap.
void ClearDrawable()
 Clear the current gVirtualX window.
void CopyDrawable(Int_t id, Int_t px, Int_t py)
 Copy a gVirtualX pixmap.
void DestroyDrawable()
 Close the current gVirtualX pixmap.
void SelectDrawable(Int_t device)
 Select the window in which the graphics will go.
void DrawPixels(const unsigned char* pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableBlending)
Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.
void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Paint a simple line.
void DrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
 Paint a simple line in normalized coordinates.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TVirtualPadPainter::EBoxMode mode)
 Paint a simple box.
void DrawFillArea(Int_t n, const Double_t* x, const Double_t* y)
Paint filled area.
void DrawFillArea(Int_t n, const Float_t* x, const Float_t* y)
Paint filled area.
void DrawPolyLine(Int_t n, const Double_t* x, const Double_t* y)
void DrawPolyLine(Int_t n, const Float_t* x, const Float_t* y)
Paint polyline.
void DrawPolyLineNDC(Int_t n, const Double_t* u, const Double_t* v)
Paint polyline in normalized coordinates.
void DrawPolyMarker(Int_t n, const Double_t* x, const Double_t* y)
Paint polymarker.
void DrawPolyMarker(Int_t n, const Float_t* x, const Float_t* y)
Paint polymarker.
void DrawText(Double_t x, Double_t y, const char* text, TVirtualPadPainter::ETextMode mode)
Paint text.
void DrawText(Double_t x, Double_t y, const wchar_t* text, TVirtualPadPainter::ETextMode mode)
That's a special version working with wchar_t and required by TMathText (who uses utf-8(?))
void DrawTextNDC(Double_t u, Double_t v, const char* text, TVirtualPadPainter::ETextMode mode)
 Paint text in normalized coordinates.
void SaveImage(TVirtualPad* pad, const char* fileName, Int_t type) const
 Save the image displayed in the canvas pointed by "pad" into a
 binary file.
assert(pad != 0 && "SaveImage, parameter 'pad' is null");
assert(fileName != 0 && "SaveImage, parameter 'fileName' is null");
void DrawTextNDC(Double_t u, Double_t v, const wchar_t* text, TVirtualPadPainter::ETextMode mode)
 Paint text in normalized coordinates.
TPadPainter()
Final overriders for TVirtualPadPainter pure virtual functions.
1. Part, which simply delegates to TVirtualX.
Line attributes.