Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 427:1304dbe4542e
* Support importing features from RDF whose times are intervals rather
than only instants; import them into region or note models. Sadly
this makes RDF import much, much slower, because we need to work around
Rasqal's single-OPTIONAL limitation by repeatedly querying each feature
for time and range.
* Add segmentation view to region layer, and display label texts
author | Chris Cannam |
---|---|
date | Tue, 07 Oct 2008 12:42:17 +0000 |
parents | e1a9e478b7f2 |
children | bcaeb2ba9b74 |
comparison
equal
deleted
inserted
replaced
426:6bf3c906b7a5 | 427:1304dbe4542e |
---|---|
609 } | 609 } |
610 } | 610 } |
611 | 611 |
612 bool haveNext = false; | 612 bool haveNext = false; |
613 int nx = v->getXForFrame(v->getModelsEndFrame()); | 613 int nx = v->getXForFrame(v->getModelsEndFrame()); |
614 // m_model->getEndFrame()); | |
615 int ny = y; | 614 int ny = y; |
616 | 615 |
617 SparseTimeValueModel::PointList::const_iterator j = i; | 616 SparseTimeValueModel::PointList::const_iterator j = i; |
618 ++j; | 617 ++j; |
619 | 618 |
625 } | 624 } |
626 | 625 |
627 // std::cout << "frame = " << p.frame << ", x = " << x << ", haveNext = " << haveNext | 626 // std::cout << "frame = " << p.frame << ", x = " << x << ", haveNext = " << haveNext |
628 // << ", nx = " << nx << std::endl; | 627 // << ", nx = " << nx << std::endl; |
629 | 628 |
630 int labelY = y; | |
631 | |
632 if (w < 1) w = 1; | 629 if (w < 1) w = 1; |
633 paint.setPen(getBaseQColor()); | 630 paint.setPen(getBaseQColor()); |
634 | 631 |
635 if (m_plotStyle == PlotSegmentation) { | 632 if (m_plotStyle == PlotSegmentation) { |
636 paint.setPen(getForegroundQColor(v)); | 633 paint.setPen(getForegroundQColor(v)); |
637 paint.setBrush(getColourForValue(v, p.value)); | 634 paint.setBrush(getColourForValue(v, p.value)); |
638 labelY = v->height(); | |
639 } else if (m_plotStyle == PlotLines || | 635 } else if (m_plotStyle == PlotLines || |
640 m_plotStyle == PlotCurve) { | 636 m_plotStyle == PlotCurve) { |
641 paint.setBrush(Qt::NoBrush); | 637 paint.setBrush(Qt::NoBrush); |
642 } else { | 638 } else { |
643 paint.setBrush(brushColour); | 639 paint.setBrush(brushColour); |