Diana Software
QGGraphicalCut.hh
Go to the documentation of this file.
1 #ifndef _QG_GRAPHICAL_CUT_HH_
2 #define _QG_GRAPHICAL_CUT_HH_
3 
11 #include <list>
12 #include "QGGraphicalCutBase.hh"
13 #include "QGPlot.hh"
14 
15 class QGGraphicalCut : public QGGraphicalCutBase, public QGPlot {
16 public:
19 
22 
24  virtual ~QGGraphicalCut();
25 
27  void CopyNameToClipboard() const; // *MENU*
28 
30  void Create();
31 
33  void Display();
34 
36  void Erase();
37 
39  const char *GetName() const;
40 
42  void HandleCanvasEvent(Int_t event, Int_t px, Int_t py, TObject *selected);
43 
45  void SetName(const char *name = 0);
46 
48  void SetProperty(const std::string& key, const std::string& value);
49 
51  void ViewPulses() const; // *MENU*
52 
53 private:
55  static std::list<QGGraphicalCut*> fGraphicalCuts;
56 
58  Double_t fXLast;
59 
61  Double_t fYLast;
62 
63  ClassDef(QGGraphicalCut, 0)
64 };
65 
66 #endif
Base class for GUI graphical cuts. This class has minimal dependencies on other GUI classes so it is ...
Class for graphical cuts.
static std::list< QGGraphicalCut * > fGraphicalCuts
Static list of existing graphical cuts.
void HandleCanvasEvent(Int_t event, Int_t px, Int_t py, TObject *selected)
Handle mouse events in the canvas.
void Erase()
Erase the graphical cut.
Double_t fXLast
X-coordinate of last selected point.
virtual ~QGGraphicalCut()
Destructor.
void Create()
Create the graphical cut with the mouse.
void CopyNameToClipboard() const
Copy name to clipboard.
void Display()
Display the graphical cut.
Double_t fYLast
Y-coordinate of last selected point.
const char * GetName() const
Get graphical cut name.
void SetName(const char *name=0)
Set graphical cut name.
void SetProperty(const std::string &key, const std::string &value)
Set property (used for opening a session)
QGGraphicalCut()
Default constructor.
void ViewPulses() const
View pulses.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
Definition: QGPlot.hh:21