mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove instantMeanDepthLine
Take instantMeanDepthLine out of the code. We have the moving average line plus the exact data in the information overlay. Signed-off-by: Cristine Guadelupe <cristineguadelupe@me.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c9535b6547
commit
2b19341609
4 changed files with 0 additions and 52 deletions
|
|
@ -977,23 +977,3 @@ void PartialPressureGasItem::setColors(const QColor &normal, const QColor &alert
|
|||
normalColor = normal;
|
||||
alertColor = alert;
|
||||
}
|
||||
|
||||
InstantMeanDepthLine::InstantMeanDepthLine() : hAxis(NULL), vAxis(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
void InstantMeanDepthLine::mouseMoved(int time, int depth)
|
||||
{
|
||||
if (model == NULL || scene() == NULL || vAxis == NULL || hAxis == NULL)
|
||||
return;
|
||||
|
||||
int count = model->data().nr;
|
||||
for (int i = 0; i < count; i++) {
|
||||
struct plot_data pI = model->data().entry[i];
|
||||
if (pI.sec == time && pI.sec != 0) {
|
||||
setMeanDepth(pI.running_sum / time);
|
||||
setLine(0, 0, hAxis->posAtValue(time), 0);
|
||||
setPos(pos().x(), vAxis->posAtValue(pI.running_sum / time));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue