QtCut.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _QtCut_H_
15 #define _QtCut_H_
16 
17 #include "QtDisplay.h"
18 
19 namespace boost {
20  namespace python {
21  namespace numeric {
22  class array;
23  }
24  }
25 }
26 
27 namespace hippodraw {
28 
29  class Cut1DPlotter;
30  class Cut2DPlotter;
31  class TupleCut;
32 
42 class QtCut : public QtDisplay
43 {
44 
45 public:
46 
48  QtCut( const DataSource & nt,
49  const std::vector < std::string > & binding );
50 
52  QtCut( const PyDataSource & nt,
53  const std::vector < std::string > & binding );
54 
59  QtCut ( const DataSource & source,
60  const std::vector < std::string > & binding,
61  QtDisplay * target, double low, double high );
62 
67  QtCut ( const PyDataSource & nt,
68  const std::vector < std::string > & binding,
69  QtDisplay * target, double low, double high );
70 
74  QtCut ( PyDataSource & source,
75  const std::string & label,
76  boost::python::numeric::array array,
77  QtDisplay * target );
78 
81  QtCut( PlotterBase * plotter );
82 
84  void addTarget ( QtDisplay * );
85 
88  void addTargets ( const std::vector < QtDisplay * > & targets );
89 
92  void setCutRange ( double low, double high,
93  const std::string & axis = "x" );
94 
98  std::vector<double> cutRange();
99 
104  void setEnabled ( bool yes );
105 
108  void toggleInverted ();
109 
110  static void
111  fillCutList ( std::vector < const TupleCut * > & tuple_cut_list,
112  const std::vector < QtCut * > & cut_list );
113 
118  static NTuple *
119  createNTuple ( const std::vector < std::string > & column_list,
120  const std::vector < QtCut * > & cut_list,
121  DataSource * ds );
122 
126  static void
127  createTnt ( const std::vector < std::string > & column_list,
128  const std::vector < QtCut * > & cut_list,
129  DataSource * ds,
130  const std::string & filename,
131  const std::string & dsname );
132 
136  static void
137  createFits ( const std::vector < std::string > & column_list,
138  const std::vector < QtCut * > & cut_list,
139  DataSource * ds,
140  const std::string & filename,
141  const std::string & dsname );
142 
143 private:
144 
147  void createCut ( const DataSource & ds,
148  const std::vector < std::string > & binding );
149 
150 };
151 
152 } // namespace hippodraw
153 
154 #endif // _QtCut_H_

Generated for HippoDraw Class Library by doxygen