Mercurial > hg > vamp-docs
comparison code-docs/navtree.js @ 1:3c430ef1ed66 vamp-plugin-sdk-v2.3
Add code docs from SDK 2.3
author | Chris Cannam |
---|---|
date | Tue, 04 Oct 2011 14:56:07 +0100 |
parents | |
children | 5c2683745b33 |
comparison
equal
deleted
inserted
replaced
0:895ae8fffdb7 | 1:3c430ef1ed66 |
---|---|
1 var NAVTREE = | |
2 [ | |
3 [ "VampPluginSDK", "index.html", [ | |
4 [ "Vamp Plugin SDK", "index.html", null ], | |
5 [ "Class List", "annotated.html", [ | |
6 [ "_VampFeature", "struct__VampFeature.html", null ], | |
7 [ "_VampFeatureList", "struct__VampFeatureList.html", null ], | |
8 [ "_VampFeatureUnion", "union__VampFeatureUnion.html", null ], | |
9 [ "_VampFeatureV2", "struct__VampFeatureV2.html", null ], | |
10 [ "_VampOutputDescriptor", "struct__VampOutputDescriptor.html", null ], | |
11 [ "_VampParameterDescriptor", "struct__VampParameterDescriptor.html", null ], | |
12 [ "_VampPluginDescriptor", "struct__VampPluginDescriptor.html", null ], | |
13 [ "AmplitudeFollower", "classAmplitudeFollower.html", null ], | |
14 [ "FixedTempoEstimator::D", "classFixedTempoEstimator_1_1D.html", null ], | |
15 [ "Vamp::Plugin::Feature", "structVamp_1_1Plugin_1_1Feature.html", null ], | |
16 [ "FixedTempoEstimator", "classFixedTempoEstimator.html", null ], | |
17 [ "Vamp::Plugin::OutputDescriptor", "structVamp_1_1Plugin_1_1OutputDescriptor.html", null ], | |
18 [ "Vamp::PluginBase::ParameterDescriptor", "structVamp_1_1PluginBase_1_1ParameterDescriptor.html", null ], | |
19 [ "PercussionOnsetDetector", "classPercussionOnsetDetector.html", null ], | |
20 [ "Vamp::Plugin", "classVamp_1_1Plugin.html", null ], | |
21 [ "Vamp::PluginAdapter< P >", "classVamp_1_1PluginAdapter.html", null ], | |
22 [ "Vamp::PluginAdapterBase", "classVamp_1_1PluginAdapterBase.html", null ], | |
23 [ "Vamp::PluginBase", "classVamp_1_1PluginBase.html", null ], | |
24 [ "Vamp::HostExt::PluginBufferingAdapter", "classVamp_1_1HostExt_1_1PluginBufferingAdapter.html", null ], | |
25 [ "Vamp::HostExt::PluginChannelAdapter", "classVamp_1_1HostExt_1_1PluginChannelAdapter.html", null ], | |
26 [ "Vamp::PluginHostAdapter", "classVamp_1_1PluginHostAdapter.html", null ], | |
27 [ "Vamp::HostExt::PluginInputDomainAdapter", "classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html", null ], | |
28 [ "Vamp::HostExt::PluginLoader", "classVamp_1_1HostExt_1_1PluginLoader.html", null ], | |
29 [ "Vamp::HostExt::PluginSummarisingAdapter", "classVamp_1_1HostExt_1_1PluginSummarisingAdapter.html", null ], | |
30 [ "Vamp::HostExt::PluginWrapper", "classVamp_1_1HostExt_1_1PluginWrapper.html", null ], | |
31 [ "PowerSpectrum", "classPowerSpectrum.html", null ], | |
32 [ "Vamp::RealTime", "structVamp_1_1RealTime.html", null ], | |
33 [ "SpectralCentroid", "classSpectralCentroid.html", null ], | |
34 [ "ZeroCrossing", "classZeroCrossing.html", null ] | |
35 ] ], | |
36 [ "Class Index", "classes.html", null ], | |
37 [ "Class Hierarchy", "hierarchy.html", [ | |
38 [ "_VampFeature", "struct__VampFeature.html", null ], | |
39 [ "_VampFeatureList", "struct__VampFeatureList.html", null ], | |
40 [ "_VampFeatureUnion", "union__VampFeatureUnion.html", null ], | |
41 [ "_VampFeatureV2", "struct__VampFeatureV2.html", null ], | |
42 [ "_VampOutputDescriptor", "struct__VampOutputDescriptor.html", null ], | |
43 [ "_VampParameterDescriptor", "struct__VampParameterDescriptor.html", null ], | |
44 [ "_VampPluginDescriptor", "struct__VampPluginDescriptor.html", null ], | |
45 [ "FixedTempoEstimator::D", "classFixedTempoEstimator_1_1D.html", null ], | |
46 [ "Vamp::Plugin::Feature", "structVamp_1_1Plugin_1_1Feature.html", null ], | |
47 [ "Vamp::Plugin::OutputDescriptor", "structVamp_1_1Plugin_1_1OutputDescriptor.html", null ], | |
48 [ "Vamp::PluginBase::ParameterDescriptor", "structVamp_1_1PluginBase_1_1ParameterDescriptor.html", null ], | |
49 [ "Vamp::PluginAdapterBase", "classVamp_1_1PluginAdapterBase.html", [ | |
50 [ "Vamp::PluginAdapter< P >", "classVamp_1_1PluginAdapter.html", null ] | |
51 ] ], | |
52 [ "Vamp::PluginBase", "classVamp_1_1PluginBase.html", [ | |
53 [ "Vamp::Plugin", "classVamp_1_1Plugin.html", [ | |
54 [ "AmplitudeFollower", "classAmplitudeFollower.html", null ], | |
55 [ "FixedTempoEstimator", "classFixedTempoEstimator.html", null ], | |
56 [ "PercussionOnsetDetector", "classPercussionOnsetDetector.html", null ], | |
57 [ "PowerSpectrum", "classPowerSpectrum.html", null ], | |
58 [ "SpectralCentroid", "classSpectralCentroid.html", null ], | |
59 [ "Vamp::HostExt::PluginWrapper", "classVamp_1_1HostExt_1_1PluginWrapper.html", [ | |
60 [ "Vamp::HostExt::PluginBufferingAdapter", "classVamp_1_1HostExt_1_1PluginBufferingAdapter.html", null ], | |
61 [ "Vamp::HostExt::PluginChannelAdapter", "classVamp_1_1HostExt_1_1PluginChannelAdapter.html", null ], | |
62 [ "Vamp::HostExt::PluginInputDomainAdapter", "classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html", null ], | |
63 [ "Vamp::HostExt::PluginSummarisingAdapter", "classVamp_1_1HostExt_1_1PluginSummarisingAdapter.html", null ] | |
64 ] ], | |
65 [ "Vamp::PluginHostAdapter", "classVamp_1_1PluginHostAdapter.html", null ], | |
66 [ "ZeroCrossing", "classZeroCrossing.html", null ] | |
67 ] ] | |
68 ] ], | |
69 [ "Vamp::HostExt::PluginLoader", "classVamp_1_1HostExt_1_1PluginLoader.html", null ], | |
70 [ "Vamp::RealTime", "structVamp_1_1RealTime.html", null ] | |
71 ] ], | |
72 [ "Class Members", "functions.html", null ], | |
73 [ "Namespace List", "namespaces.html", [ | |
74 [ "Vamp", "namespaceVamp.html", null ], | |
75 [ "Vamp::HostExt", "namespaceVamp_1_1HostExt.html", null ] | |
76 ] ], | |
77 [ "Namespace Members", "namespacemembers.html", null ], | |
78 [ "File List", "files.html", [ | |
79 [ "AmplitudeFollower.cpp", "AmplitudeFollower_8cpp.html", null ], | |
80 [ "AmplitudeFollower.h", "AmplitudeFollower_8h.html", null ], | |
81 [ "doc-overview", "doc-overview.html", null ], | |
82 [ "FixedTempoEstimator.cpp", "FixedTempoEstimator_8cpp.html", null ], | |
83 [ "FixedTempoEstimator.h", "FixedTempoEstimator_8h.html", null ], | |
84 [ "hostguard.h", "hostguard_8h.html", null ], | |
85 [ "PercussionOnsetDetector.cpp", "PercussionOnsetDetector_8cpp.html", null ], | |
86 [ "PercussionOnsetDetector.h", "PercussionOnsetDetector_8h.html", null ], | |
87 [ "plugguard.h", "plugguard_8h.html", null ], | |
88 [ "vamp-sdk/Plugin.h", "vamp-sdk_2Plugin_8h.html", null ], | |
89 [ "vamp-hostsdk/Plugin.h", "vamp-hostsdk_2Plugin_8h.html", null ], | |
90 [ "PluginAdapter.h", "PluginAdapter_8h.html", null ], | |
91 [ "vamp-sdk/PluginBase.h", "vamp-sdk_2PluginBase_8h.html", null ], | |
92 [ "vamp-hostsdk/PluginBase.h", "vamp-hostsdk_2PluginBase_8h.html", null ], | |
93 [ "PluginBufferingAdapter.h", "PluginBufferingAdapter_8h.html", null ], | |
94 [ "PluginChannelAdapter.h", "PluginChannelAdapter_8h.html", null ], | |
95 [ "PluginHostAdapter.h", "PluginHostAdapter_8h.html", null ], | |
96 [ "PluginInputDomainAdapter.h", "PluginInputDomainAdapter_8h.html", null ], | |
97 [ "PluginLoader.h", "PluginLoader_8h.html", null ], | |
98 [ "plugins.cpp", "plugins_8cpp.html", null ], | |
99 [ "PluginSummarisingAdapter.h", "PluginSummarisingAdapter_8h.html", null ], | |
100 [ "PluginWrapper.h", "PluginWrapper_8h.html", null ], | |
101 [ "PowerSpectrum.cpp", "PowerSpectrum_8cpp.html", null ], | |
102 [ "PowerSpectrum.h", "PowerSpectrum_8h.html", null ], | |
103 [ "vamp-sdk/RealTime.h", "vamp-sdk_2RealTime_8h.html", null ], | |
104 [ "vamp-hostsdk/RealTime.h", "vamp-hostsdk_2RealTime_8h.html", null ], | |
105 [ "SpectralCentroid.cpp", "SpectralCentroid_8cpp.html", null ], | |
106 [ "SpectralCentroid.h", "SpectralCentroid_8h.html", null ], | |
107 [ "system.h", "system_8h.html", null ], | |
108 [ "vamp-hostsdk.h", "vamp-hostsdk_8h.html", null ], | |
109 [ "vamp-sdk.h", "vamp-sdk_8h.html", null ], | |
110 [ "vamp-simple-host.cpp", "vamp-simple-host_8cpp.html", null ], | |
111 [ "vamp.h", "vamp_8h.html", null ], | |
112 [ "ZeroCrossing.cpp", "ZeroCrossing_8cpp.html", null ], | |
113 [ "ZeroCrossing.h", "ZeroCrossing_8h.html", null ] | |
114 ] ], | |
115 [ "Directories", "dirs.html", [ | |
116 [ "examples", "dir_4ec587bfce30b9b784fbf1cea7303b09.html", null ], | |
117 [ "host", "dir_6fbd4b7d3be43d486a3cce3231e92c53.html", null ], | |
118 [ "src", "dir_629e1dda0168f818e2ee3ab23f68039a.html", null ], | |
119 [ "vamp", "dir_09d7d2829940fe46b7bc0eab58bbbc83.html", null ], | |
120 [ "vamp-hostsdk", "dir_878d155c6c7dea35ce3fc23c898c55e3.html", null ], | |
121 [ "vamp-sdk", "dir_fc29d784de6894b015ce0522888485dd.html", null ] | |
122 ] ], | |
123 [ "File Members", "globals.html", null ] | |
124 ] ] | |
125 ]; | |
126 | |
127 function createIndent(o,domNode,node,level) | |
128 { | |
129 if (node.parentNode && node.parentNode.parentNode) | |
130 { | |
131 createIndent(o,domNode,node.parentNode,level+1); | |
132 } | |
133 var imgNode = document.createElement("img"); | |
134 if (level==0 && node.childrenData) | |
135 { | |
136 node.plus_img = imgNode; | |
137 node.expandToggle = document.createElement("a"); | |
138 node.expandToggle.href = "javascript:void(0)"; | |
139 node.expandToggle.onclick = function() | |
140 { | |
141 if (node.expanded) | |
142 { | |
143 $(node.getChildrenUL()).slideUp("fast"); | |
144 if (node.isLast) | |
145 { | |
146 node.plus_img.src = node.relpath+"ftv2plastnode.png"; | |
147 } | |
148 else | |
149 { | |
150 node.plus_img.src = node.relpath+"ftv2pnode.png"; | |
151 } | |
152 node.expanded = false; | |
153 } | |
154 else | |
155 { | |
156 expandNode(o, node, false); | |
157 } | |
158 } | |
159 node.expandToggle.appendChild(imgNode); | |
160 domNode.appendChild(node.expandToggle); | |
161 } | |
162 else | |
163 { | |
164 domNode.appendChild(imgNode); | |
165 } | |
166 if (level==0) | |
167 { | |
168 if (node.isLast) | |
169 { | |
170 if (node.childrenData) | |
171 { | |
172 imgNode.src = node.relpath+"ftv2plastnode.png"; | |
173 } | |
174 else | |
175 { | |
176 imgNode.src = node.relpath+"ftv2lastnode.png"; | |
177 domNode.appendChild(imgNode); | |
178 } | |
179 } | |
180 else | |
181 { | |
182 if (node.childrenData) | |
183 { | |
184 imgNode.src = node.relpath+"ftv2pnode.png"; | |
185 } | |
186 else | |
187 { | |
188 imgNode.src = node.relpath+"ftv2node.png"; | |
189 domNode.appendChild(imgNode); | |
190 } | |
191 } | |
192 } | |
193 else | |
194 { | |
195 if (node.isLast) | |
196 { | |
197 imgNode.src = node.relpath+"ftv2blank.png"; | |
198 } | |
199 else | |
200 { | |
201 imgNode.src = node.relpath+"ftv2vertline.png"; | |
202 } | |
203 } | |
204 imgNode.border = "0"; | |
205 } | |
206 | |
207 function newNode(o, po, text, link, childrenData, lastNode) | |
208 { | |
209 var node = new Object(); | |
210 node.children = Array(); | |
211 node.childrenData = childrenData; | |
212 node.depth = po.depth + 1; | |
213 node.relpath = po.relpath; | |
214 node.isLast = lastNode; | |
215 | |
216 node.li = document.createElement("li"); | |
217 po.getChildrenUL().appendChild(node.li); | |
218 node.parentNode = po; | |
219 | |
220 node.itemDiv = document.createElement("div"); | |
221 node.itemDiv.className = "item"; | |
222 | |
223 node.labelSpan = document.createElement("span"); | |
224 node.labelSpan.className = "label"; | |
225 | |
226 createIndent(o,node.itemDiv,node,0); | |
227 node.itemDiv.appendChild(node.labelSpan); | |
228 node.li.appendChild(node.itemDiv); | |
229 | |
230 var a = document.createElement("a"); | |
231 node.labelSpan.appendChild(a); | |
232 node.label = document.createTextNode(text); | |
233 a.appendChild(node.label); | |
234 if (link) | |
235 { | |
236 a.href = node.relpath+link; | |
237 } | |
238 else | |
239 { | |
240 if (childrenData != null) | |
241 { | |
242 a.className = "nolink"; | |
243 a.href = "javascript:void(0)"; | |
244 a.onclick = node.expandToggle.onclick; | |
245 node.expanded = false; | |
246 } | |
247 } | |
248 | |
249 node.childrenUL = null; | |
250 node.getChildrenUL = function() | |
251 { | |
252 if (!node.childrenUL) | |
253 { | |
254 node.childrenUL = document.createElement("ul"); | |
255 node.childrenUL.className = "children_ul"; | |
256 node.childrenUL.style.display = "none"; | |
257 node.li.appendChild(node.childrenUL); | |
258 } | |
259 return node.childrenUL; | |
260 }; | |
261 | |
262 return node; | |
263 } | |
264 | |
265 function showRoot() | |
266 { | |
267 var headerHeight = $("#top").height(); | |
268 var footerHeight = $("#nav-path").height(); | |
269 var windowHeight = $(window).height() - headerHeight - footerHeight; | |
270 navtree.scrollTo('#selected',0,{offset:-windowHeight/2}); | |
271 } | |
272 | |
273 function expandNode(o, node, imm) | |
274 { | |
275 if (node.childrenData && !node.expanded) | |
276 { | |
277 if (!node.childrenVisited) | |
278 { | |
279 getNode(o, node); | |
280 } | |
281 if (imm) | |
282 { | |
283 $(node.getChildrenUL()).show(); | |
284 } | |
285 else | |
286 { | |
287 $(node.getChildrenUL()).slideDown("fast",showRoot); | |
288 } | |
289 if (node.isLast) | |
290 { | |
291 node.plus_img.src = node.relpath+"ftv2mlastnode.png"; | |
292 } | |
293 else | |
294 { | |
295 node.plus_img.src = node.relpath+"ftv2mnode.png"; | |
296 } | |
297 node.expanded = true; | |
298 } | |
299 } | |
300 | |
301 function getNode(o, po) | |
302 { | |
303 po.childrenVisited = true; | |
304 var l = po.childrenData.length-1; | |
305 for (var i in po.childrenData) | |
306 { | |
307 var nodeData = po.childrenData[i]; | |
308 po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2], | |
309 i==l); | |
310 } | |
311 } | |
312 | |
313 function findNavTreePage(url, data) | |
314 { | |
315 var nodes = data; | |
316 var result = null; | |
317 for (var i in nodes) | |
318 { | |
319 var d = nodes[i]; | |
320 if (d[1] == url) | |
321 { | |
322 return new Array(i); | |
323 } | |
324 else if (d[2] != null) // array of children | |
325 { | |
326 result = findNavTreePage(url, d[2]); | |
327 if (result != null) | |
328 { | |
329 return (new Array(i).concat(result)); | |
330 } | |
331 } | |
332 } | |
333 return null; | |
334 } | |
335 | |
336 function initNavTree(toroot,relpath) | |
337 { | |
338 var o = new Object(); | |
339 o.toroot = toroot; | |
340 o.node = new Object(); | |
341 o.node.li = document.getElementById("nav-tree-contents"); | |
342 o.node.childrenData = NAVTREE; | |
343 o.node.children = new Array(); | |
344 o.node.childrenUL = document.createElement("ul"); | |
345 o.node.getChildrenUL = function() { return o.node.childrenUL; }; | |
346 o.node.li.appendChild(o.node.childrenUL); | |
347 o.node.depth = 0; | |
348 o.node.relpath = relpath; | |
349 | |
350 getNode(o, o.node); | |
351 | |
352 o.breadcrumbs = findNavTreePage(toroot, NAVTREE); | |
353 if (o.breadcrumbs == null) | |
354 { | |
355 o.breadcrumbs = findNavTreePage("index.html",NAVTREE); | |
356 } | |
357 if (o.breadcrumbs != null && o.breadcrumbs.length>0) | |
358 { | |
359 var p = o.node; | |
360 for (var i in o.breadcrumbs) | |
361 { | |
362 var j = o.breadcrumbs[i]; | |
363 p = p.children[j]; | |
364 expandNode(o,p,true); | |
365 } | |
366 p.itemDiv.className = p.itemDiv.className + " selected"; | |
367 p.itemDiv.id = "selected"; | |
368 $(window).load(showRoot); | |
369 } | |
370 } | |
371 |