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_
#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 transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
return rep
Definition: Inspector.cxx:3843
A Color class for creating the color object following the standard RGB color space.
Definition: Color.h:37
TextDataRep * m_datarep
The DataRep object being used.
Definition: TextPlotter.h:44
The base class for the PlotterBase hierarchy.
Definition: PlotterBase.h:55
The base class for data representations.
Definition: DataRep.h:68
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The AxisModelBase class maintains the Range and scaling of an axis.
Definition: AxisModelBase.h:33
A DataSource class implemented with std::vector<double> to store the column data. ...
Definition: NTuple.h:33
The abstract base class for views.
Definition: ViewBase.h:62
A Plotter class that draws text.
Definition: TextPlotter.h:38
Displays data in textual representation.
Definition: TextDataRep.h:32
Type
Axes constants.
Definition: AxesType.h:31
The base class for the point representation hierarchy.
Definition: RepBase.h:45
hippodraw::PlotterBase class interface.

Generated for HippoDraw Class Library by doxygen