Logo ROOT  
Reference Guide
TVirtualPadPainter.cxx
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Timur Pocheptsov 6/5/2009
3
4/*************************************************************************
5 * Copyright (C) 1995-2012, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include "TVirtualPadPainter.h"
13#include "TPluginManager.h"
14
16
17/** \class TVirtualPadPainter
18\ingroup Base
19
20To make it possible to use GL for 2D graphic in a TPad/TCanvas.
21TVirtualPadPainter interface must be used instead of TVirtualX.
22Internally, non-GL implementation _should_ delegate all calls
23to gVirtualX, GL implementation will delegate part of calls
24to gVirtualX, and has to implement some of the calls from the scratch.
25*/
26
27////////////////////////////////////////////////////////////////////////////////
28///Virtual dtor.
29
31{
32}
33
34////////////////////////////////////////////////////////////////////////////////
35///Empty definition.
36
38{
39}
40
41////////////////////////////////////////////////////////////////////////////////
42///Empty definition.
43
45{
46}
47
48////////////////////////////////////////////////////////////////////////////////
49///Empty definition.
50
52{
53}
54
55////////////////////////////////////////////////////////////////////////////////
56/// Create a pad painter of specified type.
57
59{
60 TVirtualPadPainter *painter = nullptr;
61 TPluginHandler *h = gPluginMgr->FindHandler("TVirtualPadPainter", type);
62
63 if (h && h->LoadPlugin() != -1)
64 painter = (TVirtualPadPainter *) h->ExecPlugin(0);
65
66 return painter;
67}
#define h(i)
Definition: RSha256.hxx:106
const char Option_t
Definition: RtypesCore.h:66
#define ClassImp(name)
Definition: Rtypes.h:375
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TPluginManager * gPluginMgr
TPluginHandler * FindHandler(const char *base, const char *uri=0)
Returns the handler if there exists a handler for the specified URI.
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
virtual ~TVirtualPadPainter()
Virtual dtor.
virtual void LockPainter()
Empty definition.
static TVirtualPadPainter * PadPainter(Option_t *opt="")
Create a pad painter of specified type.
virtual void InitPainter()
Empty definition.
virtual void InvalidateCS()
Empty definition.