ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | List of all members
TPadPainter Class Reference

Implement TVirtualPadPainter which abstracts painting operations.

Definition at line 28 of file TPadPainter.h.

Public Member Functions

 TPadPainter ()
 
Color_t GetLineColor () const
 Delegate to gVirtualX. More...
 
Style_t GetLineStyle () const
 Delegate to gVirtualX. More...
 
Width_t GetLineWidth () const
 Delegate to gVirtualX. More...
 
void SetLineColor (Color_t lcolor)
 Delegate to gVirtualX. More...
 
void SetLineStyle (Style_t lstyle)
 Delegate to gVirtualX. More...
 
void SetLineWidth (Width_t lwidth)
 Delegate to gVirtualX. More...
 
Color_t GetFillColor () const
 Delegate to gVirtualX. More...
 
Style_t GetFillStyle () const
 Delegate to gVirtualX. More...
 
Bool_t IsTransparent () const
 Delegate to gVirtualX. More...
 
void SetFillColor (Color_t fcolor)
 Delegate to gVirtualX. More...
 
void SetFillStyle (Style_t fstyle)
 Delegate to gVirtualX. More...
 
void SetOpacity (Int_t percent)
 Delegate to gVirtualX. More...
 
Short_t GetTextAlign () const
 Delegate to gVirtualX. More...
 
Float_t GetTextAngle () const
 Delegate to gVirtualX. More...
 
Color_t GetTextColor () const
 Delegate to gVirtualX. More...
 
Font_t GetTextFont () const
 Delegate to gVirtualX. More...
 
Float_t GetTextSize () const
 Delegate to gVirtualX. More...
 
Float_t GetTextMagnitude () const
 Delegate to gVirtualX. More...
 
void SetTextAlign (Short_t align)
 Delegate to gVirtualX. More...
 
void SetTextAngle (Float_t tangle)
 Delegate to gVirtualX. More...
 
void SetTextColor (Color_t tcolor)
 Delegate to gVirtualX. More...
 
void SetTextFont (Font_t tfont)
 Delegate to gVirtualX. More...
 
void SetTextSize (Float_t tsize)
 Delegate to gVirtualX. More...
 
void SetTextSizePixels (Int_t npixels)
 Delegate to gVirtualX. More...
 
Int_t CreateDrawable (UInt_t w, UInt_t h)
 Create a gVirtualX Pixmap. More...
 
void ClearDrawable ()
 Clear the current gVirtualX window. More...
 
void CopyDrawable (Int_t id, Int_t px, Int_t py)
 Copy a gVirtualX pixmap. More...
 
void DestroyDrawable ()
 Close the current gVirtualX pixmap. More...
 
void SelectDrawable (Int_t device)
 Select the window in which the graphics will go. More...
 
void DrawPixels (const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending)
 Noop, for non-gl pad TASImage calls gVirtualX->CopyArea. More...
 
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Paint a simple line. More...
 
void DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2)
 Paint a simple line in normalized coordinates. More...
 
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode)
 Paint a simple box. More...
 
void DrawFillArea (Int_t n, const Double_t *x, const Double_t *y)
 Paint filled area. More...
 
void DrawFillArea (Int_t n, const Float_t *x, const Float_t *y)
 Paint filled area. More...
 
void DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y)
 Paint Polyline. More...
 
void DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y)
 Paint polyline. More...
 
void DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v)
 Paint polyline in normalized coordinates. More...
 
void DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y)
 Paint polymarker. More...
 
void DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y)
 Paint polymarker. More...
 
void DrawText (Double_t x, Double_t y, const char *text, ETextMode mode)
 Paint text. More...
 
void DrawText (Double_t x, Double_t y, const wchar_t *text, ETextMode mode)
 Special version working with wchar_t and required by TMathText. More...
 
void DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode)
 Paint text in normalized coordinates. More...
 
void DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode)
 Paint text in normalized coordinates. More...
 
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. More...
 
- Public Member Functions inherited from TVirtualPadPainter
virtual ~TVirtualPadPainter ()
 
virtual void InitPainter ()
 Empty definition. More...
 
virtual void InvalidateCS ()
 Empty definition. More...
 
virtual void LockPainter ()
 Empty definition. More...
 

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from TVirtualPadPainter
enum  EBoxMode { kHollow, kFilled }
 
enum  ETextMode { kClear, kOpaque }
 
- Static Public Member Functions inherited from TVirtualPadPainter
static TVirtualPadPainterPadPainter (Option_t *opt="")
 Create a pad painter of specified type. More...
 

#include <TPadPainter.h>

+ Inheritance diagram for TPadPainter:
+ Collaboration diagram for TPadPainter:

Constructor & Destructor Documentation

TPadPainter::TPadPainter ( )
TPadPainter::TPadPainter ( const TPadPainter rhs)
privatedelete
TPadPainter::TPadPainter ( TPadPainter &&  rhs)
privatedelete

Member Function Documentation

void TPadPainter::ClearDrawable ( )
virtual

Clear the current gVirtualX window.

Implements TVirtualPadPainter.

Definition at line 315 of file TPadPainter.cxx.

void TPadPainter::CopyDrawable ( Int_t  id,
Int_t  px,
Int_t  py 
)
virtual

Copy a gVirtualX pixmap.

Implements TVirtualPadPainter.

Definition at line 324 of file TPadPainter.cxx.

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

Create a gVirtualX Pixmap.

Implements TVirtualPadPainter.

Definition at line 306 of file TPadPainter.cxx.

void TPadPainter::DestroyDrawable ( )
virtual

Close the current gVirtualX pixmap.

Implements TVirtualPadPainter.

Definition at line 333 of file TPadPainter.cxx.

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

Paint a simple box.

Implements TVirtualPadPainter.

Definition at line 389 of file TPadPainter.cxx.

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 410 of file TPadPainter.cxx.

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 424 of file TPadPainter.cxx.

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

Paint a simple line.

Implements TVirtualPadPainter.

Definition at line 359 of file TPadPainter.cxx.

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

Paint a simple line in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 374 of file TPadPainter.cxx.

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

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

Implements TVirtualPadPainter.

Definition at line 350 of file TPadPainter.cxx.

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

Paint Polyline.

Implements TVirtualPadPainter.

Definition at line 437 of file TPadPainter.cxx.

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

Paint polyline.

Implements TVirtualPadPainter.

Definition at line 453 of file TPadPainter.cxx.

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

Paint polyline in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 469 of file TPadPainter.cxx.

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 492 of file TPadPainter.cxx.

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 506 of file TPadPainter.cxx.

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

Paint text.

Implements TVirtualPadPainter.

Definition at line 520 of file TPadPainter.cxx.

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

Special version working with wchar_t and required by TMathText.

Implements TVirtualPadPainter.

Definition at line 533 of file TPadPainter.cxx.

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 546 of file TPadPainter.cxx.

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 622 of file TPadPainter.cxx.

Color_t TPadPainter::GetFillColor ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 143 of file TPadPainter.cxx.

Style_t TPadPainter::GetFillStyle ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 152 of file TPadPainter.cxx.

Color_t TPadPainter::GetLineColor ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 89 of file TPadPainter.cxx.

Style_t TPadPainter::GetLineStyle ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 98 of file TPadPainter.cxx.

Width_t TPadPainter::GetLineWidth ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 107 of file TPadPainter.cxx.

Referenced by DrawBox(), DrawLine(), DrawLineNDC(), DrawPolyLine(), and DrawPolyLineNDC().

Short_t TPadPainter::GetTextAlign ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 198 of file TPadPainter.cxx.

Float_t TPadPainter::GetTextAngle ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 207 of file TPadPainter.cxx.

Referenced by DrawText(), and DrawTextNDC().

Color_t TPadPainter::GetTextColor ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 216 of file TPadPainter.cxx.

Font_t TPadPainter::GetTextFont ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 225 of file TPadPainter.cxx.

Float_t TPadPainter::GetTextMagnitude ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 243 of file TPadPainter.cxx.

Referenced by DrawText(), and DrawTextNDC().

Float_t TPadPainter::GetTextSize ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 234 of file TPadPainter.cxx.

Bool_t TPadPainter::IsTransparent ( ) const
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 161 of file TPadPainter.cxx.

TPadPainter& TPadPainter::operator= ( const TPadPainter rhs)
privatedelete
TPadPainter& TPadPainter::operator= ( TPadPainter &&  rhs)
privatedelete
void TPadPainter::SaveImage ( TVirtualPad pad,
const char *  fileName,
Int_t  type 
) const
virtual

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

Implements TVirtualPadPainter.

Definition at line 559 of file TPadPainter.cxx.

void TPadPainter::SelectDrawable ( Int_t  device)
virtual

Select the window in which the graphics will go.

Implements TVirtualPadPainter.

Definition at line 342 of file TPadPainter.cxx.

void TPadPainter::SetFillColor ( Color_t  fcolor)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 171 of file TPadPainter.cxx.

void TPadPainter::SetFillStyle ( Style_t  fstyle)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 180 of file TPadPainter.cxx.

void TPadPainter::SetLineColor ( Color_t  lcolor)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 116 of file TPadPainter.cxx.

void TPadPainter::SetLineStyle ( Style_t  lstyle)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 125 of file TPadPainter.cxx.

void TPadPainter::SetLineWidth ( Width_t  lwidth)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 134 of file TPadPainter.cxx.

void TPadPainter::SetOpacity ( Int_t  percent)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 189 of file TPadPainter.cxx.

void TPadPainter::SetTextAlign ( Short_t  align)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 252 of file TPadPainter.cxx.

void TPadPainter::SetTextAngle ( Float_t  tangle)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 261 of file TPadPainter.cxx.

void TPadPainter::SetTextColor ( Color_t  tcolor)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 270 of file TPadPainter.cxx.

void TPadPainter::SetTextFont ( Font_t  tfont)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 279 of file TPadPainter.cxx.

void TPadPainter::SetTextSize ( Float_t  tsize)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 288 of file TPadPainter.cxx.

void TPadPainter::SetTextSizePixels ( Int_t  npixels)
virtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 297 of file TPadPainter.cxx.


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