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

/Go4GUI/TGo4PadOptions.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 #ifndef TGO4PADDRAWOPTIONS_H
00017 #define TGO4PADDRAWOPTIONS_H
00018 
00019 #include "TObject.h"
00020 #include "TString.h"
00021 
00022 class TLegend;
00023 class TPad;
00024 class TObjArray;
00025 class TGo4FitGUIOptions;
00026 class TGo4Condition;
00027 
00032 class TGo4PadOptions : public TObject {
00033    friend class TGo4PreviewPanelStatus;
00034 public:
00035 
00036     TGo4PadOptions(TPad * Pad, const char * DrawOption, Bool_t DragAddOption=false);
00037     void GetHistogramFullRange(Int_t &Xmin, Int_t &Xmax, Int_t &Ymin, Int_t &Ymax);
00038    void SetHistogramFullRange(Int_t Xmin, Int_t Xmax, Int_t Ymin, Int_t Ymax);
00039 
00040    TString *GetStringDrawOption();
00041    bool DragAddOption(){return fxDragAddOption;}
00042 
00043    void setHisDrawStyle(const char *DrawString);
00044    void SetHisDrawStyle(int t){HisDrawStyle=t;}
00045    int GetHisDrawStyle(){return HisDrawStyle;}
00046 
00047    void SetHisErrorStyle(int t){HisErrorStyle=t;}
00048    int GetHisErrorStyle(){return HisErrorStyle;}
00049 
00050    void SetHisCoordStyle(int t){HisCoordStyle=t;}
00051    int GetHisCoordStyle(){return HisCoordStyle;}
00052 
00053    void SetHisXStyle(int t){HisXStyle=t;}
00054    int GetHisXStyle(){return HisXStyle;}
00055 
00056    void SetHisYStyle(int t){HisYStyle=t;}
00057    int GetHisYStyle(){return HisYStyle;}
00058 
00059    void SetHisZStyle(int t){HisZStyle=t;}
00060    int GetHisZStyle(){return HisZStyle;}
00061 
00062     void SetHisStats(bool on){fbHisStats=on;}
00063    bool IsHisStats(){return fbHisStats;}
00064 
00065     void SetHisTitle(bool on){fbHisTitle=on;}
00066    bool IsHisTitle(){return fbHisTitle;}
00067 
00068    void SetLegendDraw(bool on){fbDrawLegend=on;}
00069    bool IsLegendDraw(){return fbDrawLegend;}
00070 
00071    /* note: condition is just put here as reference, ownership
00072    * is in preview panel cleanup list!"*/ 
00073    void SetLegend(TLegend* leg){fxLegend=leg;}
00074 
00075    TLegend* GetLegend(){return fxLegend;}
00076 
00077     void SetCrosshair(bool on){fbCrosshair=on;}
00078    bool IsCrosshair(){return fbCrosshair;}
00079 
00080    void SetPadFitOptions(TGo4FitGUIOptions *FitOptions){fxFitOptions = FitOptions;}
00081    TGo4FitGUIOptions *GetPadFitOptions(){return fxFitOptions;}
00082 
00083    void SetCondition(TGo4Condition* con);
00084 
00085    TGo4Condition* GetCondition(){return fxCondition;}
00086 
00087    void SetAutoScale(bool AutoScale){fxAutoScale=AutoScale;}
00088    bool GetAutoScale(){return fxAutoScale;}
00089 
00090     void GetUxRange( double &xmin, double &xmax)
00091                 {xmin=fxUxmin; xmax=fxUxmax;}
00092 
00093    void SetUxRange (double xmin, double xmax)
00094                {fxUxmin=xmin; fxUxmax=xmax;}
00095 
00096 
00097     void GetUyRange( double &ymin, double &ymax)
00098                 {ymin=fxUymin; ymax=fxUymax;}
00099 
00100    void SetUyRange (double ymin, double ymax)
00101                {fxUymin=ymin; fxUymax=ymax;}
00102 
00103     void GetUzRange( double &zmin, double &zmax)
00104                 {zmin=fxUzmin; zmax=fxUzmax;}
00105 
00106    void SetUzRange (double zmin, double zmax)
00107                {fxUzmin=zmin; fxUzmax=zmax;}
00108 
00109 
00110     virtual ~TGo4PadOptions();
00111 
00112   private:
00113     Int_t fYLastBin;
00114     TString  fOption;
00115     TPad * fxPad;   
00116     Int_t fYFirstBin;
00117     Int_t fXLastBin;
00118     Int_t fXFirstBin;
00119     bool fxDragAddOption;
00120     bool fxAutoScale;
00121     TGo4FitGUIOptions *fxFitOptions; 
00122     TGo4Condition* fxCondition; 
00123     TLegend* fxLegend; 
00124     int HisDrawStyle;
00125     int HisCoordStyle;
00126     int HisXStyle;
00127     int HisYStyle;
00128     int HisZStyle;
00129     int HisErrorStyle;
00130     bool fbHisStats;
00131     bool fbHisTitle;
00132     bool fbCrosshair;
00133     bool fbDrawLegend;
00134     double fxUxmin;
00135     double fxUxmax;
00136     double fxUymin;
00137     double fxUymax;
00138     double fxUzmin;
00139     double fxUzmax;
00140     
00141    ClassDef(TGo4PadOptions, 1)
00142 };
00143 
00144 #endif //TGO4PADDRAWOPTIONS_H
00145 
00146 
00147 
00148 //----------------------------END OF GO4 SOURCE FILE ---------------------

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