Mercurial > hg > tony
comparison src/Analyser.cpp @ 42:140f1fdc7edd
vertical scale adapts to note range
author | matthiasm |
---|---|
date | Wed, 19 Jun 2013 22:05:45 +0100 |
parents | be5676304132 |
children | 66ba56e708c0 |
comparison
equal
deleted
inserted
replaced
41:be5676304132 | 42:140f1fdc7edd |
---|---|
72 if (tvl) { | 72 if (tvl) { |
73 tvl->setPlotStyle(TimeValueLayer::PlotPoints); | 73 tvl->setPlotStyle(TimeValueLayer::PlotPoints); |
74 tvl->setBaseColour(ColourDatabase::getInstance()-> | 74 tvl->setBaseColour(ColourDatabase::getInstance()-> |
75 getColourIndex(QString("Black"))); | 75 getColourIndex(QString("Black"))); |
76 tvl->setVerticalScale(TimeValueLayer::LogScale); | 76 tvl->setVerticalScale(TimeValueLayer::LogScale); |
77 tvl->setDisplayExtents(80.f,600.f); // temporary values: better get the real extents of the data form the model | 77 tvl->setDisplayExtents(27.5f,880.f); // temporary values: better get the real extents of the data form the model |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 layer = addLayerForNotes(notes); | 81 layer = addLayerForNotes(notes); |
82 | 82 |
83 if (layer) { | 83 if (layer) { |
84 FlexiNoteLayer *nl = qobject_cast<FlexiNoteLayer *>(layer); | 84 FlexiNoteLayer *nl = qobject_cast<FlexiNoteLayer *>(layer); |
85 if (nl) { | 85 if (nl) { |
86 nl->setBaseColour(ColourDatabase::getInstance()-> | 86 nl->setBaseColour(ColourDatabase::getInstance()-> |
87 getColourIndex(QString("Bright Blue"))); | 87 getColourIndex(QString("Bright Blue"))); |
88 // nl->setVerticalScale(FlexiNoteLayer::LogScale); | 88 nl->setVerticalScale(FlexiNoteLayer::AutoAlignScale); |
89 // nl->setDisplayExtents(100.f,550.f); // temporary values: better get the real extents of the data form the model | 89 // nl->setDisplayExtents(80.f,600.f); // temporary values: better get the real extents of the data form the model |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 | |
93 paneStack->setCurrentLayer(m_pane, layer); | 94 paneStack->setCurrentLayer(m_pane, layer); |
94 } | 95 } |
95 | 96 |
96 Layer * | 97 Layer * |
97 Analyser::addLayerFor(TransformId id) | 98 Analyser::addLayerFor(TransformId id) |