#ifndef VEGA_VManager #define VEGA_VManager //*-- Modified : v0.51 07/11/00 by D. Buskulic //*-- Modified : v0.47 18/04/00 by D. Buskulic //*-- Modified : v0.42 02/09/99 by D. Buskulic //*-- Author : Damir Buskulic 04/03/99 ////////////////////////////////////////////////////////////////////////// // // // VManager // // // // General frames manager class. // // // // This class is a base class for frames managers // // // // Each derived class uses a different I/O library (FrameLib or Fcl) // // Though the FrameLib related methods are there by default // // // ////////////////////////////////////////////////////////////////////////// #include "TObject.h" #include "TH1.h" #include "VSPlot.h" #include "VSPlot2.h" #include "FrameL.h" class TObject; // Friend class for the handling of Errors and Warnings class VSPlot; class VManager : public TObject { public : VManager(); ~VManager(); virtual void Draw(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void Draw(FrVect* vect, Option_t *option); virtual void Draw(FrameH* frame, Text_t* nameofvect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void Draw(FrameH* frame, Text_t* nameofvect, Option_t *option); // virtual void DrawSpectrum(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void DrawHist(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, const Text_t *hwork="", Option_t *option=""); virtual void DrawHist(FrVect* vect, const Text_t *hwork, Option_t *option=""); virtual void DrawHist(FrameH* frame, Text_t* nameofvect, Double_t offset=-1e20, Double_t dur=1e20, const Text_t *hwork="", Option_t *option=""); virtual void DrawHist(FrameH* frame, Text_t* nameofvect, const Text_t *hwork, Option_t *option=""); virtual TList* GetListOfPlots() {return 0;} virtual TList* GetListOfPlots2() {return 0;} virtual TList* GetListOfHistos() {return 0;} virtual VSPlot* GetPlot(const char* name) {return 0;} virtual VSPlot* GetPlot(VSPlot* plot) {return 0;} virtual VSPlot2* GetPlot2(const char* name) {return 0;} virtual VSPlot2* GetPlot2(VSPlot2* plot) {return 0;} virtual VSPlot* GetLastPlot() {return 0;} virtual VSPlot2* GetLastPlot2() {return 0;} virtual TH1F* GetHisto(Text_t* name) {return 0;} virtual TH1F* GetLastHisto(); virtual TAxis* GetXaxis(const char* name="") {return 0;} virtual TAxis* GetYaxis(const char* name="") {return 0;} virtual TAxis* GetZaxis(const char* name="") {return 0;} virtual void SetBarOffset(Float_t baroff = 0.5, const char* name="") {} virtual void SetBarWidth(Float_t barwidth = 0.5, const char* name="") {} virtual void SetFillColor(Color_t color = 1, const char* name="") {} virtual void SetFillStyle(Style_t styl = 0, const char* name="") {} virtual void SetLineColor(Color_t color = 1, const char* name="") {} virtual void SetLineStyle(Style_t styl = 0, const char* name="") {} virtual void SetLineWidth(Width_t width = 1, const char* name="") {} virtual void SetLabelColor(Color_t color = 1, Option_t* axis = "X", const char* name="") {} virtual void SetLabelFont(Style_t font = 62, Option_t* axis = "X", const char* name="") {} virtual void SetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X", const char* name="") {} virtual void SetLabelSize(Float_t size = 0.04, Option_t* axis = "X", const char* name="") {} virtual void SetMarkerColor(Color_t tcolor = 1, const char* name="") {} virtual void SetMarkerSize(Size_t msize = 1, const char* name="") {} virtual void SetMarkerStyle(Style_t mstyle = 1, const char* name="") {} virtual void SetNdivisions(Int_t n = 510, Option_t* axis = "X", const char* name="") {} virtual void SetTickLength(Float_t length = 0.03, Option_t* axis = "X", const char* name="") {} virtual void ShiftPlot(char* name, FrVect* vect) {} virtual void RemovePlot(const Text_t* name); virtual void RemovePlot2(const Text_t* name); ClassDef(VManager,0) // Frames Manager virtual base class }; R__EXTERN VManager* gVM; #endif