Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
15 ClassImp(TVirtualPadPainter);
16 
17 /** \class TVirtualPadPainter
18 \ingroup Base
19 
20 To make it possible to use GL for 2D graphic in a TPad/TCanvas.
21 TVirtualPadPainter interface must be used instead of TVirtualX.
22 Internally, non-GL implementation _should_ delegate all calls
23 to gVirtualX, GL implementation will delegate part of calls
24 to gVirtualX, and has to implement some of the calls from the scratch.
25 */
26 
27 ////////////////////////////////////////////////////////////////////////////////
28 ///Virtual dtor.
29 
30 TVirtualPadPainter::~TVirtualPadPainter()
31 {
32 }
33 
34 ////////////////////////////////////////////////////////////////////////////////
35 ///Empty definition.
36 
37 void TVirtualPadPainter::InitPainter()
38 {
39 }
40 
41 ////////////////////////////////////////////////////////////////////////////////
42 ///Empty definition.
43 
44 void TVirtualPadPainter::InvalidateCS()
45 {
46 }
47 
48 ////////////////////////////////////////////////////////////////////////////////
49 ///Empty definition.
50 
51 void TVirtualPadPainter::LockPainter()
52 {
53 }
54 
55 ////////////////////////////////////////////////////////////////////////////////
56 /// Create a pad painter of specified type.
57 
58 TVirtualPadPainter *TVirtualPadPainter::PadPainter(Option_t *type)
59 {
60  TVirtualPadPainter *painter = 0;
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 }