Parent Directory
|
Revision Log
Revision 754 -
(view)
(download)
(as text)
Original Path: trunk/graf/inc/TMultiGraph.h
| 1 : | brun | 754 | // @(#)root/graf:$Name: $:$Id: TMultiGraph.h,v 1.4 2000/10/12 10:00:59 brun Exp $ |
| 2 : | // 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 : | virtual void Add(TGraph *graph); | ||
| 48 : | virtual void Browse(TBrowser *b); | ||
| 49 : | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | ||
| 50 : | virtual void Draw(Option_t *chopt=""); | ||
| 51 : | TH1F *GetHistogram(); | ||
| 52 : | TList *GetListOfGraphs() { return fGraphs; } | ||
| 53 : | TAxis *GetXaxis(); | ||
| 54 : | TAxis *GetYaxis(); | ||
| 55 : | virtual void Paint(Option_t *chopt=""); | ||
| 56 : | virtual void Print(Option_t *chopt=""); | ||
| 57 : | virtual void SavePrimitive(ofstream &out, Option_t *option); | ||
| 58 : | virtual void SetMaximum(Double_t maximum=-1111); | ||
| 59 : | virtual void SetMinimum(Double_t minimum=-1111); | ||
| 60 : | |||
| 61 : | ClassDef(TMultiGraph,1) //A collection of TGraph objects | ||
| 62 : | }; | ||
| 63 : | |||
| 64 : | #endif | ||
| 65 : | |||
| 66 : |
| Subversion Admin | ViewVC Help |
| Powered by ViewVC 1.0.9 |