CutRangeRep.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _CutRangeRep_H_
15 #define _CutRangeRep_H_
16 
17 #include "PointRepBase.h"
18 
19 namespace hippodraw {
20 
21 class TupleCut;
22 
30 {
31 private:
32 
35  typedef std::vector < TupleCut > CutList_t;
36 
41 
44  void drawNormalRange ( const Range & x_range,
45  const Range & y_range,
46  const TransformBase & tb,
47  ViewBase & view );
48 
51  void drawInvertedRange1D ( const Range & x_range,
52  const Range & y_range,
53  const TransformBase & tb,
54  ViewBase & view );
55 
58  void drawInvertedRange2D ( const Range & x_range,
59  const Range & y_range,
60  const TransformBase & transform,
61  ViewBase & view );
62 
65  void throwRangeException ();
66 
67 public:
68 
70  CutRangeRep( );
71 
73  CutRangeRep( const CutRangeRep & point_rep );
74 
78  virtual CutRangeRep * clone();
79 
84  void drawProjectedValues ( const Range & x_range,
85  const Range & y_range,
86  const TransformBase & tb,
87  ViewBase & view );
88 
89  virtual void drawProjectedValues ( const DataSource * ntuple,
90  TransformBase * transform,
91  ViewBase * view );
92 
95  const std::vector < TupleCut > & getCuts () const;
96 
99  void addCut ( const TupleCut & cut );
100 
103  void setCutRangeAt ( const Range & range, unsigned int i );
104 
107  void toggleInverted ( unsigned int i );
108 
111  void setEnabled ( unsigned int i, bool yes );
112 
113 };
114 
115 } // namespace hippodraw
116 
117 #endif // _CutRangeRep_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
A derived class of PointRepBase class that draws a representation of a cut range. ...
Definition: CutRangeRep.h:29
The class expresses a cut on a DataSource, i.e.
Definition: TupleCut.h:43
return yes
Definition: CanvasView.cxx:883
CutList_t m_cut_list
A list of cut objects used to highlight region of the data representation.
Definition: CutRangeRep.h:40
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The abstract base class for views.
Definition: ViewBase.h:62
hippodraw::PointRepBase class interface
std::vector< TupleCut > CutList_t
The type of container for TupleCut objects.
Definition: CutRangeRep.h:35
Expresses a range of values.
Definition: Range.h:33
The base class for the point representation hierarchy.
Definition: PointRepBase.h:37
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen