00001 #ifndef _QG_GRAPHICAL_CUT_HH_ 00002 #define _QG_GRAPHICAL_CUT_HH_ 00003 00011 #include <list> 00012 #include "QGGraphicalCutBase.hh" 00013 #include "QGPlot.hh" 00014 00015 class QGGraphicalCut : public QGGraphicalCutBase, public QGPlot { 00016 public: 00018 QGGraphicalCut(); 00019 00021 QGGraphicalCut(const QGGraphicalCut&); 00022 00024 virtual ~QGGraphicalCut(); 00025 00027 void CopyNameToClipboard() const; // *MENU* 00028 00030 void Create(); 00031 00033 void Display(); 00034 00036 void Erase(); 00037 00039 const char *GetName() const; 00040 00042 void HandleCanvasEvent(Int_t event, Int_t px, Int_t py, TObject *selected); 00043 00045 void SetName(const char *name = 0); 00046 00048 void SetProperty(const std::string& key, const std::string& value); 00049 00051 void ViewPulses() const; // *MENU* 00052 00053 private: 00055 static std::list<QGGraphicalCut*> fGraphicalCuts; 00056 00058 Double_t fXLast; 00059 00061 Double_t fYLast; 00062 00063 ClassDef(QGGraphicalCut, 0) 00064 }; 00065 00066 #endif