Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 156:b32282fefccd
* Tidy up inheritance hierarchy of model classes -- remove ZoomConstraint as
a base class (make it a member instead) and remove virtual inheritances of
QObject (no longer necessary).
author | Chris Cannam |
---|---|
date | Thu, 05 Oct 2006 11:03:06 +0000 |
parents | 33929e0c3c6b |
children | c1fb771b7646 |
comparison
equal
deleted
inserted
replaced
155:8c730f49b9b3 | 156:b32282fefccd |
---|---|
43 | 43 |
44 public: | 44 public: |
45 Colour3DPlotLayer(); | 45 Colour3DPlotLayer(); |
46 ~Colour3DPlotLayer(); | 46 ~Colour3DPlotLayer(); |
47 | 47 |
48 virtual const ZoomConstraint *getZoomConstraint() const { return m_model; } | 48 virtual const ZoomConstraint *getZoomConstraint() const { |
49 return m_model ? m_model->getZoomConstraint() : 0; | |
50 } | |
49 virtual const Model *getModel() const { return m_model; } | 51 virtual const Model *getModel() const { return m_model; } |
50 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 52 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
51 | 53 |
52 virtual int getVerticalScaleWidth(View *v, QPainter &) const; | 54 virtual int getVerticalScaleWidth(View *v, QPainter &) const; |
53 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; | 55 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; |