Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4ConditionsBase/TGo4Marker.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 /* Generated by Together xxx */
00017 
00018 #ifndef TGO4MARKER_H
00019 #define TGO4MARKER_H
00020 
00021 #include "TMarker.h"
00022 #include "TH1.h"
00023 
00024 class TGo4MarkerPainter;
00025 
00034 class TGo4Marker : public TMarker {
00035 
00036 public:
00037    TGo4Marker();
00038    TGo4Marker(Double_t x, Double_t y, Int_t style);
00039   virtual ~TGo4Marker();
00040 
00043   virtual void Print(Option_t* opt="") const;
00045   void PrintMarker(Option_t* opt="");
00046 
00048   virtual void Paint(Option_t* opt="");
00049 
00051   virtual void Draw(Option_t* opt="");
00052 
00054   virtual void UnDraw(Option_t* opt="");
00055 
00057   virtual TGo4MarkerPainter* CreatePainter();
00058 
00059     void SetVisible(Bool_t on){fbVisible=on;}
00060     Bool_t IsVisible(){return fbVisible;}
00061     virtual void SetName(const char* name){fxName=name;} // *MENU*
00062     void DeleteMarker(); // *MENU*
00063 
00065     void SetToBin(Int_t xbin, Int_t ybin=0); // *MENU*
00066     void SetLabelDraw(Bool_t on){fbHasLabel=on;} // *MENU*
00067     Bool_t HasLabel(){return fbHasLabel;}
00068     void SetLineDraw(Bool_t on){fbHasConnector=on;} // *MENU*
00069     Bool_t HasConnector(){return fbHasConnector;}
00070     void SetXDraw(Bool_t on){fbXDraw=on;}// *MENU*
00071     Bool_t IsXDraw(){return fbXDraw;}
00072     void SetYDraw(Bool_t on){fbYDraw=on;}// *MENU*
00073     Bool_t IsYDraw(){return fbYDraw;}
00074     void SetXbinDraw(Bool_t on){fbXbinDraw=on;}// *MENU*
00075     Bool_t IsXbinDraw(){return fbXbinDraw;}
00076     void SetYbinDraw(Bool_t on){fbYbinDraw=on;}// *MENU*
00077     Bool_t IsYbinDraw(){return fbYbinDraw;}
00078     void SetContDraw(Bool_t on){fbContDraw=on;}// *MENU*
00079     Bool_t IsContDraw(){return fbContDraw;}
00080 
00082     void SaveLabelStyle();// *MENU*
00083 
00085     void ResetLabel();// *MENU*
00086 
00088     void InitLabelStyle();
00089 
00090     void SetHistogram(TH1* histo);
00091     TH1* GetHistogram(){return fxHisto;}
00092 
00095     void SetPadHistogram(TVirtualPad* pad);
00096 
00098     virtual const char* GetName() const {return fxName.Data();}
00099 
00101     Int_t GetXbin();
00103     Int_t GetYbin();
00105     Int_t GetCont();
00107     Double_t GetLabelX();
00109     Double_t GetLabelY();
00110 
00111 
00112     static Int_t GetInstances(){return fguInstanceCounter;}
00113 
00114     TVirtualPad* GetDrawPad(){return fxDrawPad;}
00115 
00117     Bool_t CheckDrawPad();
00119     Bool_t CheckHistogram();
00120 
00122     static Bool_t fgbHASLABEL;
00123 
00125     static Bool_t fgbHASCONNECTOR;
00126 
00128     static Bool_t fgbXDRAW;
00129 
00131     static Bool_t fgbYDRAW;
00132 
00134     static Bool_t fgbXBINDRAW;
00135 
00137     static Bool_t fgbYBINDRAW;
00138 
00140     static Bool_t fgbCONTDRAW;
00141 
00142 
00143 protected:
00144 
00148    TGo4MarkerPainter* fxPainter;
00149 
00150     void SetPainted(Bool_t on){fbIsPainted=on;}
00151     Bool_t IsPainted(){return fbIsPainted;}
00152 
00153     void SetDrawPad(TVirtualPad* pad);
00154 
00155 
00156 private:
00157 
00159     TString fxName;
00160 
00163     Bool_t fbIsPainted; 
00164 
00166    Bool_t fbVisible;
00167 
00169    Bool_t fbHasLabel;
00170 
00172    Bool_t fbHasConnector;
00173 
00175     Bool_t fbXDraw;
00176 
00178     Bool_t fbYDraw;
00179 
00181     Bool_t fbXbinDraw;
00182 
00184     Bool_t fbYbinDraw;
00185 
00187     Bool_t fbContDraw;
00188 
00190     TH1* fxHisto; 
00191 
00194     TVirtualPad* fxDrawPad;
00195 
00197     static UInt_t fguInstanceCounter;
00198 
00199 ClassDef(TGo4Marker,1)
00200 };
00201 #endif //TGO4MARKER_H
00202 
00203 
00204 
00205 
00206 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:52 2005 for Go4-v2.10-5 by doxygen1.2.15