comparison transform/TransformFactory.cpp @ 479:f933062a7f80

* Make scale bar more accurate (if no more helpful) in log scaled colour 3d plot
author Chris Cannam
date Wed, 12 Nov 2008 16:39:29 +0000
parents e0784311a103
children a82645e788fc
comparison
equal deleted inserted replaced
478:1405f4a2caf3 479:f933062a7f80
107 } 107 }
108 108
109 TransformList 109 TransformList
110 TransformFactory::getUninstalledTransformDescriptions() 110 TransformFactory::getUninstalledTransformDescriptions()
111 { 111 {
112 m_populatingSlowly = false;
112 populateUninstalledTransforms(); 113 populateUninstalledTransforms();
113 114
114 std::set<TransformDescription> dset; 115 std::set<TransformDescription> dset;
115 for (TransformDescriptionMap::const_iterator i = m_uninstalledTransforms.begin(); 116 for (TransformDescriptionMap::const_iterator i = m_uninstalledTransforms.begin();
116 i != m_uninstalledTransforms.end(); ++i) { 117 i != m_uninstalledTransforms.end(); ++i) {
129 } 130 }
130 131
131 TransformDescription 132 TransformDescription
132 TransformFactory::getUninstalledTransformDescription(TransformId id) 133 TransformFactory::getUninstalledTransformDescription(TransformId id)
133 { 134 {
135 m_populatingSlowly = false;
134 populateUninstalledTransforms(); 136 populateUninstalledTransforms();
135 137
136 if (m_uninstalledTransforms.find(id) == m_uninstalledTransforms.end()) { 138 if (m_uninstalledTransforms.find(id) == m_uninstalledTransforms.end()) {
137 return TransformDescription(); 139 return TransformDescription();
138 } 140 }
155 return TransformUnknown; 157 return TransformUnknown;
156 } 158 }
157 159
158 if (!m_uninstalledTransformsPopulated) { 160 if (!m_uninstalledTransformsPopulated) {
159 m_uninstalledTransformsMutex.unlock(); 161 m_uninstalledTransformsMutex.unlock();
162 m_populatingSlowly = false;
160 populateUninstalledTransforms(); 163 populateUninstalledTransforms();
161 m_uninstalledTransformsMutex.lock(); 164 m_uninstalledTransformsMutex.lock();
162 } 165 }
163 166
164 if (m_uninstalledTransforms.find(id) != m_uninstalledTransforms.end()) { 167 if (m_uninstalledTransforms.find(id) != m_uninstalledTransforms.end()) {
551 populateTransforms(); 554 populateTransforms();
552 555
553 MutexLocker locker(&m_uninstalledTransformsMutex, 556 MutexLocker locker(&m_uninstalledTransformsMutex,
554 "TransformFactory::populateUninstalledTransforms"); 557 "TransformFactory::populateUninstalledTransforms");
555 if (m_uninstalledTransformsPopulated) return; 558 if (m_uninstalledTransformsPopulated) return;
556
557 // ("http://www.vamp-plugins.org/rdf/plugins/vamp-example-plugins");
558 559
559 PluginRDFIndexer::getInstance()->indexConfiguredURLs(); 560 PluginRDFIndexer::getInstance()->indexConfiguredURLs();
560 561
561 //!!! This will be amazingly slow 562 //!!! This will be amazingly slow
562 563