ROOT  6.06/09
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 To make it possible to use GL for 2D graphic in a TPad/TCanvas.
19 TVirtualPadPainter interface must be used instead of TVirtualX.
20 Internally, non-GL implementation _should_ delegate all calls
21 to gVirtualX, GL implementation will delegate part of calls
22 to gVirtualX, and has to implement some of the calls from the scratch.
23 */
24 
25 ////////////////////////////////////////////////////////////////////////////////
26 ///Virtual dtor.
27 
29 {
30 }
31 
32 ////////////////////////////////////////////////////////////////////////////////
33 ///Empty definition.
34 
36 {
37 }
38 
39 ////////////////////////////////////////////////////////////////////////////////
40 ///Empty definition.
41 
43 {
44 }
45 
46 ////////////////////////////////////////////////////////////////////////////////
47 ///Empty definition.
48 
50 {
51 }
52 
53 ////////////////////////////////////////////////////////////////////////////////
54 /// Create a pad painter of specified type.
55 
57 {
58  TVirtualPadPainter *painter = 0;
59  TPluginHandler *h = gPluginMgr->FindHandler("TVirtualPadPainter", type);
60 
61  if (h && h->LoadPlugin() != -1)
62  painter = (TVirtualPadPainter *) h->ExecPlugin(0);
63 
64  return painter;
65 }
const char Option_t
Definition: RtypesCore.h:62
TH1 * h
Definition: legend2.C:5
static TVirtualPadPainter * PadPainter(Option_t *opt="")
Create a pad painter of specified type.
TPluginHandler * FindHandler(const char *base, const char *uri=0)
Returns the handler if there exists a handler for the specified URI.
Int_t LoadPlugin()
Load the plugin library for this handler.
virtual void InitPainter()
Empty definition.
Long_t ExecPlugin(int nargs, const T &...params)
R__EXTERN TPluginManager * gPluginMgr
#define ClassImp(name)
Definition: Rtypes.h:279
int type
Definition: TGX11.cxx:120
virtual void LockPainter()
Empty definition.
virtual void InvalidateCS()
Empty definition.
To make it possible to use GL for 2D graphic in a TPad/TCanvas.