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_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
Definition: Observable.h:39
A Plotter class that plots points in 2 dimensions and option a third dimension in color...
Definition: XyPlotter.h:44
return rep
Definition: Inspector.cxx:3843
return yes
Definition: CanvasView.cxx:883
A Color class for creating the color object following the standard RGB color space.
Definition: Color.h:37
The base class for data representations.
Definition: DataRep.h:68
A PlotterBase derived class that serves a base class for cut plotters.
Definition: CutPlotter.h:43
TargetList_t m_targets
A list of DataRep objects which have this cut applied.
Definition: CutPlotter.h:58
hippodraw::XyPlotter class interface
std::list< hippodraw::DataRep * > TargetList_t
The STL container type used for targets of the cut.
Definition: CutPlotter.h:54
Expresses a range of values.
Definition: Range.h:33
return index
Definition: PickTable.cxx:182
hippodraw::DataRep * m_datarep
A pointer to the data representation that holds the cuts.
Definition: CutPlotter.h:62
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen