102 virtual void update (
const Observable * ) = 0;
105 virtual void drawSelf();
116 virtual void drawLines (
const std::vector< double > & x,
117 const std::vector< double > & y,
140 virtual void drawColorLines (
const std::vector< double > & x,
141 const std::vector< double > & y,
143 const std::vector < Color > & color,
155 virtual void drawViewLines (
const std::vector< double > & x,
156 const std::vector< double > & y,
169 virtual void drawViewLines (
const std::vector< double > & x,
170 const std::vector< double > & y,
180 virtual void drawPolyLine (
const std::vector< double > & xpoints,
181 const std::vector< double > & ypoints,
191 virtual void drawPolygon (
const std::vector <double > & xpoints,
192 const std::vector <double > & ypoints,
194 const Color & edge );
229 virtual void drawText (
const std::string &s,
float x,
float y,
230 float fontsize,
float angle = 0.0,
231 char xp =
'l',
char yp =
't',
234 const Color * color = 0 ) = 0;
241 virtual void drawImage (
const std::string &filename,
int position = 0);
246 virtual void drawLatex (
const std::string &eq,
int position = 0);
251 virtual void drawPoints (
const std::vector<double> & x,
252 const std::vector<double> & y,
255 const Color & color ) = 0;
262 virtual void drawPoints (
const std::vector< double > & x,
263 const std::vector< double > & y,
264 const std::vector< Color > & colors,
266 float sym_size ) = 0;
270 virtual void drawSquare (
double x1,
double y1,
double x2,
double y2,
271 int red,
int green,
int blue ) = 0;
275 virtual void drawViewSquare (
float x1,
float y1,
float x2,
float y2,
276 int red,
int green,
int blue ) = 0;
285 const Rect & getUserRect ()
const;
289 const Rect & getRawRect ()
const;
293 virtual Rect getDrawRect()
const = 0;
296 virtual void updateDrawRect();
299 virtual void setDrawRect (
float x,
float y,
float w,
float h ) = 0;
303 virtual float userToDrawX (
double x )
const = 0;
304 virtual float userToDrawXAutoInv (
double x )
const = 0;
308 virtual float userToDrawY (
double y )
const = 0;
312 virtual float userToDrawColor (
double c )
const = 0;
315 virtual double getAspectRatio ()
const;
319 virtual void willDelete (
const Observable * plotter );
325 #endif // _ViewBase_H_
#define MDL_HIPPOPLOT_API
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
hippodrw::Rect class interface
Type
Enumeration of the type of symbols supported by this class.
A abstract base class for font handling.
A Color class for creating the color object following the standard RGB color space.
The base class for the PlotterBase hierarchy.
PlotterBase * m_plotter
The plotter object used by this view.
PyArray_TYPES type(numeric::array arr)
intp size(numeric::array arr)
Class representing a rectangle.
Style
Line style constants.
Part of an implementation of the Observable Observer pattern based on the example implementation in t...
The abstract base class for views.
Expresses a range of values.
Observer class interface.