00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 TGO4POLYCONDVIEW_H 00017 #define TGO4POLYCONDVIEW_H 00018 00019 #include "TCutG.h" 00020 00021 class TGo4PolyCond; 00022 00023 class TGo4PolyCondView : public TCutG { 00024 00025 public: 00026 00027 TGo4PolyCondView(TCutG* source); 00028 TGo4PolyCondView(); 00029 virtual ~TGo4PolyCondView(); 00030 00031 virtual void Paint(Option_t* opt); 00032 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 00033 00035 Bool_t IsCutChanged(); 00037 virtual void UpdateCondition(); 00038 00039 00040 void SetCondition(TGo4PolyCond* condition) 00041 { 00042 fxPolyCondition=condition; 00043 } 00044 00045 TGo4PolyCond* GetCondition(){return fxPolyCondition;} 00046 00048 void SetCut(TCutG* source); 00049 00051 TCutG* CreateCut(); 00052 00053 virtual const char* GetName() const; 00054 void SetName(const Text_t* nam); // *MENU* 00056 void DeleteRegion(); // *MENU* 00057 void SetLabelDraw(Bool_t on); // *MENU* 00058 void SetLimitsDraw(Bool_t on); // *MENU* 00059 void SetIntDraw(Bool_t on); // *MENU* 00060 void SetXMeanDraw(Bool_t on); // *MENU* 00061 void SetXRMSDraw(Bool_t on); // *MENU* 00062 void SetYMeanDraw(Bool_t on); // *MENU* 00063 void SetYRMSDraw(Bool_t on); // *MENU* 00064 void SetXMaxDraw(Bool_t on); // *MENU* 00065 void SetYMaxDraw(Bool_t on); // *MENU* 00066 void SetCMaxDraw(Bool_t on); // *MENU* 00068 void SaveLabelStyle();// *MENU* 00070 void ResetLabel();// *MENU* 00071 00072 virtual Int_t InsertPoint();// *MENU* 00073 virtual Int_t RemovePoint();// *MENU* 00074 00075 private: 00076 00078 TGo4PolyCond* fxPolyCondition; 00079 00080 ClassDef(TGo4PolyCondView,6) 00081 }; 00082 00083 #endif //TGO4POLYCONDVIEW_H 00084 00085 //----------------------------END OF GO4 SOURCE FILE ---------------------