TextPlotter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _TextPlotter_H_
15 #define _TextPlotter_H_
16 
17 #include "PlotterBase.h"
18 
19 namespace hippodraw {
20 
21 class TextDataRep;
22 class TextRepBase;
23 
39 {
40 
41 private:
42 
45 
46 public:
47 
49  TextPlotter ();
50 
52  TextPlotter( const TextPlotter & plotter );
53 
55  ~TextPlotter();
56 
59  virtual PlotterBase * clone();
60 
62  bool hasNTupleBindings () const;
63 
66  virtual void setRepresentation ( RepBase * );
67 
69  virtual RepBase * representation () const;
70 
71 
72  virtual void addDataRep ( hippodraw::DataRep * rep );
73  virtual int getNumDataReps () const;
74  virtual hippodraw::DataRep * getDataRep ( int ) const;
75  virtual TransformBase * getTransform ();
76 
77  virtual void setErrorDisplay ( hippodraw::Axes::Type axis, bool );
78  virtual bool errorDisplay ( hippodraw::Axes::Type axis ) const;
79 
80  virtual void drawIn( ViewBase * view );
81  void setAxisModel ( AxisModelBase *, hippodraw::Axes::Type );
82  void setRepColor ( const Color & );
83  const Color & repColor () const;
84 
86  virtual float userToMarginX ( double x ) const;
87 
89  virtual float userToMarginY ( double y ) const;
90 
92  virtual float userToInvertedMarginY ( double y ) const;
93 
94  virtual void toUserXY ( double mx, double my, bool scaled,
95  double & ux, double & uy ) const;
96 
100  const hippodraw::DataRep * getParentDataRep () const;
101 
104  void setParentDataRep ( hippodraw::DataRep * );
105 
106  virtual void willDelete ( const Observable * observable );
107 
108  virtual NTuple * createNTuple () const;
109 
110  virtual void update ();
111 
112  /* Return @c true if it's a text plotter. */
113  virtual bool isTextPlotter() const;
114 
115 };
116 
117 } // namespace hippodraw
118 
119 #endif // _TextPlotter_H_

Generated for HippoDraw Class Library by doxygen