Mercurial > hg > svgui
comparison view/View.cpp @ 159:c1fb771b7646
* Various improvements to colour 3d plot layer, particularly for large and/or
dense plots. Still a work in progress
author | Chris Cannam |
---|---|
date | Fri, 06 Oct 2006 16:53:25 +0000 |
parents | aaa3a53dbb10 |
children | 86cee2b060c7 |
comparison
equal
deleted
inserted
replaced
158:9c3a4b42d8f8 | 159:c1fb771b7646 |
---|---|
905 View::getModelsSampleRate() const | 905 View::getModelsSampleRate() const |
906 { | 906 { |
907 //!!! Just go for the first, for now. If we were supporting | 907 //!!! Just go for the first, for now. If we were supporting |
908 // multiple samplerates, we'd probably want to do frame/time | 908 // multiple samplerates, we'd probably want to do frame/time |
909 // conversion in the model | 909 // conversion in the model |
910 | |
911 //!!! nah, this wants to always return the sr of the main model! | |
910 | 912 |
911 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) { | 913 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) { |
912 if ((*i)->getModel() && (*i)->getModel()->isOK()) { | 914 if ((*i)->getModel() && (*i)->getModel()->isOK()) { |
913 return (*i)->getModel()->getSampleRate(); | 915 return (*i)->getModel()->getSampleRate(); |
914 } | 916 } |