00001 // $Id: TGo4PolyCondView.h 478 2009-10-29 12:26:09Z linev $ 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 TGO4POLYCONDVIEW_H 00015 #define TGO4POLYCONDVIEW_H 00016 00017 #include "TCutG.h" 00018 00019 class TGo4PolyCond; 00020 00021 class TGo4PolyCondView : public TCutG { 00022 00023 public: 00024 00025 TGo4PolyCondView(TCutG* source); 00026 TGo4PolyCondView(); 00027 virtual ~TGo4PolyCondView(); 00028 00029 virtual void Paint(Option_t* opt); 00030 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 00031 00033 Bool_t IsCutChanged(); 00035 virtual void UpdateCondition(); 00036 00037 00038 void SetCondition(TGo4PolyCond* condition) 00039 { 00040 fxPolyCondition=condition; 00041 } 00042 00043 TGo4PolyCond* GetCondition(){return fxPolyCondition;} 00044 00046 void SetCut(TCutG* source); 00047 00049 TCutG* CreateCut(); 00050 00051 virtual const char* GetName() const; 00052 void SetName(const char* nam); // *MENU* 00054 void DeleteRegion(); // *MENU* 00055 void SetLabelDraw(Bool_t on); // *MENU* 00056 void SetLimitsDraw(Bool_t on); // *MENU* 00057 void SetIntDraw(Bool_t on); // *MENU* 00058 void SetXMeanDraw(Bool_t on); // *MENU* 00059 void SetXRMSDraw(Bool_t on); // *MENU* 00060 void SetYMeanDraw(Bool_t on); // *MENU* 00061 void SetYRMSDraw(Bool_t on); // *MENU* 00062 void SetXMaxDraw(Bool_t on); // *MENU* 00063 void SetYMaxDraw(Bool_t on); // *MENU* 00064 void SetCMaxDraw(Bool_t on); // *MENU* 00066 void SaveLabelStyle();// *MENU* 00068 void ResetLabel();// *MENU* 00069 00070 virtual Int_t InsertPoint();// *MENU* 00071 virtual Int_t RemovePoint();// *MENU* 00072 00073 private: 00074 00076 TGo4PolyCond* fxPolyCondition; 00077 00078 ClassDef(TGo4PolyCondView,6) 00079 }; 00080 00081 #endif //TGO4POLYCONDVIEW_H