Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TView.cxx
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 19/02/2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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 "TView.h"
13 #include "TROOT.h"
14 #include "TPluginManager.h"
15 
16 ClassImp(TView);
17 
18 /** \class TView
19 \ingroup gpad
20 
21 See TView3D.
22 */
23 
24 ////////////////////////////////////////////////////////////////////////////////
25 /// Create a concrete default 3-d view via the plug-in manager
26 
27 TView *TView::CreateView(Int_t system, const Double_t *rmin, const Double_t *rmax)
28 {
29  TView *view = 0;
30  TPluginHandler *h;
31  if ((h = gROOT->GetPluginManager()->FindHandler("TView"))) {
32  if (h->LoadPlugin() == -1)
33  return 0;
34  view = (TView*)h->ExecPlugin(3,system,rmin,rmax);
35  }
36  return view;
37 }