Diana Software
QGuiScatterPlot.hh
Go to the documentation of this file.
1 #ifndef _QGUISCATTERPLOT_HH_
2 #define _QGUISCATTERPLOT_HH_
3 
10 #include <vector>
11 #include "QGuiSessionItem.hh"
12 
14 {
15  public:
21  void SetXVariable(std::string x) {fXVariable = x;}
23  void SetYVariable(std::string y) {fYVariable = y;}
25  void SetCut(std::string cut) {fCuts.push_back(cut);}
26  private:
28  std::string Dump() const;
30  std::string fXVariable;
32  std::string fYVariable;
34  std::vector<std::string> fCuts;
35 
36  friend class QGuiSession;
37 };
38 
39 #endif
Scatter plot data for GUI session.
~QGuiScatterPlot()
Default destructor.
void SetCut(std::string cut)
Set cut.
QGuiScatterPlot()
Default constructor.
std::string Dump() const
Dump to string to write to session file.
std::vector< std::string > fCuts
Cuts.
void SetYVariable(std::string y)
Set y-variable.
void SetXVariable(std::string x)
Set x-variable.
std::string fYVariable
y-variable
std::string fXVariable
x-variable
Base class for GUI session objects like histograms and scatter plots.
Class to generate session files for the GUI from a Diana module.
Definition: QGuiSession.hh:69