Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TPadPainterPS Class Reference

Definition at line 26 of file TPadPainterPS.h.

Public Member Functions

 TPadPainterPS (TVirtualPS *ps)
 Consructor Assigns TVirtualPS instance which will be used by the painter.
 
void ClearDrawable () override
 Clear the current gVirtualX window - noop for PS.
 
void CopyDrawable (Int_t device, Int_t px, Int_t py) override
 Copy a gVirtualX pixmap - not implemented.
 
Int_t CreateDrawable (UInt_t w, UInt_t h) override
 Create a gVirtualX Pixmap - not implemented.
 
void DestroyDrawable (Int_t device) override
 Close the current gVirtualX pixmap - not implemented.
 
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
 Paint a simple box.
 
void DrawFillArea (Int_t n, const Double_t *x, const Double_t *y) override
 Paint filled area.
 
void DrawFillArea (Int_t n, const Float_t *x, const Float_t *y) override
 Paint filled area.
 
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Paint a simple line.
 
void DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
 Paint a simple line in normalized coordinates.
 
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.
 
void DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y) override
 Paint Polyline.
 
void DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y) override
 Paint polyline.
 
void DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v) override
 Paint polyline in normalized coordinates.
 
void DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y) override
 Paint polymarker.
 
void DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y) override
 Paint polymarker.
 
void DrawSegments (Int_t n, Double_t *x, Double_t *y) override
 Paint N segments on the pad.
 
void DrawSegmentsNDC (Int_t n, Double_t *u, Double_t *v) override
 Paint N segments in normalized coordinates on the pad.
 
void DrawText (Double_t x, Double_t y, const char *text, ETextMode mode) override
 Paint text.
 
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.
 
void DrawTextNDC (Double_t u, Double_t v, const char *text, ETextMode mode) override
 Paint text in normalized coordinates.
 
void DrawTextNDC (Double_t u, Double_t v, const wchar_t *text, ETextMode mode) override
 Paint text in normalized coordinates.
 
void DrawTextUrl (Double_t x, Double_t y, const char *text, const char *url) override
 Drawint text with url link.
 
TVirtualPSGetPS () const override
 
TClassIsA () const override
 
void NewPage () override
 Start new page on PS output.
 
void OnPad (TVirtualPad *pad) override
 
void SaveImage (TVirtualPad *pad, const char *fileName, Int_t type) const override
 Save the image displayed in the canvas pointed by "pad" into a binary file.
 
void SelectDrawable (Int_t device) override
 Select the window in which the graphics will go - not implemented.
 
void SetAttFill (const TAttFill &att) override
 Provide fill attributes to gVirtualPS.
 
void SetAttLine (const TAttLine &att) override
 Provide line attributes to gVirtualPS.
 
void SetAttMarker (const TAttMarker &att) override
 Provide marker attributes to gVirtualPS.
 
void SetAttText (const TAttText &att) override
 Provide text attributes to gVirtualPS.
 
void SetOpacity (Int_t percent) override
 Delegate to gVirtualPS.
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TPadPainterBase
const TAttFillGetAttFill () const override
 
const TAttLineGetAttLine () const override
 Get line attributes.
 
const TAttMarkerGetAttMarker () const override
 Get marker attributes.
 
const TAttTextGetAttText () const override
 Get text attributes.
 
Color_t GetFillColor () const override
 
Style_t GetFillStyle () const override
 
Color_t GetLineColor () const override
 
Style_t GetLineStyle () const override
 
Width_t GetLineWidth () const override
 
Color_t GetMarkerColor () const override
 
Size_t GetMarkerSize () const override
 
Style_t GetMarkerStyle () const override
 
Short_t GetTextAlign () const override
 
Float_t GetTextAngle () const override
 
Color_t GetTextColor () const override
 
Font_t GetTextFont () const override
 
Float_t GetTextMagnitude () const override
 
Float_t GetTextSize () const override
 
Bool_t IsTransparent () const override
 
void SetFillColor (Color_t fcolor) override
 
void SetFillStyle (Style_t fstyle) override
 
void SetLineColor (Color_t lcolor) override
 
void SetLineStyle (Style_t lstyle) override
 
void SetLineWidth (Width_t lwidth) override
 
void SetMarkerColor (Color_t mcolor) override
 
void SetMarkerSize (Size_t msize) override
 
void SetMarkerStyle (Style_t mstyle) override
 
void SetTextAlign (Short_t align) override
 
void SetTextAngle (Float_t tangle) override
 
void SetTextColor (Color_t tcolor) override
 
void SetTextFont (Font_t tfont) override
 
void SetTextSize (Float_t tsize) override
 
void SetTextSizePixels (Int_t npixels) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TVirtualPadPainter
virtual ~TVirtualPadPainter ()
 Virtual dtor.
 
virtual void InitPainter ()
 Empty definition.
 
virtual void InvalidateCS ()
 Empty definition.
 
virtual Bool_t IsCocoa () const
 
virtual Bool_t IsNative () const
 
virtual Bool_t IsSupportAlpha () const
 
virtual void LockPainter ()
 Empty definition.
 
virtual Int_t ResizeDrawable (Int_t, UInt_t, UInt_t)
 
virtual void SetCursor (Int_t win, ECursor cursor)
 Set cursor for specified device, redirect to gVirtualX.
 
virtual void SetDoubleBuffer (Int_t device, Int_t mode)
 Set double buffer mode for specified device, redirect to gVirtualX.
 
virtual void SetDrawMode (Int_t, Int_t)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void UpdateDrawable (Int_t)
 

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 TPadPainterBase
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.
 

Private Member Functions

 TPadPainterPS (const TPadPainterPS &)=delete
 
 TPadPainterPS (TPadPainterPS &&)=delete
 
TPadPainterPSoperator= (const TPadPainterPS &)=delete
 
TPadPainterPSoperator= (TPadPainterPS &&)=delete
 

Private Attributes

TVirtualPadfPad = nullptr
 
TVirtualPSfPS = nullptr
 

Additional Inherited Members

- Public Types inherited from TVirtualPadPainter
enum  EBoxMode { kHollow , kFilled }
 
enum  ETextMode { kClear , kOpaque }
 
- Protected Member Functions inherited from TPadPainterBase
TAttFill GetAttFillInternal (Bool_t with_transparency)
 Returns fill attributes after modification Checks for special fill styles 4000 .
 
- Protected Attributes inherited from TPadPainterBase
TAttFill fAttFill
 current fill attributes
 
TAttLine fAttLine
 current line attributes
 
TAttMarker fAttMarker
 current marker attributes
 
TAttText fAttText
 current text attributes
 
Bool_t fFullyTransparent = kFALSE
 if transformed fill attributes fully transparent
 

#include <TPadPainterPS.h>

Inheritance diagram for TPadPainterPS:
[legend]

Constructor & Destructor Documentation

◆ TPadPainterPS() [1/3]

TPadPainterPS::TPadPainterPS ( TVirtualPS * ps)

Consructor Assigns TVirtualPS instance which will be used by the painter.

Definition at line 38 of file TPadPainterPS.cxx.

◆ TPadPainterPS() [2/3]

TPadPainterPS::TPadPainterPS ( const TPadPainterPS & )
privatedelete

◆ TPadPainterPS() [3/3]

TPadPainterPS::TPadPainterPS ( TPadPainterPS && )
privatedelete

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 100 of file TPadPainterPS.h.

◆ ClearDrawable()

void TPadPainterPS::ClearDrawable ( )
overridevirtual

Clear the current gVirtualX window - noop for PS.

Implements TVirtualPadPainter.

Definition at line 128 of file TPadPainterPS.cxx.

◆ CopyDrawable()

void TPadPainterPS::CopyDrawable ( Int_t device,
Int_t px,
Int_t py )
overridevirtual

Copy a gVirtualX pixmap - not implemented.

Implements TVirtualPadPainter.

Definition at line 136 of file TPadPainterPS.cxx.

◆ CreateDrawable()

Int_t TPadPainterPS::CreateDrawable ( UInt_t w,
UInt_t h )
overridevirtual

Create a gVirtualX Pixmap - not implemented.

Implements TVirtualPadPainter.

Definition at line 119 of file TPadPainterPS.cxx.

◆ DeclFileName()

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

Definition at line 100 of file TPadPainterPS.h.

◆ DestroyDrawable()

void TPadPainterPS::DestroyDrawable ( Int_t device)
overridevirtual

Close the current gVirtualX pixmap - not implemented.

Implements TVirtualPadPainter.

Definition at line 144 of file TPadPainterPS.cxx.

◆ DrawBox()

void TPadPainterPS::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 209 of file TPadPainterPS.cxx.

◆ DrawFillArea() [1/2]

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 231 of file TPadPainterPS.cxx.

◆ DrawFillArea() [2/2]

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

Paint filled area.

Implements TVirtualPadPainter.

Definition at line 246 of file TPadPainterPS.cxx.

◆ DrawLine()

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

Paint a simple line.

Implements TVirtualPadPainter.

Definition at line 179 of file TPadPainterPS.cxx.

◆ DrawLineNDC()

void TPadPainterPS::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 191 of file TPadPainterPS.cxx.

◆ DrawPixels()

void TPadPainterPS::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 170 of file TPadPainterPS.cxx.

◆ DrawPolyLine() [1/2]

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

Paint Polyline.

Implements TVirtualPadPainter.

Definition at line 260 of file TPadPainterPS.cxx.

◆ DrawPolyLine() [2/2]

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

Paint polyline.

Implements TVirtualPadPainter.

Definition at line 277 of file TPadPainterPS.cxx.

◆ DrawPolyLineNDC()

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

Paint polyline in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 294 of file TPadPainterPS.cxx.

◆ DrawPolyMarker() [1/2]

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 351 of file TPadPainterPS.cxx.

◆ DrawPolyMarker() [2/2]

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

Paint polymarker.

Implements TVirtualPadPainter.

Definition at line 365 of file TPadPainterPS.cxx.

◆ DrawSegments()

void TPadPainterPS::DrawSegments ( Int_t n,
Double_t * x,
Double_t * y )
overridevirtual

Paint N segments on the pad.

Reimplemented from TVirtualPadPainter.

Definition at line 315 of file TPadPainterPS.cxx.

◆ DrawSegmentsNDC()

void TPadPainterPS::DrawSegmentsNDC ( Int_t n,
Double_t * u,
Double_t * v )
overridevirtual

Paint N segments in normalized coordinates on the pad.

Reimplemented from TVirtualPadPainter.

Definition at line 331 of file TPadPainterPS.cxx.

◆ DrawText() [1/2]

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

Paint text.

Implements TVirtualPadPainter.

Definition at line 379 of file TPadPainterPS.cxx.

◆ DrawText() [2/2]

void TPadPainterPS::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 388 of file TPadPainterPS.cxx.

◆ DrawTextNDC() [1/2]

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 406 of file TPadPainterPS.cxx.

◆ DrawTextNDC() [2/2]

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

Paint text in normalized coordinates.

Implements TVirtualPadPainter.

Definition at line 425 of file TPadPainterPS.cxx.

◆ DrawTextUrl()

void TPadPainterPS::DrawTextUrl ( Double_t x,
Double_t y,
const char * text,
const char * url )
overridevirtual

Drawint text with url link.

Reimplemented from TVirtualPadPainter.

Definition at line 397 of file TPadPainterPS.cxx.

◆ GetPS()

TVirtualPS * TPadPainterPS::GetPS ( ) const
inlineoverridevirtual

Reimplemented from TVirtualPadPainter.

Definition at line 90 of file TPadPainterPS.h.

◆ IsA()

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

Reimplemented from TPadPainterBase.

Definition at line 100 of file TPadPainterPS.h.

◆ NewPage()

void TPadPainterPS::NewPage ( )
overridevirtual

Start new page on PS output.

Reimplemented from TVirtualPadPainter.

Definition at line 160 of file TPadPainterPS.cxx.

◆ OnPad()

void TPadPainterPS::OnPad ( TVirtualPad * pad)
inlineoverridevirtual

Reimplemented from TVirtualPadPainter.

Definition at line 88 of file TPadPainterPS.h.

◆ operator=() [1/2]

TPadPainterPS & TPadPainterPS::operator= ( const TPadPainterPS & )
privatedelete

◆ operator=() [2/2]

TPadPainterPS & TPadPainterPS::operator= ( TPadPainterPS && )
privatedelete

◆ SaveImage()

void TPadPainterPS::SaveImage ( TVirtualPad * pad,
const char * fileName,
Int_t type ) const
overridevirtual

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

Implements TVirtualPadPainter.

Definition at line 417 of file TPadPainterPS.cxx.

◆ SelectDrawable()

void TPadPainterPS::SelectDrawable ( Int_t device)
overridevirtual

Select the window in which the graphics will go - not implemented.

Implements TVirtualPadPainter.

Definition at line 152 of file TPadPainterPS.cxx.

◆ SetAttFill()

void TPadPainterPS::SetAttFill ( const TAttFill & att)
overridevirtual

Provide fill attributes to gVirtualPS.

Reimplemented from TPadPainterBase.

Definition at line 68 of file TPadPainterPS.cxx.

◆ SetAttLine()

void TPadPainterPS::SetAttLine ( const TAttLine & att)
overridevirtual

Provide line attributes to gVirtualPS.

Reimplemented from TPadPainterBase.

Definition at line 80 of file TPadPainterPS.cxx.

◆ SetAttMarker()

void TPadPainterPS::SetAttMarker ( const TAttMarker & att)
overridevirtual

Provide marker attributes to gVirtualPS.

Reimplemented from TPadPainterBase.

Definition at line 92 of file TPadPainterPS.cxx.

◆ SetAttText()

void TPadPainterPS::SetAttText ( const TAttText & att)
overridevirtual

Provide text attributes to gVirtualPS.

Reimplemented from TPadPainterBase.

Definition at line 104 of file TPadPainterPS.cxx.

◆ SetOpacity()

void TPadPainterPS::SetOpacity ( Int_t percent)
overridevirtual

Delegate to gVirtualPS.

Implements TVirtualPadPainter.

Definition at line 58 of file TPadPainterPS.cxx.

◆ Streamer()

void TPadPainterPS::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TPadPainterBase.

◆ StreamerNVirtual()

void TPadPainterPS::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 100 of file TPadPainterPS.h.

Member Data Documentation

◆ fPad

TVirtualPad* TPadPainterPS::fPad = nullptr
private

Definition at line 29 of file TPadPainterPS.h.

◆ fPS

TVirtualPS* TPadPainterPS::fPS = nullptr
private

Definition at line 28 of file TPadPainterPS.h.

Libraries for TPadPainterPS:

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