[root] / trunk / hist / hist / inc / TMultiGraph.h Repository:
ViewVC logotype

Annotation of /trunk/hist/hist/inc/TMultiGraph.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5552 - (view) (download) (as text)
Original Path: trunk/graf/inc/TMultiGraph.h

1 : brun 5552 // @(#)root/graf:$Name: $:$Id: TMultiGraph.h,v 1.3 2002/02/19 17:43:41 brun Exp $
2 : brun 754 // Author: Rene Brun 12/10/2000
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 :     #ifndef ROOT_TMultiGraph
13 :     #define ROOT_TMultiGraph
14 :    
15 :    
16 :     //////////////////////////////////////////////////////////////////////////
17 :     // //
18 :     // TMultiGraph //
19 :     // //
20 :     // A collection of TGraph objects //
21 :     // //
22 :     //////////////////////////////////////////////////////////////////////////
23 :    
24 :     #ifndef ROOT_TNamed
25 :     #include "TNamed.h"
26 :     #endif
27 :    
28 :    
29 :     class TH1F;
30 :     class TAxis;
31 :     class TBrowser;
32 :     class TGraph;
33 :    
34 :     class TMultiGraph : public TNamed {
35 :    
36 :     protected:
37 :     TList *fGraphs; //Pointer to list of TGraphs
38 :     TH1F *fHistogram; //Pointer to histogram used for drawing axis
39 :     Double_t fMaximum; //Maximum value for plotting along y
40 :     Double_t fMinimum; //Minimum value for plotting along y
41 :    
42 :     public:
43 :    
44 :     TMultiGraph();
45 :     TMultiGraph(const char *name, const char *title);
46 :     virtual ~TMultiGraph();
47 : brun 4037 virtual void Add(TGraph *graph, Option_t *chopt="");
48 : brun 754 virtual void Browse(TBrowser *b);
49 :     virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
50 :     virtual void Draw(Option_t *chopt="");
51 : brun 1205 TH1F *GetHistogram() const;
52 :     TList *GetListOfGraphs() const { return fGraphs; }
53 :     TAxis *GetXaxis() const;
54 :     TAxis *GetYaxis() const;
55 : brun 754 virtual void Paint(Option_t *chopt="");
56 : brun 1205 virtual void Print(Option_t *chopt="") const;
57 : brun 5552 virtual void RecursiveRemove(TObject *obj);
58 : brun 754 virtual void SavePrimitive(ofstream &out, Option_t *option);
59 :     virtual void SetMaximum(Double_t maximum=-1111);
60 :     virtual void SetMinimum(Double_t minimum=-1111);
61 :    
62 :     ClassDef(TMultiGraph,1) //A collection of TGraph objects
63 :     };
64 :    
65 :     #endif
66 :    
67 :    

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9