comparison layer/TimeValueLayer.h @ 1429:8a7c82282fbc single-point

Update TimeValueLayer etc
author Chris Cannam
date Tue, 19 Mar 2019 13:06:35 +0000
parents a18e78b9c78b
children 696e569ff21b
comparison
equal deleted inserted replaced
1428:c9fa16e41664 1429:8a7c82282fbc
172 172
173 protected: 173 protected:
174 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; 174 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const;
175 bool shouldAutoAlign() const; 175 bool shouldAutoAlign() const;
176 176
177 SparseTimeValueModel::PointList getLocalPoints(LayerGeometryProvider *v, int) const; 177 EventVector getLocalPoints(LayerGeometryProvider *v, int) const;
178 178
179 int getDefaultColourHint(bool dark, bool &impose) override; 179 int getDefaultColourHint(bool dark, bool &impose) override;
180 180
181 SparseTimeValueModel *m_model; 181 SparseTimeValueModel *m_model;
182 bool m_editing; 182 bool m_editing;
183 SparseTimeValueModel::Point m_originalPoint; 183 Event m_originalPoint;
184 SparseTimeValueModel::Point m_editingPoint; 184 Event m_editingPoint;
185 SparseTimeValueModel::EditCommand *m_editingCommand; 185 ChangeEventsCommand *m_editingCommand;
186 int m_colourMap; 186 int m_colourMap;
187 bool m_colourInverted; 187 bool m_colourInverted;
188 PlotStyle m_plotStyle; 188 PlotStyle m_plotStyle;
189 VerticalScale m_verticalScale; 189 VerticalScale m_verticalScale;
190 bool m_drawSegmentDivisions; 190 bool m_drawSegmentDivisions;
191 bool m_derivative; 191 bool m_derivative;
192 192
193 mutable double m_scaleMinimum; 193 mutable double m_scaleMinimum;
194 mutable double m_scaleMaximum; 194 mutable double m_scaleMaximum;
195 195
196 void finish(SparseTimeValueModel::EditCommand *command) { 196 void finish(ChangeEventsCommand *command) {
197 Command *c = command->finish(); 197 Command *c = command->finish();
198 if (c) CommandHistory::getInstance()->addCommand(c, false); 198 if (c) CommandHistory::getInstance()->addCommand(c, false);
199 } 199 }
200 }; 200 };
201 201