14 #include "msdevstudio/MSconfig.h"
25 using namespace hippodraw;
33 : m_plotter ( plotter )
127 const std::vector <double > & ypoints,
virtual void drawImage(const std::string &filename, int position=0)
Draws a image.
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
virtual ~ViewBase()
The virtual destructor.
const Rect & getRawRect() const
Returns the raw rectangle before transform.
virtual void drawSelf()
Draws itself.
virtual void drawLatex(const std::string &eq, int position=0)
Draws a Latex equation.
virtual double getAspectRatio() const
Get the aspect ratio.
const Rect & getUserRect() const
Returns the data space rectangle.
A Color class for creating the color object following the standard RGB color space.
The base class for the PlotterBase hierarchy.
const Rect & getRawRect() const
Returns the rectangle before transform.
PlotterBase * getPlotter() const
Returns the plotter used by this view.
PlotterBase * m_plotter
The plotter object used by this view.
ViewBase()
The default constructor.
Class representing a rectangle.
virtual void drawPolygon(const std::vector< double > &xpoints, const std::vector< double > &ypoints, const Color &color, const Color &edge)
Draws a polygon.
virtual void willDelete(const Observable *plotter)
Responds to notification that the PlotterBase object is being deleted.
virtual void updateDrawRect()
Update the drawing Rectangle in the devices coordinate system.
const Rect & getUserRect() const
Is called by the AxisRepBase object (or one of its derived objects), and returns the rectangle where ...
Expresses a range of values.
virtual void setPlotter(PlotterBase *plotter)
Sets the PlotterBase object to plotter.
const Range & getRange(Axes::Type axis) const
Returns the range of the data space on specified axis.
hippodraw::ViewBase class interface
virtual void drawIn(ViewBase *view)=0
Starts the drawing in view view.
hippodraw::PlotterBase class interface.