Logo ROOT   6.14/05
Reference Guide
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 
17 
18 /** \class TView
19 \ingroup gpad
20 
21 See TView3D.
22 */
23 
24 // pin the vtable here.
26 
27 ////////////////////////////////////////////////////////////////////////////////
28 /// Copy constructor.
29 
30 TView::TView(const TView& tv) :
31  TObject(tv),
32  TAttLine(tv)
33 {
34 }
35 
36 ////////////////////////////////////////////////////////////////////////////////
37 /// Create a concrete default 3-d view via the plug-in manager
38 
39 TView *TView::CreateView(Int_t system, const Double_t *rmin, const Double_t *rmax)
40 {
41  TView *view = 0;
43  if ((h = gROOT->GetPluginManager()->FindHandler("TView"))) {
44  if (h->LoadPlugin() == -1)
45  return 0;
46  view = (TView*)h->ExecPlugin(3,system,rmin,rmax);
47  }
48  return view;
49 }
See TView3D.
Definition: TView.h:25
#define gROOT
Definition: TROOT.h:410
Int_t LoadPlugin()
Load the plugin library for this handler.
int Int_t
Definition: RtypesCore.h:41
TView()
Definition: TView.h:29
Long_t ExecPlugin(int nargs, const T &... params)
#define h(i)
Definition: RSha256.hxx:106
#define ClassImp(name)
Definition: Rtypes.h:359
double Double_t
Definition: RtypesCore.h:55
static TView * CreateView(Int_t system=1, const Double_t *rmin=0, const Double_t *rmax=0)
Create a concrete default 3-d view via the plug-in manager.
Definition: TView.cxx:39
Mother of all ROOT objects.
Definition: TObject.h:37
virtual ~TView()
Definition: TView.cxx:25
Line Attributes class.
Definition: TAttLine.h:18