//*-- Author : Damir Buskulic 22/04/03//////////////////////////////////////////////////////////////////////////// //// VVirtualFrameChannelViewer //// //// ////////////////////////////////////////////////////////////////////////////
#include "TROOT.h"
#include "TPluginManager.h"
#include "VVirtualFrameChannelViewer.h"
TClass *VVirtualFrameChannelViewer::mgViewer = 0;
VVirtualFrameChannelViewer* gDataViewer;
ClassImp(VVirtualFrameChannelViewer)
//______________________________________________________________________________VVirtualFrameChannelViewer::VVirtualFrameChannelViewer() : TObject()
{
//// Frame channel viewer constructor//gDataViewer = this;
}
//______________________________________________________________________________VVirtualFrameChannelViewer *VVirtualFrameChannelViewer::FrameChannelViewer(VVirtualFrameChannel *obj)
{
// Static function returning a pointer to a frame channel viewer. // The viewer will process the specified obj. If the frame channel viewer // does not exist a default viewer is created. // if no viewer set yet, create a default viewer via the PluginManager
if (!mgViewer) {
TPluginHandler *h;
//if ((h = GetPluginManager()->FindHandler("TVirtualProof"))) // h->LoadPlugin();
if ((h = gROOT->GetPluginManager()->FindHandler("VVirtualFrameChannelViewer"))) {
if (h->LoadPlugin() == -1) {
return 0;}
VVirtualFrameChannelViewer::SetViewer(h->GetClass());
if (!mgViewer) return 0;
} else return 0;
}
//create an instance of the Tree viewerVVirtualFrameChannelViewer *p = (VVirtualFrameChannelViewer*)mgViewer->New();
if (p) {
p->SetFrameChannel(obj);
gDataViewer = p;
}
return p;
}
//______________________________________________________________________________voidVVirtualFrameChannelViewer::SetViewer(const char *viewer)
{
// Static function to set an alternative frame channel viewer.mgViewer = gROOT->GetClass(viewer);
}
- ROOT page - VEGA page - Class index - Top of the page This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
, or
contact
with any questions or problems regarding ROOT or VEGA.