00001 // $Id: TGo4WinCondView.h 878 2012-08-22 15:36:25Z adamczew $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4WINCONDVIEW_H 00015 #define TGO4WINCONDVIEW_H 00016 00017 #include "TBox.h" 00018 00019 class TGo4WinCond; 00020 00021 class TGo4WinCondView : public TBox { 00022 00023 public: 00024 00025 TGo4WinCondView(Double_t x1,Double_t y1,Double_t x2,Double_t y2); 00026 TGo4WinCondView(); 00027 00028 virtual ~TGo4WinCondView(); 00029 00030 virtual void Paint(Option_t* opt=""); 00031 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 00032 00033 void SetCondition(TGo4WinCond* condition) { fxWinCondition=condition; } 00034 TGo4WinCond* GetCondition() { return fxWinCondition; } 00035 const char* GetName() const; 00036 void SetName(const char* nam); // *MENU* 00038 //void DeleteRegion(); // *MENU* 00039 void SetToLimits(Double_t x1, Double_t x2,Double_t y1=0, Double_t y2=0); // *MENU* 00040 void SetLabelDraw(Bool_t on); // *MENU* 00041 void SetLimitsDraw(Bool_t on); // *MENU* 00042 void SetIntDraw(Bool_t on); // *MENU* 00043 void SetXMeanDraw(Bool_t on); // *MENU* 00044 void SetXRMSDraw(Bool_t on); // *MENU* 00045 void SetYMeanDraw(Bool_t on); // *MENU* 00046 void SetYRMSDraw(Bool_t on); // *MENU* 00047 void SetXMaxDraw(Bool_t on); // *MENU* 00048 void SetYMaxDraw(Bool_t on); // *MENU* 00049 void SetCMaxDraw(Bool_t on); // *MENU* 00050 void SetNumFormat(const char* fmt="%.4E"); // *MENU* 00052 void SaveLabelStyle();// *MENU* 00054 void ResetLabel();// *MENU* 00055 00056 private: 00057 00059 TGo4WinCond* fxWinCondition; 00060 00061 ClassDef(TGo4WinCondView,6) 00062 }; 00063 #endif //TGO4WINCONDVIEW_H