Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 553:97e60a895211
* Add "plot derivatives" option to time value layer (scale is not always right)
author | Chris Cannam |
---|---|
date | Thu, 28 Jan 2010 16:46:04 +0000 |
parents | 2e8194a30f40 |
children | 5b72899d692b |
comparison
equal
deleted
inserted
replaced
552:2e8194a30f40 | 553:97e60a895211 |
---|---|
109 VerticalScale getVerticalScale() const { return m_verticalScale; } | 109 VerticalScale getVerticalScale() const { return m_verticalScale; } |
110 | 110 |
111 void setDrawSegmentDivisions(bool); | 111 void setDrawSegmentDivisions(bool); |
112 bool getDrawSegmentDivisions() const { return m_drawSegmentDivisions; } | 112 bool getDrawSegmentDivisions() const { return m_drawSegmentDivisions; } |
113 | 113 |
114 void setShowDerivative(bool); | |
115 bool getShowDerivative() const { return m_derivative; } | |
116 | |
114 virtual bool isLayerScrollable(const View *v) const; | 117 virtual bool isLayerScrollable(const View *v) const; |
115 | 118 |
116 virtual bool isLayerEditable() const { return true; } | 119 virtual bool isLayerEditable() const { return true; } |
117 | 120 |
118 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 121 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
163 SparseTimeValueModel::EditCommand *m_editingCommand; | 166 SparseTimeValueModel::EditCommand *m_editingCommand; |
164 int m_colourMap; | 167 int m_colourMap; |
165 PlotStyle m_plotStyle; | 168 PlotStyle m_plotStyle; |
166 VerticalScale m_verticalScale; | 169 VerticalScale m_verticalScale; |
167 bool m_drawSegmentDivisions; | 170 bool m_drawSegmentDivisions; |
171 bool m_derivative; | |
168 | 172 |
169 mutable float m_scaleMinimum; | 173 mutable float m_scaleMinimum; |
170 mutable float m_scaleMaximum; | 174 mutable float m_scaleMaximum; |
171 | 175 |
172 void finish(SparseTimeValueModel::EditCommand *command) { | 176 void finish(SparseTimeValueModel::EditCommand *command) { |