CutPlotter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _CutPlotter_H_
15 #define _CutPlotter_H_
16 
17 #include "XyPlotter.h"
18 
19 namespace hippodraw {
20 
21 class Color;
22 class DataSource;
23 class TupleCut;
24 class PointRepBase;
25 
44 {
45 
46 protected:
47 
50  CutPlotter ( const std::string & name );
51 
54  typedef std::list < hippodraw::DataRep * > TargetList_t;
55 
59 
63 
66  void updateTargets ();
67 
69  void removeFromTargets ( );
70 
71 public:
72 
74  CutPlotter ( );
75 
77  CutPlotter ( const CutPlotter & plotter );
78 
80  virtual ~CutPlotter ();
81 
89  void addCutTarget ( DataRep * rep );
90 
92  bool isTarget ( DataRep * ) const;
93 
95  const std::list < DataRep * > & getCutTargets () const;
96 
98  void removeFromTarget ( DataRep * rep );
99 
105  virtual void willDelete ( const Observable * observable );
106 
109  const std::vector < TupleCut > & getCuts () const;
110 
113  void setCuts ( const std::vector < const TupleCut * > & cuts );
114 
116  virtual bool hasNTupleBindings () const;
117 
119  void clearCutTargets ();
120 
123  virtual void setAxisBinding ( const std::vector < std::string > & bindings );
124 
126  void setCutColor ( const Color & );
127 
129  const Color & getCutColor () const;
130 
132  virtual void setCutRangeAt ( const Range & range, unsigned int index );
133 
139  virtual void setCutRange ( double low, double high );
140 
146  virtual void setCutRangeFull () = 0;
147 
152  void setActive ( bool yes );
153 
155  void setNTuple ( const DataSource * ntuple );
156 
158  virtual void toggleInverted ( ) = 0;
159 
162  void setEnabled ( bool yes = true );
163 
168  virtual void update ( const Observable * object );
169 
171  virtual void addTupleCut ( DataRep * rep );
172 
176  virtual bool isImageConvertable () const;
177 
178 };
179 
180 } // namespace hippodraw
181 
182 #endif // _CutPlotter_H_

Generated for HippoDraw Class Library by doxygen