navtree.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. var NAVTREE =
  2. [
  3. [ "PUMA", "index.html", [
  4. [ "Class List", "annotated.html", [
  5. [ "ArrayStruct", "struct_array_struct.html", null ],
  6. [ "BMIstruct", "struct_b_m_istruct.html", null ],
  7. [ "ColorStrip", "struct_color_strip.html", null ],
  8. [ "fftmod", "classfftmod.html", null ],
  9. [ "legsym", "classlegsym.html", null ],
  10. [ "MapImageStruct", "struct_map_image_struct.html", null ],
  11. [ "mpimod", "classmpimod.html", null ],
  12. [ "ParcStruct", "struct_parc_struct.html", null ],
  13. [ "PixStruct", "struct_pix_struct.html", null ],
  14. [ "prepmod::ppp_def_int", "interfaceprepmod_1_1ppp__def__int.html", null ],
  15. [ "prepmod::ppp_def_real", "interfaceprepmod_1_1ppp__def__real.html", null ],
  16. [ "prepmod::ppp_type", "structprepmod_1_1ppp__type.html", null ],
  17. [ "prepmod", "classprepmod.html", null ],
  18. [ "pumamod", "classpumamod.html", null ],
  19. [ "radmod", "classradmod.html", null ],
  20. [ "restartmod", "classrestartmod.html", null ],
  21. [ "WinAttStruct", "struct_win_att_struct.html", null ]
  22. ] ],
  23. [ "Data Types", "classes.html", null ],
  24. [ "Data Fields", "functions.html", null ],
  25. [ "File List", "files.html", [
  26. [ "/Users/home/WC/puma/src/fft991mod.f90", "fft991mod_8f90.html", null ],
  27. [ "/Users/home/WC/puma/src/fftmod.f90", "fftmod_8f90.html", null ],
  28. [ "/Users/home/WC/puma/src/gaussmod.f90", "gaussmod_8f90.html", null ],
  29. [ "/Users/home/WC/puma/src/guimod.f90", "guimod_8f90.html", null ],
  30. [ "/Users/home/WC/puma/src/guimod_stub.f90", "guimod__stub_8f90.html", null ],
  31. [ "/Users/home/WC/puma/src/legsym.f90", "legsym_8f90.html", null ],
  32. [ "/Users/home/WC/puma/src/mpimod.f90", "mpimod_8f90.html", null ],
  33. [ "/Users/home/WC/puma/src/mpimod_multi.f90", "mpimod__multi_8f90.html", null ],
  34. [ "/Users/home/WC/puma/src/mpimod_stub.f90", "mpimod__stub_8f90.html", null ],
  35. [ "/Users/home/WC/puma/src/ppp.f90", "ppp_8f90.html", null ],
  36. [ "/Users/home/WC/puma/src/puma.f90", "puma_8f90.html", null ],
  37. [ "/Users/home/WC/puma/src/pumax.c", "pumax_8c.html", null ],
  38. [ "/Users/home/WC/puma/src/pumax_stub.c", "pumax__stub_8c.html", null ],
  39. [ "/Users/home/WC/puma/src/restartmod.f90", "restartmod_8f90.html", null ]
  40. ] ],
  41. [ "File Members", "globals.html", null ]
  42. ] ]
  43. ];
  44. function createIndent(o,domNode,node,level)
  45. {
  46. if (node.parentNode && node.parentNode.parentNode)
  47. {
  48. createIndent(o,domNode,node.parentNode,level+1);
  49. }
  50. var imgNode = document.createElement("img");
  51. if (level==0 && node.childrenData)
  52. {
  53. node.plus_img = imgNode;
  54. node.expandToggle = document.createElement("a");
  55. node.expandToggle.href = "javascript:void(0)";
  56. node.expandToggle.onclick = function()
  57. {
  58. if (node.expanded)
  59. {
  60. $(node.getChildrenUL()).slideUp("fast");
  61. if (node.isLast)
  62. {
  63. node.plus_img.src = node.relpath+"ftv2plastnode.png";
  64. }
  65. else
  66. {
  67. node.plus_img.src = node.relpath+"ftv2pnode.png";
  68. }
  69. node.expanded = false;
  70. }
  71. else
  72. {
  73. expandNode(o, node, false);
  74. }
  75. }
  76. node.expandToggle.appendChild(imgNode);
  77. domNode.appendChild(node.expandToggle);
  78. }
  79. else
  80. {
  81. domNode.appendChild(imgNode);
  82. }
  83. if (level==0)
  84. {
  85. if (node.isLast)
  86. {
  87. if (node.childrenData)
  88. {
  89. imgNode.src = node.relpath+"ftv2plastnode.png";
  90. }
  91. else
  92. {
  93. imgNode.src = node.relpath+"ftv2lastnode.png";
  94. domNode.appendChild(imgNode);
  95. }
  96. }
  97. else
  98. {
  99. if (node.childrenData)
  100. {
  101. imgNode.src = node.relpath+"ftv2pnode.png";
  102. }
  103. else
  104. {
  105. imgNode.src = node.relpath+"ftv2node.png";
  106. domNode.appendChild(imgNode);
  107. }
  108. }
  109. }
  110. else
  111. {
  112. if (node.isLast)
  113. {
  114. imgNode.src = node.relpath+"ftv2blank.png";
  115. }
  116. else
  117. {
  118. imgNode.src = node.relpath+"ftv2vertline.png";
  119. }
  120. }
  121. imgNode.border = "0";
  122. }
  123. function newNode(o, po, text, link, childrenData, lastNode)
  124. {
  125. var node = new Object();
  126. node.children = Array();
  127. node.childrenData = childrenData;
  128. node.depth = po.depth + 1;
  129. node.relpath = po.relpath;
  130. node.isLast = lastNode;
  131. node.li = document.createElement("li");
  132. po.getChildrenUL().appendChild(node.li);
  133. node.parentNode = po;
  134. node.itemDiv = document.createElement("div");
  135. node.itemDiv.className = "item";
  136. node.labelSpan = document.createElement("span");
  137. node.labelSpan.className = "label";
  138. createIndent(o,node.itemDiv,node,0);
  139. node.itemDiv.appendChild(node.labelSpan);
  140. node.li.appendChild(node.itemDiv);
  141. var a = document.createElement("a");
  142. node.labelSpan.appendChild(a);
  143. node.label = document.createTextNode(text);
  144. a.appendChild(node.label);
  145. if (link)
  146. {
  147. a.href = node.relpath+link;
  148. }
  149. else
  150. {
  151. if (childrenData != null)
  152. {
  153. a.className = "nolink";
  154. a.href = "javascript:void(0)";
  155. a.onclick = node.expandToggle.onclick;
  156. node.expanded = false;
  157. }
  158. }
  159. node.childrenUL = null;
  160. node.getChildrenUL = function()
  161. {
  162. if (!node.childrenUL)
  163. {
  164. node.childrenUL = document.createElement("ul");
  165. node.childrenUL.className = "children_ul";
  166. node.childrenUL.style.display = "none";
  167. node.li.appendChild(node.childrenUL);
  168. }
  169. return node.childrenUL;
  170. };
  171. return node;
  172. }
  173. function showRoot()
  174. {
  175. var headerHeight = $("#top").height();
  176. var footerHeight = $("#nav-path").height();
  177. var windowHeight = $(window).height() - headerHeight - footerHeight;
  178. navtree.scrollTo('#selected',0,{offset:-windowHeight/2});
  179. }
  180. function expandNode(o, node, imm)
  181. {
  182. if (node.childrenData && !node.expanded)
  183. {
  184. if (!node.childrenVisited)
  185. {
  186. getNode(o, node);
  187. }
  188. if (imm)
  189. {
  190. $(node.getChildrenUL()).show();
  191. }
  192. else
  193. {
  194. $(node.getChildrenUL()).slideDown("fast",showRoot);
  195. }
  196. if (node.isLast)
  197. {
  198. node.plus_img.src = node.relpath+"ftv2mlastnode.png";
  199. }
  200. else
  201. {
  202. node.plus_img.src = node.relpath+"ftv2mnode.png";
  203. }
  204. node.expanded = true;
  205. }
  206. }
  207. function getNode(o, po)
  208. {
  209. po.childrenVisited = true;
  210. var l = po.childrenData.length-1;
  211. for (var i in po.childrenData)
  212. {
  213. var nodeData = po.childrenData[i];
  214. po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2],
  215. i==l);
  216. }
  217. }
  218. function findNavTreePage(url, data)
  219. {
  220. var nodes = data;
  221. var result = null;
  222. for (var i in nodes)
  223. {
  224. var d = nodes[i];
  225. if (d[1] == url)
  226. {
  227. return new Array(i);
  228. }
  229. else if (d[2] != null) // array of children
  230. {
  231. result = findNavTreePage(url, d[2]);
  232. if (result != null)
  233. {
  234. return (new Array(i).concat(result));
  235. }
  236. }
  237. }
  238. return null;
  239. }
  240. function initNavTree(toroot,relpath)
  241. {
  242. var o = new Object();
  243. o.toroot = toroot;
  244. o.node = new Object();
  245. o.node.li = document.getElementById("nav-tree-contents");
  246. o.node.childrenData = NAVTREE;
  247. o.node.children = new Array();
  248. o.node.childrenUL = document.createElement("ul");
  249. o.node.getChildrenUL = function() { return o.node.childrenUL; };
  250. o.node.li.appendChild(o.node.childrenUL);
  251. o.node.depth = 0;
  252. o.node.relpath = relpath;
  253. getNode(o, o.node);
  254. o.breadcrumbs = findNavTreePage(toroot, NAVTREE);
  255. if (o.breadcrumbs == null)
  256. {
  257. o.breadcrumbs = findNavTreePage("index.html",NAVTREE);
  258. }
  259. if (o.breadcrumbs != null && o.breadcrumbs.length>0)
  260. {
  261. var p = o.node;
  262. for (var i in o.breadcrumbs)
  263. {
  264. var j = o.breadcrumbs[i];
  265. p = p.children[j];
  266. expandNode(o,p,true);
  267. }
  268. p.itemDiv.className = p.itemDiv.className + " selected";
  269. p.itemDiv.id = "selected";
  270. $(window).load(showRoot);
  271. }
  272. }