Mercurial > hg > svcore
comparison rdf/RDFImporter.cpp @ 1661:353a2d15f213 single-point
Update TextModel
author | Chris Cannam |
---|---|
date | Fri, 22 Mar 2019 11:04:51 +0000 |
parents | 5b7b01da430a |
children | 565575463752 |
comparison
equal
deleted
inserted
replaced
1660:b234d4d011df | 1661:353a2d15f213 |
---|---|
715 } | 715 } |
716 | 716 |
717 TextModel *tm = | 717 TextModel *tm = |
718 dynamic_cast<TextModel *>(model); | 718 dynamic_cast<TextModel *>(model); |
719 if (tm) { | 719 if (tm) { |
720 TextModel::Point point | 720 Event e |
721 (ftime, | 721 (ftime, |
722 values.empty() ? 0.5f : values[0] < 0.f ? 0.f : values[0] > 1.f ? 1.f : values[0], // I was young and feckless once too | 722 values.empty() ? 0.5f : values[0] < 0.f ? 0.f : values[0] > 1.f ? 1.f : values[0], // I was young and feckless once too |
723 label); | 723 label); |
724 tm->addPoint(point); | 724 tm->add(e); |
725 return; | 725 return; |
726 } | 726 } |
727 | 727 |
728 SparseTimeValueModel *stvm = | 728 SparseTimeValueModel *stvm = |
729 dynamic_cast<SparseTimeValueModel *>(model); | 729 dynamic_cast<SparseTimeValueModel *>(model); |