#include "TROOT.h"
#include "TVirtualHistPainter.h"
#include "TPluginManager.h"
#include "TClass.h"
TClass *TVirtualHistPainter::fgPainter = 0;
ClassImp(TVirtualHistPainter)
TVirtualHistPainter *TVirtualHistPainter::HistPainter(TH1 *obj)
{
if (!fgPainter) {
TPluginHandler *h;
if ((h = gROOT->GetPluginManager()->FindHandler("TVirtualHistPainter"))) {
if (h->LoadPlugin() == -1)
return 0;
TVirtualHistPainter::SetPainter(h->GetClass());
if (!fgPainter) return 0;
}
}
TVirtualHistPainter *p = (TVirtualHistPainter*)fgPainter->New();
if (p) p->SetHistogram(obj);
return p;
}
void TVirtualHistPainter::SetPainter(const char *painter)
{
fgPainter = TClass::GetClass(painter);
}
Last change: Wed Jun 25 08:54:48 2008
Last generated: 2008-06-25 08:54
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.