Mercurial > hg > svapp
comparison framework/SVFileReader.h @ 72:4aa40182321f
* Merge from transforms branch -- switch over to using Transform object
properly
author | Chris Cannam |
---|---|
date | Fri, 07 Dec 2007 16:47:31 +0000 |
parents | a798f5e6fc5e |
children | b1a68403714b |
comparison
equal
deleted
inserted
replaced
70:716e9d2f91c7 | 72:4aa40182321f |
---|---|
16 #ifndef _SV_FILE_READER_H_ | 16 #ifndef _SV_FILE_READER_H_ |
17 #define _SV_FILE_READER_H_ | 17 #define _SV_FILE_READER_H_ |
18 | 18 |
19 #include "layer/LayerFactory.h" | 19 #include "layer/LayerFactory.h" |
20 #include "plugin/transform/Transform.h" | 20 #include "plugin/transform/Transform.h" |
21 #include "plugin/transform/PluginTransformer.h" | |
22 | 21 |
23 #include <QXmlDefaultHandler> | 22 #include <QXmlDefaultHandler> |
24 | 23 |
25 #include <map> | 24 #include <map> |
26 | 25 |
87 is to be regenerated completely from the transform when | 86 is to be regenerated completely from the transform when |
88 the session is reloaded, then the model should have _only_ | 87 the session is reloaded, then the model should have _only_ |
89 a derivation element, and no model element should appear | 88 a derivation element, and no model element should appear |
90 for it at all. --> | 89 for it at all. --> |
91 | 90 |
92 <derivation source="0" model="2" transform="..." ...> | 91 <derivation type="transform" source="0" model="2" channel="-1"> |
93 <plugin id="..." ... /> | 92 <transform id="vamp:soname:pluginid:output" ... /> |
93 </derivation> | |
94 | |
95 <!-- Note that the derivation element just described replaces | |
96 this earlier formulation, which had more attributes in the | |
97 derivation element and a plugin element describing plugin | |
98 parameters and properties. What we actually read and | |
99 write these days is a horrid composite of the two formats, | |
100 for backward compatibility reasons. --> | |
101 | |
102 <derivation source="0" model="2" transform="vamp:soname:pluginid:output" ...> | |
103 <plugin id="pluginid" ... /> | |
94 </derivation> | 104 </derivation> |
95 | 105 |
96 <!-- The playparameters element lists playback settings for | 106 <!-- The playparameters element lists playback settings for |
97 a model. --> | 107 a model. --> |
98 | 108 |
193 bool addRowToDataset(const QXmlAttributes &); | 203 bool addRowToDataset(const QXmlAttributes &); |
194 bool readRowData(const QString &); | 204 bool readRowData(const QString &); |
195 bool readDerivation(const QXmlAttributes &); | 205 bool readDerivation(const QXmlAttributes &); |
196 bool readPlayParameters(const QXmlAttributes &); | 206 bool readPlayParameters(const QXmlAttributes &); |
197 bool readPlugin(const QXmlAttributes &); | 207 bool readPlugin(const QXmlAttributes &); |
208 bool readTransform(const QXmlAttributes &); | |
209 bool readParameter(const QXmlAttributes &); | |
198 bool readSelection(const QXmlAttributes &); | 210 bool readSelection(const QXmlAttributes &); |
199 bool readMeasurement(const QXmlAttributes &); | 211 bool readMeasurement(const QXmlAttributes &); |
200 void addUnaddedModels(); | 212 void addUnaddedModels(); |
201 | 213 |
202 bool haveModel(int id) { | 214 bool haveModel(int id) { |
214 Layer *m_currentLayer; | 226 Layer *m_currentLayer; |
215 Model *m_currentDataset; | 227 Model *m_currentDataset; |
216 Model *m_currentDerivedModel; | 228 Model *m_currentDerivedModel; |
217 int m_currentDerivedModelId; | 229 int m_currentDerivedModelId; |
218 PlayParameters *m_currentPlayParameters; | 230 PlayParameters *m_currentPlayParameters; |
219 QString m_currentTransformer; | 231 Transform m_currentTransform; |
220 Model *m_currentTransformerSource; | 232 Model *m_currentTransformSource; |
221 PluginTransformer::ExecutionContext m_currentTransformerContext; | 233 int m_currentTransformChannel; |
222 QString m_currentTransformerConfiguration; | 234 bool m_currentTransformIsNewStyle; |
223 QString m_datasetSeparator; | 235 QString m_datasetSeparator; |
224 bool m_inRow; | 236 bool m_inRow; |
225 bool m_inLayer; | 237 bool m_inLayer; |
226 bool m_inView; | 238 bool m_inView; |
227 bool m_inData; | 239 bool m_inData; |