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

"Delegating" part of TGLPadPainter.

Line/fill/etc. attributes can be set inside TPad, but not only there: many of them are set by base sub-objects of 2d primitives (2d primitives usually inherit TAttLine or TAttFill etc.). And these sub-objects call gVirtualX->SetLineWidth ... etc. So, if I save some attributes in my painter, it will be mess - at any moment I do not know, where to take line attribute - from gVirtualX or from my own member. So! All attributed, ALL go to/from gVirtualX.

Definition at line 29 of file TGLPadPainter.h.

Public Member Functions

 TGLPadPainter ()
 
void ClearDrawable () override
 Call gVirtualX->ClearWindow()
 
void CopyDrawable (Int_t device, Int_t px, Int_t py) override
 Not required at the moment.
 
Int_t CreateDrawable (UInt_t w, UInt_t h) override
 Not required at the moment.
 
void DestroyDrawable (Int_t device) override
 Not required at the moment.
 
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
 Draw filled or hollow box.
 
void DrawFillArea (Int_t n, const Double_t *x, const Double_t *y) override
 Draw tesselated polygon (probably, outline only).
 
void DrawFillArea (Int_t n, const Float_t *x, const Float_t *y) override
 Draw tesselated polygon (never called, probably, since TPad::PaintFillArea for floats is deprecated).
 
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Draw line segment.
 
void DrawLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
 Draw line segment in NDC coordinates.
 
void DrawPixels (const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableBlending) override
 
void DrawPolyLine (Int_t n, const Double_t *x, const Double_t *y) override
 Draw poly-line in user coordinates.
 
void DrawPolyLine (Int_t n, const Float_t *x, const Float_t *y) override
 Never called?
 
void DrawPolyLineNDC (Int_t n, const Double_t *u, const Double_t *v) override
 Poly line in NDC.
 
void DrawPolyMarker (Int_t n, const Double_t *x, const Double_t *y) override
 Poly-marker.
 
void DrawPolyMarker (Int_t n, const Float_t *x, const Float_t *y) override
 Poly-marker.
 
void DrawText (Double_t x, Double_t y, const char *text, ETextMode mode) override
 Draw text.
 
void DrawText (Double_t, Double_t, const wchar_t *, ETextMode) override
 Draw text.
 
template<class Char >
void DrawTextHelper (Double_t x, Double_t y, const Char *text, ETextMode)
 
void DrawTextNDC (Double_t x, Double_t y, const char *text, ETextMode mode) override
 Draw text in NDC.
 
void DrawTextNDC (Double_t, Double_t, const wchar_t *, ETextMode) override
 Draw text in NDC.
 
Color_t GetFillColor () const override
 Delegate to gVirtualX.
 
Style_t GetFillStyle () const override
 Delegate to gVirtualX.
 
Color_t GetLineColor () const override
 Delegate to gVirtualX.
 
Style_t GetLineStyle () const override
 Delegate to gVirtualX.
 
Width_t GetLineWidth () const override
 Delegate to gVirtualX.
 
Color_t GetMarkerColor () const override
 Delegate to gVirtualX.
 
Size_t GetMarkerSize () const override
 Delegate to gVirtualX.
 
Style_t GetMarkerStyle () const override
 Delegate to gVirtualX.
 
Short_t GetTextAlign () const override
 Delegate to gVirtualX.
 
Float_t GetTextAngle () const override
 Delegate to gVirtualX.
 
Color_t GetTextColor () const override
 Delegate to gVirtualX.
 
Font_t GetTextFont () const override
 Delegate to gVirtualX.
 
Float_t GetTextMagnitude () const override
 Delegate to gVirtualX.
 
Float_t GetTextSize () const override
 Delegate to gVirtualX.
 
void InitPainter () override
 Init gl-pad painter:
 
void InvalidateCS () override
 When TPad::Range for gPad is called, projection must be changed in OpenGL.
 
TClassIsA () const override
 
Bool_t IsCocoa () const override
 Returns true when cocoa backend is used.
 
Bool_t IsNative () const override
 
Bool_t IsSupportAlpha () const override
 
Bool_t IsTransparent () const override
 Delegate to gVirtualX.
 
void LockPainter () override
 Locked state of painter means, that GL context can be invalid, so no GL calls can be executed.
 
Int_t ResizeDrawable (Int_t device, UInt_t w, UInt_t h) override
 Resize a gVirtualX Pixmap.
 
void SaveImage (TVirtualPad *pad, const char *fileName, Int_t type) const override
 Using TImage save frame-buffer contents as a picture.
 
void SelectDrawable (Int_t device) override
 For gVirtualX this means select pixmap (or window) and all subsequent drawings will go into this pixmap.
 
void SetDrawMode (Int_t device, Int_t mode) override
 Set drawing mode for specified device.
 
void SetFillColor (Color_t fcolor) override
 Delegate to gVirtualX.
 
void SetFillStyle (Style_t fstyle) override
 Delegate to gVirtualX.
 
void SetLineColor (Color_t lcolor) override
 Delegate to gVirtualX.
 
void SetLineStyle (Style_t lstyle) override
 Delegate to gVirtualX.
 
void SetLineWidth (Width_t lwidth) override
 Delegate to gVirtualX.
 
void SetMarkerColor (Color_t mcolor) override
 Delegate to gVirtualX.
 
void SetMarkerSize (Size_t msize) override
 Delegate to gVirtualX.
 
void SetMarkerStyle (Style_t mstyle) override
 Delegate to gVirtualX.
 
void SetOpacity (Int_t percent) override
 Delegate to gVirtualX.
 
void SetTextAlign (Short_t align) override
 Delegate to gVirtualX.
 
void SetTextAngle (Float_t tangle) override
 Delegate to gVirtualX.
 
void SetTextColor (Color_t tcolor) override
 Delegate to gVirtualX.
 
void SetTextFont (Font_t tfont) override
 Delegate to gVirtualX.
 
void SetTextSize (Float_t tsize) override
 Delegate to gVirtualX.
 
void SetTextSizePixels (Int_t npixels) override
 Delegate to gVirtualX.
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UpdateDrawable (Int_t mode) override
 Call low-level update of selected drawable, redirect to gVirtualX.
 
- Public Member Functions inherited from TVirtualPadPainter
virtual ~TVirtualPadPainter ()
 Virtual dtor.
 
virtual void DrawSegments (Int_t n, Double_t *x, Double_t *y)
 Draw N segments on the pad Exclude segments where both points match.
 
virtual void DrawSegmentsNDC (Int_t n, Double_t *u, Double_t *v)
 Draw N segments in NDC coordinates on the pad Exclude segments where both points match.
 
virtual void DrawTextUrl (Double_t x, Double_t y, const char *text, const char *url)
 Draw text with url link By default only text is drawn.
 
virtual TVirtualPSGetPS () const
 
virtual void NewPage ()
 
virtual void OnPad (TVirtualPad *)
 
virtual void SetAttFill (const TAttFill &att)
 Set fill attributes.
 
virtual void SetAttLine (const TAttLine &att)
 Set line attributes.
 
virtual void SetAttMarker (const TAttMarker &att)
 Set marker attributes.
 
virtual void SetAttText (const TAttText &att)
 Set text attributes.
 
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.
 
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 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

 TGLPadPainter (const TGLPadPainter &rhs)
 
void DrawGradient (const TLinearGradient *gradient, Int_t n, const Double_t *x, const Double_t *y)
 
void DrawGradient (const TRadialGradient *gradient, Int_t n, const Double_t *x, const Double_t *y)
 
void DrawPolygonWithGradient (Int_t n, const Double_t *x, const Double_t *y)
 At the moment I assume both linear and radial gradients will work the same way - using a stencil buffer and some big rectangle(s) to fill with a gradient.
 
void DrawPolyMarker ()
 Poly-marker.
 
void DrawTesselation (Int_t n, const Double_t *x, const Double_t *y)
 
template<class Char_t >
void DrawTextHelper (Double_t x, Double_t y, const Char_t *text, ETextMode mode)
 
TGLPadPainteroperator= (const TGLPadPainter &rhs)
 
void RestoreModelviewMatrix () const
 Restore the modelview matrix.
 
void RestoreProjectionMatrix () const
 Restore the projection matrix.
 
void RestoreViewport ()
 Restore the saved viewport.
 
void SaveModelviewMatrix () const
 Save the modelview matrix.
 
void SaveProjectionMatrix () const
 Save the projection matrix.
 
void SaveViewport ()
 Extract and save the current viewport.
 

Private Attributes

TGLFont fF
 
TGLFontManager fFM
 
Bool_t fIsHollowArea
 
Rgl::Pad::GLLimits fLimits
 
Bool_t fLocked
 
Rgl::Pad::MarkerPainter fMarker
 
std::vector< TPointfPoly
 
Rgl::Pad::PolygonStippleSet fSSet
 
Rgl::Pad::Tesselator fTess
 
Int_t fVp [4]
 
std::vector< Double_tfVs
 
WinContext_t fWinContext
 

Additional Inherited Members

- Public Types inherited from TVirtualPadPainter
enum  EBoxMode { kHollow , kFilled }
 
enum  ETextMode { kClear , kOpaque }
 

#include <TGLPadPainter.h>

Inheritance diagram for TGLPadPainter:
[legend]

Constructor & Destructor Documentation

◆ TGLPadPainter() [1/2]

TGLPadPainter::TGLPadPainter ( )

Definition at line 60 of file TGLPadPainter.cxx.

◆ TGLPadPainter() [2/2]

TGLPadPainter::TGLPadPainter ( const TGLPadPainter & rhs)
private

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 176 of file TGLPadPainter.h.

◆ ClearDrawable()

void TGLPadPainter::ClearDrawable ( )
overridevirtual

Call gVirtualX->ClearWindow()

Implements TVirtualPadPainter.

Definition at line 340 of file TGLPadPainter.cxx.

◆ CopyDrawable()

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

Not required at the moment.

Implements TVirtualPadPainter.

Definition at line 356 of file TGLPadPainter.cxx.

◆ CreateDrawable()

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

Not required at the moment.

Implements TVirtualPadPainter.

Definition at line 323 of file TGLPadPainter.cxx.

◆ DeclFileName()

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

Definition at line 176 of file TGLPadPainter.h.

◆ DestroyDrawable()

void TGLPadPainter::DestroyDrawable ( Int_t device)
overridevirtual

Not required at the moment.

Implements TVirtualPadPainter.

Definition at line 364 of file TGLPadPainter.cxx.

◆ DrawBox()

void TGLPadPainter::DrawBox ( Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2,
EBoxMode mode )
overridevirtual

Draw filled or hollow box.

Implements TVirtualPadPainter.

Definition at line 591 of file TGLPadPainter.cxx.

◆ DrawFillArea() [1/2]

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

Draw tesselated polygon (probably, outline only).

Implements TVirtualPadPainter.

Definition at line 618 of file TGLPadPainter.cxx.

◆ DrawFillArea() [2/2]

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

Draw tesselated polygon (never called, probably, since TPad::PaintFillArea for floats is deprecated).

Implements TVirtualPadPainter.

Definition at line 648 of file TGLPadPainter.cxx.

◆ DrawGradient() [1/2]

void TGLPadPainter::DrawGradient ( const TLinearGradient * gradient,
Int_t n,
const Double_t * x,
const Double_t * y )
private

Definition at line 1460 of file TGLPadPainter.cxx.

◆ DrawGradient() [2/2]

void TGLPadPainter::DrawGradient ( const TRadialGradient * gradient,
Int_t n,
const Double_t * x,
const Double_t * y )
private

Definition at line 1283 of file TGLPadPainter.cxx.

◆ DrawLine()

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

Draw line segment.

Implements TVirtualPadPainter.

Definition at line 519 of file TGLPadPainter.cxx.

◆ DrawLineNDC()

void TGLPadPainter::DrawLineNDC ( Double_t u1,
Double_t v1,
Double_t u2,
Double_t v2 )
overridevirtual

Draw line segment in NDC coordinates.

Implements TVirtualPadPainter.

Definition at line 564 of file TGLPadPainter.cxx.

◆ DrawPixels()

void TGLPadPainter::DrawPixels ( const unsigned char * pixelData,
UInt_t width,
UInt_t height,
Int_t dstX,
Int_t dstY,
Bool_t enableBlending )
overridevirtual

Implements TVirtualPadPainter.

Definition at line 1151 of file TGLPadPainter.cxx.

◆ DrawPolygonWithGradient()

void TGLPadPainter::DrawPolygonWithGradient ( Int_t n,
const Double_t * x,
const Double_t * y )
private

At the moment I assume both linear and radial gradients will work the same way - using a stencil buffer and some big rectangle(s) to fill with a gradient.

Thus I have a 'common' part - the part responsible for a stencil test.

Definition at line 1229 of file TGLPadPainter.cxx.

◆ DrawPolyLine() [1/2]

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

Draw poly-line in user coordinates.

Implements TVirtualPadPainter.

Definition at line 680 of file TGLPadPainter.cxx.

◆ DrawPolyLine() [2/2]

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

Never called?

Implements TVirtualPadPainter.

Definition at line 717 of file TGLPadPainter.cxx.

◆ DrawPolyLineNDC()

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

Poly line in NDC.

Implements TVirtualPadPainter.

Definition at line 739 of file TGLPadPainter.cxx.

◆ DrawPolyMarker() [1/3]

void TGLPadPainter::DrawPolyMarker ( )
private

Poly-marker.

Definition at line 789 of file TGLPadPainter.cxx.

◆ DrawPolyMarker() [2/3]

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

Poly-marker.

Implements TVirtualPadPainter.

Definition at line 767 of file TGLPadPainter.cxx.

◆ DrawPolyMarker() [3/3]

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

Poly-marker.

Implements TVirtualPadPainter.

Definition at line 778 of file TGLPadPainter.cxx.

◆ DrawTesselation()

void TGLPadPainter::DrawTesselation ( Int_t n,
const Double_t * x,
const Double_t * y )
private

Definition at line 1581 of file TGLPadPainter.cxx.

◆ DrawText() [1/2]

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

Draw text.

This operation is especially dangerous if in locked state - ftgl will assert on zero texture size (which is result of bad GL context).

Implements TVirtualPadPainter.

Definition at line 981 of file TGLPadPainter.cxx.

◆ DrawText() [2/2]

void TGLPadPainter::DrawText ( Double_t x,
Double_t y,
const wchar_t * text,
ETextMode mode )
overridevirtual

Draw text.

This operation is especially dangerous if in locked state - ftgl will assert on zero texture size (which is result of bad GL context).

Implements TVirtualPadPainter.

Definition at line 997 of file TGLPadPainter.cxx.

◆ DrawTextHelper() [1/2]

template<class Char >
void TGLPadPainter::DrawTextHelper ( Double_t x,
Double_t y,
const Char * text,
ETextMode  )

Definition at line 936 of file TGLPadPainter.cxx.

◆ DrawTextHelper() [2/2]

template<class Char_t >
void TGLPadPainter::DrawTextHelper ( Double_t x,
Double_t y,
const Char_t * text,
ETextMode mode )
private

◆ DrawTextNDC() [1/2]

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

Draw text in NDC.

This operation is especially dangerous if in locked state - ftgl will assert on zero texture size (which is result of bad GL context).

Implements TVirtualPadPainter.

Definition at line 1013 of file TGLPadPainter.cxx.

◆ DrawTextNDC() [2/2]

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

Draw text in NDC.

This operation is especially dangerous if in locked state - ftgl will assert on zero texture size (which is result of bad GL context).

Implements TVirtualPadPainter.

Definition at line 1028 of file TGLPadPainter.cxx.

◆ GetFillColor()

Color_t TGLPadPainter::GetFillColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 120 of file TGLPadPainter.cxx.

◆ GetFillStyle()

Style_t TGLPadPainter::GetFillStyle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 128 of file TGLPadPainter.cxx.

◆ GetLineColor()

Color_t TGLPadPainter::GetLineColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 72 of file TGLPadPainter.cxx.

◆ GetLineStyle()

Style_t TGLPadPainter::GetLineStyle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 80 of file TGLPadPainter.cxx.

◆ GetLineWidth()

Width_t TGLPadPainter::GetLineWidth ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 88 of file TGLPadPainter.cxx.

◆ GetMarkerColor()

Color_t TGLPadPainter::GetMarkerColor ( ) const
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 266 of file TGLPadPainter.cxx.

◆ GetMarkerSize()

Size_t TGLPadPainter::GetMarkerSize ( ) const
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 284 of file TGLPadPainter.cxx.

◆ GetMarkerStyle()

Style_t TGLPadPainter::GetMarkerStyle ( ) const
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 275 of file TGLPadPainter.cxx.

◆ GetTextAlign()

Short_t TGLPadPainter::GetTextAlign ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 169 of file TGLPadPainter.cxx.

◆ GetTextAngle()

Float_t TGLPadPainter::GetTextAngle ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 177 of file TGLPadPainter.cxx.

◆ GetTextColor()

Color_t TGLPadPainter::GetTextColor ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 185 of file TGLPadPainter.cxx.

◆ GetTextFont()

Font_t TGLPadPainter::GetTextFont ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 193 of file TGLPadPainter.cxx.

◆ GetTextMagnitude()

Float_t TGLPadPainter::GetTextMagnitude ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 209 of file TGLPadPainter.cxx.

◆ GetTextSize()

Float_t TGLPadPainter::GetTextSize ( ) const
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 201 of file TGLPadPainter.cxx.

◆ InitPainter()

void TGLPadPainter::InitPainter ( )
overridevirtual

Init gl-pad painter:

  1. 2D painter does not use depth test, should not modify depth-buffer content (except initial cleanup).
  2. Disable cull face.
  3. Disable lighting.
  4. Set viewport (to the whole canvas area).
  5. Set camera.
  6. Unlock painter.

Reimplemented from TVirtualPadPainter.

Definition at line 446 of file TGLPadPainter.cxx.

◆ InvalidateCS()

void TGLPadPainter::InvalidateCS ( )
overridevirtual

When TPad::Range for gPad is called, projection must be changed in OpenGL.

Reimplemented from TVirtualPadPainter.

Definition at line 485 of file TGLPadPainter.cxx.

◆ IsA()

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

Reimplemented from TVirtualPadPainter.

Definition at line 176 of file TGLPadPainter.h.

◆ IsCocoa()

Bool_t TGLPadPainter::IsCocoa ( ) const
overridevirtual

Returns true when cocoa backend is used.

Reimplemented from TVirtualPadPainter.

Definition at line 348 of file TGLPadPainter.cxx.

◆ IsNative()

Bool_t TGLPadPainter::IsNative ( ) const
inlineoverridevirtual

Reimplemented from TVirtualPadPainter.

Definition at line 142 of file TGLPadPainter.h.

◆ IsSupportAlpha()

Bool_t TGLPadPainter::IsSupportAlpha ( ) const
inlineoverridevirtual

Reimplemented from TVirtualPadPainter.

Definition at line 146 of file TGLPadPainter.h.

◆ IsTransparent()

Bool_t TGLPadPainter::IsTransparent ( ) const
overridevirtual

Delegate to gVirtualX.

IsTransparent is implemented as inline function in TAttFill.

Implements TVirtualPadPainter.

Definition at line 137 of file TGLPadPainter.cxx.

◆ LockPainter()

void TGLPadPainter::LockPainter ( )
overridevirtual

Locked state of painter means, that GL context can be invalid, so no GL calls can be executed.

Reimplemented from TVirtualPadPainter.

Definition at line 502 of file TGLPadPainter.cxx.

◆ operator=()

TGLPadPainter & TGLPadPainter::operator= ( const TGLPadPainter & rhs)
private

◆ ResizeDrawable()

Int_t TGLPadPainter::ResizeDrawable ( Int_t device,
UInt_t w,
UInt_t h )
overridevirtual

Resize a gVirtualX Pixmap.

Reimplemented from TVirtualPadPainter.

Definition at line 332 of file TGLPadPainter.cxx.

◆ RestoreModelviewMatrix()

void TGLPadPainter::RestoreModelviewMatrix ( ) const
private

Restore the modelview matrix.

Attention! GL_MODELVIEW will become the current matrix after this call!

Definition at line 1075 of file TGLPadPainter.cxx.

◆ RestoreProjectionMatrix()

void TGLPadPainter::RestoreProjectionMatrix ( ) const
private

Restore the projection matrix.

Attention! GL_PROJECTION will become the current matrix after this call!

Definition at line 1053 of file TGLPadPainter.cxx.

◆ RestoreViewport()

void TGLPadPainter::RestoreViewport ( )
private

Restore the saved viewport.

Definition at line 1092 of file TGLPadPainter.cxx.

◆ SaveImage()

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

Using TImage save frame-buffer contents as a picture.

Implements TVirtualPadPainter.

Definition at line 1100 of file TGLPadPainter.cxx.

◆ SaveModelviewMatrix()

void TGLPadPainter::SaveModelviewMatrix ( ) const
private

Save the modelview matrix.

Attention! GL_MODELVIEW will become the current matrix after this call!

Definition at line 1064 of file TGLPadPainter.cxx.

◆ SaveProjectionMatrix()

void TGLPadPainter::SaveProjectionMatrix ( ) const
private

Save the projection matrix.

Attention! GL_PROJECTION will become the current matrix after this call!

Definition at line 1042 of file TGLPadPainter.cxx.

◆ SaveViewport()

void TGLPadPainter::SaveViewport ( )
private

Extract and save the current viewport.

Definition at line 1084 of file TGLPadPainter.cxx.

◆ SelectDrawable()

void TGLPadPainter::SelectDrawable ( Int_t device)
overridevirtual

For gVirtualX this means select pixmap (or window) and all subsequent drawings will go into this pixmap.

For OpenGL this means the change of coordinate system and viewport.

Implements TVirtualPadPainter.

Definition at line 377 of file TGLPadPainter.cxx.

◆ SetDrawMode()

void TGLPadPainter::SetDrawMode ( Int_t device,
Int_t mode )
overridevirtual

Set drawing mode for specified device.

Reimplemented from TVirtualPadPainter.

Definition at line 427 of file TGLPadPainter.cxx.

◆ SetFillColor()

void TGLPadPainter::SetFillColor ( Color_t fcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 145 of file TGLPadPainter.cxx.

◆ SetFillStyle()

void TGLPadPainter::SetFillStyle ( Style_t fstyle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 153 of file TGLPadPainter.cxx.

◆ SetLineColor()

void TGLPadPainter::SetLineColor ( Color_t lcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 96 of file TGLPadPainter.cxx.

◆ SetLineStyle()

void TGLPadPainter::SetLineStyle ( Style_t lstyle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 104 of file TGLPadPainter.cxx.

◆ SetLineWidth()

void TGLPadPainter::SetLineWidth ( Width_t lwidth)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 112 of file TGLPadPainter.cxx.

◆ SetMarkerColor()

void TGLPadPainter::SetMarkerColor ( Color_t mcolor)
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 293 of file TGLPadPainter.cxx.

◆ SetMarkerSize()

void TGLPadPainter::SetMarkerSize ( Size_t msize)
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 311 of file TGLPadPainter.cxx.

◆ SetMarkerStyle()

void TGLPadPainter::SetMarkerStyle ( Style_t mstyle)
overridevirtual

Delegate to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 302 of file TGLPadPainter.cxx.

◆ SetOpacity()

void TGLPadPainter::SetOpacity ( Int_t percent)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 161 of file TGLPadPainter.cxx.

◆ SetTextAlign()

void TGLPadPainter::SetTextAlign ( Short_t align)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 217 of file TGLPadPainter.cxx.

◆ SetTextAngle()

void TGLPadPainter::SetTextAngle ( Float_t tangle)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 225 of file TGLPadPainter.cxx.

◆ SetTextColor()

void TGLPadPainter::SetTextColor ( Color_t tcolor)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 233 of file TGLPadPainter.cxx.

◆ SetTextFont()

void TGLPadPainter::SetTextFont ( Font_t tfont)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 241 of file TGLPadPainter.cxx.

◆ SetTextSize()

void TGLPadPainter::SetTextSize ( Float_t tsize)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 249 of file TGLPadPainter.cxx.

◆ SetTextSizePixels()

void TGLPadPainter::SetTextSizePixels ( Int_t npixels)
overridevirtual

Delegate to gVirtualX.

Implements TVirtualPadPainter.

Definition at line 257 of file TGLPadPainter.cxx.

◆ Streamer()

void TGLPadPainter::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TVirtualPadPainter.

◆ StreamerNVirtual()

void TGLPadPainter::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 176 of file TGLPadPainter.h.

◆ UpdateDrawable()

void TGLPadPainter::UpdateDrawable ( Int_t mode)
overridevirtual

Call low-level update of selected drawable, redirect to gVirtualX.

Reimplemented from TVirtualPadPainter.

Definition at line 417 of file TGLPadPainter.cxx.

Member Data Documentation

◆ fF

TGLFont TGLPadPainter::fF
private

Definition at line 41 of file TGLPadPainter.h.

◆ fFM

TGLFontManager TGLPadPainter::fFM
private

Definition at line 40 of file TGLPadPainter.h.

◆ fIsHollowArea

Bool_t TGLPadPainter::fIsHollowArea
private

Definition at line 46 of file TGLPadPainter.h.

◆ fLimits

Rgl::Pad::GLLimits TGLPadPainter::fLimits
private

Definition at line 34 of file TGLPadPainter.h.

◆ fLocked

Bool_t TGLPadPainter::fLocked
private

Definition at line 48 of file TGLPadPainter.h.

◆ fMarker

Rgl::Pad::MarkerPainter TGLPadPainter::fMarker
private

Definition at line 33 of file TGLPadPainter.h.

◆ fPoly

std::vector<TPoint> TGLPadPainter::fPoly
private

Definition at line 45 of file TGLPadPainter.h.

◆ fSSet

Rgl::Pad::PolygonStippleSet TGLPadPainter::fSSet
private

Definition at line 31 of file TGLPadPainter.h.

◆ fTess

Rgl::Pad::Tesselator TGLPadPainter::fTess
private

Definition at line 32 of file TGLPadPainter.h.

◆ fVp

Int_t TGLPadPainter::fVp[4]
private

Definition at line 43 of file TGLPadPainter.h.

◆ fVs

std::vector<Double_t> TGLPadPainter::fVs
private

Definition at line 38 of file TGLPadPainter.h.

◆ fWinContext

WinContext_t TGLPadPainter::fWinContext
private

Definition at line 36 of file TGLPadPainter.h.

Libraries for TGLPadPainter:

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