ROOT
Version master
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
v6.04
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
▼
hist
doc
►
hbook
▼
hist
doc
►
inc
▼
src
►
AnalyticalIntegrals.cxx
►
AnalyticalIntegrals.h
Haxis.cxx
►
HFitImpl.cxx
►
HFitInterface.cxx
TAxis.cxx
TAxisModLab.cxx
TBackCompFitter.cxx
►
TBinomialEfficiencyFitter.cxx
TConfidenceLevel.cxx
►
TEfficiency.cxx
►
TEfficiencyHelper.h
►
TF1.cxx
TF12.cxx
►
TF1Convolution.cxx
TF1Data_v5.cxx
►
TF1Helper.cxx
►
TF1Helper.h
►
TF1NormSum.cxx
TF2.cxx
TF3.cxx
TFitResult.cxx
TFitResultPtr.cxx
►
TFormula.cxx
►
TFormula_v5.cxx
►
TFormulaMathInterface.cxx
►
TFormulaPrimitive_v5.cxx
TFractionFitter.cxx
►
TGraph.cxx
TGraph2D.cxx
TGraph2DAsymmErrors.cxx
TGraph2DErrors.cxx
TGraphAsymmErrors.cxx
TGraphBentErrors.cxx
TGraphDelaunay.cxx
TGraphDelaunay2D.cxx
TGraphErrors.cxx
TGraphMultiErrors.cxx
TGraphSmooth.cxx
TGraphTime.cxx
►
TH1.cxx
►
TH1K.cxx
►
TH1Merger.cxx
►
TH1Merger.h
►
TH2.cxx
TH2Poly.cxx
►
TH3.cxx
THistRange.cxx
THLimitsFinder.cxx
THn.cxx
►
THnBase.cxx
THnChain.cxx
►
THnSparse.cxx
THStack.cxx
►
TKDE.cxx
TLimit.cxx
TLimitDataSource.cxx
►
TMultiDimFit.cxx
►
TMultiGraph.cxx
TPolyMarker.cxx
TPrincipal.cxx
TProfile.cxx
TProfile2D.cxx
TProfile2Poly.cxx
TProfile3D.cxx
►
TProfileHelper.h
TScatter.cxx
TSpline.cxx
TSVDUnfold.cxx
TVirtualFitter.cxx
TVirtualGraphPainter.cxx
TVirtualHistPainter.cxx
►
WrappedTF1.cxx
►
histdrawv7
►
histpainter
►
histv7
►
spectrum
►
spectrumpainter
►
unfold
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TVirtualGraphPainter.cxx
Go to the documentation of this file.
1
// @(#)root/hist:$Id$
2
// Author: Olivier Couet 20/05/08
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, 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 "
TROOT.h
"
13
#include "
TVirtualGraphPainter.h
"
14
#include "
TPluginManager.h
"
15
16
TVirtualGraphPainter
*
TVirtualGraphPainter::fgPainter
=
nullptr
;
17
18
ClassImp
(
TVirtualGraphPainter
);
19
20
/** \class TVirtualGraphPainter
21
\ingroup Histpainter
22
Abstract interface to a histogram painter
23
*/
24
25
////////////////////////////////////////////////////////////////////////////////
26
/// Static function returning a pointer to the current graph painter.
27
/// If the graph painter does not exist a default painter (singleton) is created.
28
29
TVirtualGraphPainter
*
TVirtualGraphPainter::GetPainter
()
30
{
31
// if no painter set yet, create a default painter via the PluginManager
32
if
(!
fgPainter
) {
33
TPluginHandler
*
h
;
34
if
((
h
=
gROOT
->GetPluginManager()->FindHandler(
"TVirtualGraphPainter"
))) {
35
if
(
h
->LoadPlugin() == -1)
return
nullptr
;
36
fgPainter
= (
TVirtualGraphPainter
*)
gROOT
->GetClass(
"TGraphPainter"
)->New();
37
}
38
}
39
40
// Create an instance of the graph painter
41
return
fgPainter
;
42
}
43
44
////////////////////////////////////////////////////////////////////////////////
45
/// Static function to set an alternative histogram painter.
46
47
void
TVirtualGraphPainter::SetPainter
(
TVirtualGraphPainter
*
painter
)
48
{
49
fgPainter
=
painter
;
50
}
h
#define h(i)
Definition
RSha256.hxx:106
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:374
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TPluginManager.h
TROOT.h
gROOT
#define gROOT
Definition
TROOT.h:406
TVirtualGraphPainter.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TPluginHandler
Definition
TPluginManager.h:103
TVirtualGraphPainter
Abstract interface to a histogram painter.
Definition
TVirtualGraphPainter.h:28
TVirtualGraphPainter::fgPainter
static TVirtualGraphPainter * fgPainter
Definition
TVirtualGraphPainter.h:31
TVirtualGraphPainter::SetPainter
static void SetPainter(TVirtualGraphPainter *painter)
Static function to set an alternative histogram painter.
Definition
TVirtualGraphPainter.cxx:47
TVirtualGraphPainter::GetPainter
static TVirtualGraphPainter * GetPainter()
Static function returning a pointer to the current graph painter.
Definition
TVirtualGraphPainter.cxx:29
hist
hist
src
TVirtualGraphPainter.cxx
ROOT master - Reference Guide Generated on Mon Mar 10 2025 15:21:15 (GVA Time) using Doxygen 1.10.0