libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo es el conjunto de objetos y funciones, que permiten ejecutar las operaciones básicas de la plataforma Moldeo, y que compone su núcleo.
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Amigas 'defines' Grupos Páginas
navtree.js
Ir a la documentación de este archivo.
1 var NAVTREE =
2 [
3  [ "libmoldeo (Moldeo 1.0 Core)", "index.html", [
4  [ "MoldeoFunctions", "_moldeo_functions.html", null ],
5  [ "Test List", "test.html", null ],
6  [ "Modules", "modules.html", "modules" ],
7  [ "Namespaces", null, [
8  [ "Namespace List", "namespaces.html", "namespaces" ],
9  [ "Namespace Members", "namespacemembers.html", [
10  [ "All", "namespacemembers.html", null ],
11  [ "Typedefs", "namespacemembers_type.html", null ],
12  [ "Enumerations", "namespacemembers_enum.html", null ],
13  [ "Enumerator", "namespacemembers_eval.html", null ]
14  ] ]
15  ] ],
16  [ "Classes", null, [
17  [ "Class List", "annotated.html", "annotated" ],
18  [ "Class Index", "classes.html", null ],
19  [ "Class Hierarchy", "hierarchy.html", "hierarchy" ],
20  [ "Class Members", "functions.html", [
21  [ "All", "functions.html", "functions_dup" ],
22  [ "Functions", "functions_func.html", "functions_func" ],
23  [ "Variables", "functions_vars.html", "functions_vars" ],
24  [ "Typedefs", "functions_type.html", null ],
25  [ "Enumerations", "functions_enum.html", null ],
26  [ "Enumerator", "functions_eval.html", null ],
27  [ "Related Functions", "functions_rela.html", null ]
28  ] ]
29  ] ],
30  [ "Files", null, [
31  [ "File List", "files.html", "files" ],
32  [ "File Members", "globals.html", [
33  [ "All", "globals.html", "globals_dup" ],
34  [ "Functions", "globals_func.html", "globals_func" ],
35  [ "Variables", "globals_vars.html", null ],
36  [ "Typedefs", "globals_type.html", null ],
37  [ "Enumerations", "globals_enum.html", null ],
38  [ "Enumerator", "globals_eval.html", "globals_eval" ],
39  [ "Macros", "globals_defs.html", "globals_defs" ]
40  ] ]
41  ] ]
42  ] ]
43 ];
44 
46 [
47 "_moldeo_functions.html",
48 "class_o_g_l_f_t_1_1_translucent.html#a849f4efc4928e079af77e897525cf518",
49 "classmo_camera3_d.html#aefa17742ba752c18bb97a26c75a2f1c9",
50 "classmo_connector.html#acfaeef7eb6ff284e2d45fb94976ea787",
51 "classmo_d_matrix.html#a57d0a25c8ae055504eca6666074e3c25",
52 "classmo_data_session_key.html#a6dd874f5e676169ba758c3da12402f41",
53 "classmo_effect_manager.html#acd7f0c3e0b3f57f19792a52816178831",
54 "classmo_g_l_manager.html#a0df3de2bddf2c3af7bcd514058573cd7",
55 "classmo_i_o_device.html#ac98bfee37ae519d9febbbf3c3133203b",
56 "classmo_math.html#a8e2ec377d0062b04376f6048f2399437",
57 "classmo_mob_state.html#afa9cfae581f764a5f0b55017944c0e30",
58 "classmo_p5.html#aa9d2e10f2c84387b1121938f63188047",
59 "classmo_pre_effect.html#a96770cbd097f86e5d97ceaacb76afc0b",
60 "classmo_resource_manager.html#a8fd9bae9ed5678c22778e2f96c881754",
61 "classmo_sound.html#a518f305cf689480bb16b2aaf8730c4b7",
62 "classmo_text_filter_param.html#a810cc26f81436e0501207385b5f7e29e",
63 "classmo_texture_filter.html#aeeb521fb24377ece6bb7f94cdd0fc571",
64 "classmo_tracker_feature.html#ad67193e299b2edbe64515082c2afe5fc",
65 "classmo_vector2.html#acc6a347dc1465099b78c4fde3ce9b292",
66 "classmo_video_sample.html#a3eca3e555ddd4510082f33f69edc55d0",
67 "est_2mo_types_8h.html#add0fd24f4fcaa97a6b2efd9872f5eef4a060ee3eec5c914712d7bb8d2a0175154",
68 "group__luascript.html#gabace6b7b3c79fd32f5147acb9736fc9c",
69 "mo_array_8h.html#a7cc9174260f504d98516bd86b17896bb",
70 "mo_filter_manager_8h.html#a66c852a3385422e196ae92a711dcfb5b",
71 "mo_luna_classes_8cpp.html#ade1f0fdb1350a38fdb0b8533c61c4b44",
72 "mo_math_polynomial_8h.html#ab2bca2ef865a9ea076f6f8ae97bf8166",
73 "mo_port_8h.html#aeb39d51df9edc08f972192bd0abd1774",
74 "mo_text_8h.html#aa65c5deed0e2a106304b850389d8a8e1",
75 "mo_types_8h.html#aea3da9f8e0278c2cc51898d819154247",
76 "struct_o_g_l_f_t_1_1_texture_1_1_texture_info.html"
77 ];
78 
79 var SYNCONMSG = 'click to disable panel synchronisation';
80 var SYNCOFFMSG = 'click to enable panel synchronisation';
81 var navTreeSubIndices = new Array();
82 
83 function getData(varName)
84 {
85  var i = varName.lastIndexOf('/');
86  var n = i>=0 ? varName.substring(i+1) : varName;
87  return eval(n.replace(/\-/g,'_'));
88 }
89 
90 function stripPath(uri)
91 {
92  return uri.substring(uri.lastIndexOf('/')+1);
93 }
94 
95 function stripPath2(uri)
96 {
97  var i = uri.lastIndexOf('/');
98  var s = uri.substring(i+1);
99  var m = uri.substring(0,i+1).match(/\/d\w\/d\w\w\/$/);
100  return m ? uri.substring(i-6) : s;
101 }
102 
103 function hashValue()
104 {
105  return $(location).attr('hash').substring(1).replace(/[^\w\-]/g,'');
106 }
107 
108 function hashUrl()
109 {
110  return '#'+hashValue();
111 }
112 
113 function pathName()
114 {
115  return $(location).attr('pathname').replace(/[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)]/g, '');
116 }
117 
119 {
120  try {
121  return 'localStorage' in window && window['localStorage'] !== null && window.localStorage.getItem;
122  }
123  catch(e) {
124  return false;
125  }
126 }
127 
128 
129 function storeLink(link)
130 {
131  if (!$("#nav-sync").hasClass('sync') && localStorageSupported()) {
132  window.localStorage.setItem('navpath',link);
133  }
134 }
135 
136 function deleteLink()
137 {
138  if (localStorageSupported()) {
139  window.localStorage.setItem('navpath','');
140  }
141 }
142 
143 function cachedLink()
144 {
145  if (localStorageSupported()) {
146  return window.localStorage.getItem('navpath');
147  } else {
148  return '';
149  }
150 }
151 
152 function getScript(scriptName,func,show)
153 {
154  var head = document.getElementsByTagName("head")[0];
155  var script = document.createElement('script');
156  script.id = scriptName;
157  script.type = 'text/javascript';
158  script.onload = func;
159  script.src = scriptName+'.js';
160  if ($.browser.msie && $.browser.version<=8) {
161  // script.onload does not work with older versions of IE
162  script.onreadystatechange = function() {
163  if (script.readyState=='complete' || script.readyState=='loaded') {
164  func(); if (show) showRoot();
165  }
166  }
167  }
168  head.appendChild(script);
169 }
170 
171 function createIndent(o,domNode,node,level)
172 {
173  var level=-1;
174  var n = node;
175  while (n.parentNode) { level++; n=n.parentNode; }
176  if (node.childrenData) {
177  var imgNode = document.createElement("img");
178  imgNode.style.paddingLeft=(16*level).toString()+'px';
179  imgNode.width = 16;
180  imgNode.height = 22;
181  imgNode.border = 0;
182  node.plus_img = imgNode;
183  node.expandToggle = document.createElement("a");
184  node.expandToggle.href = "javascript:void(0)";
185  node.expandToggle.onclick = function() {
186  if (node.expanded) {
187  $(node.getChildrenUL()).slideUp("fast");
188  node.plus_img.src = node.relpath+"ftv2pnode.png";
189  node.expanded = false;
190  } else {
191  expandNode(o, node, false, false);
192  }
193  }
194  node.expandToggle.appendChild(imgNode);
195  domNode.appendChild(node.expandToggle);
196  imgNode.src = node.relpath+"ftv2pnode.png";
197  } else {
198  var span = document.createElement("span");
199  span.style.display = 'inline-block';
200  span.style.width = 16*(level+1)+'px';
201  span.style.height = '22px';
202  span.innerHTML = '&#160;';
203  domNode.appendChild(span);
204  }
205 }
206 
208 
209 function gotoAnchor(anchor,aname,updateLocation)
210 {
211  var pos, docContent = $('#doc-content');
212  var ancParent = $(anchor.parent());
213  if (ancParent.hasClass('memItemLeft') ||
214  ancParent.hasClass('fieldname') ||
215  ancParent.hasClass('fieldtype') ||
216  ancParent.is(':header'))
217  {
218  pos = ancParent.position().top;
219  } else if (anchor.position()) {
220  pos = anchor.position().top;
221  }
222  if (pos) {
223  var dist = Math.abs(Math.min(
224  pos-docContent.offset().top,
225  docContent[0].scrollHeight-
226  docContent.height()-docContent.scrollTop()));
227  animationInProgress=true;
228  docContent.animate({
229  scrollTop: pos + docContent.scrollTop() - docContent.offset().top
230  },Math.max(50,Math.min(500,dist)),function(){
231  if (updateLocation) window.location.href=aname;
232  animationInProgress=false;
233  });
234  }
235 }
236 
237 function newNode(o, po, text, link, childrenData, lastNode)
238 {
239  var node = new Object();
240  node.children = Array();
241  node.childrenData = childrenData;
242  node.depth = po.depth + 1;
243  node.relpath = po.relpath;
244  node.isLast = lastNode;
245 
246  node.li = document.createElement("li");
247  po.getChildrenUL().appendChild(node.li);
248  node.parentNode = po;
249 
250  node.itemDiv = document.createElement("div");
251  node.itemDiv.className = "item";
252 
253  node.labelSpan = document.createElement("span");
254  node.labelSpan.className = "label";
255 
256  createIndent(o,node.itemDiv,node,0);
257  node.itemDiv.appendChild(node.labelSpan);
258  node.li.appendChild(node.itemDiv);
259 
260  var a = document.createElement("a");
261  node.labelSpan.appendChild(a);
262  node.label = document.createTextNode(text);
263  node.expanded = false;
264  a.appendChild(node.label);
265  if (link) {
266  var url;
267  if (link.substring(0,1)=='^') {
268  url = link.substring(1);
269  link = url;
270  } else {
271  url = node.relpath+link;
272  }
273  a.className = stripPath(link.replace('#',':'));
274  if (link.indexOf('#')!=-1) {
275  var aname = '#'+link.split('#')[1];
276  var srcPage = stripPath(pathName());
277  var targetPage = stripPath(link.split('#')[0]);
278  a.href = srcPage!=targetPage ? url : "javascript:void(0)";
279  a.onclick = function(){
280  storeLink(link);
281  if (!$(a).parent().parent().hasClass('selected'))
282  {
283  $('.item').removeClass('selected');
284  $('.item').removeAttr('id');
285  $(a).parent().parent().addClass('selected');
286  $(a).parent().parent().attr('id','selected');
287  }
288  var anchor = $(aname);
289  gotoAnchor(anchor,aname,true);
290  };
291  } else {
292  a.href = url;
293  a.onclick = function() { storeLink(link); }
294  }
295  } else {
296  if (childrenData != null)
297  {
298  a.className = "nolink";
299  a.href = "javascript:void(0)";
300  a.onclick = node.expandToggle.onclick;
301  }
302  }
303 
304  node.childrenUL = null;
305  node.getChildrenUL = function() {
306  if (!node.childrenUL) {
307  node.childrenUL = document.createElement("ul");
308  node.childrenUL.className = "children_ul";
309  node.childrenUL.style.display = "none";
310  node.li.appendChild(node.childrenUL);
311  }
312  return node.childrenUL;
313  };
314 
315  return node;
316 }
317 
318 function showRoot()
319 {
320  var headerHeight = $("#top").height();
321  var footerHeight = $("#nav-path").height();
322  var windowHeight = $(window).height() - headerHeight - footerHeight;
323  (function (){ // retry until we can scroll to the selected item
324  try {
325  var navtree=$('#nav-tree');
326  navtree.scrollTo('#selected',0,{offset:-windowHeight/2});
327  } catch (err) {
328  setTimeout(arguments.callee, 0);
329  }
330  })();
331 }
332 
333 function expandNode(o, node, imm, showRoot)
334 {
335  if (node.childrenData && !node.expanded) {
336  if (typeof(node.childrenData)==='string') {
337  var varName = node.childrenData;
338  getScript(node.relpath+varName,function(){
339  node.childrenData = getData(varName);
340  expandNode(o, node, imm, showRoot);
341  }, showRoot);
342  } else {
343  if (!node.childrenVisited) {
344  getNode(o, node);
345  } if (imm || ($.browser.msie && $.browser.version>8)) {
346  // somehow slideDown jumps to the start of tree for IE9 :-(
347  $(node.getChildrenUL()).show();
348  } else {
349  $(node.getChildrenUL()).slideDown("fast");
350  }
351  if (node.isLast) {
352  node.plus_img.src = node.relpath+"ftv2mlastnode.png";
353  } else {
354  node.plus_img.src = node.relpath+"ftv2mnode.png";
355  }
356  node.expanded = true;
357  }
358  }
359 }
360 
361 function glowEffect(n,duration)
362 {
363  n.addClass('glow').delay(duration).queue(function(next){
364  $(this).removeClass('glow');next();
365  });
366 }
367 
368 function highlightAnchor()
369 {
370  var aname = hashUrl();
371  var anchor = $(aname);
372  if (anchor.parent().attr('class')=='memItemLeft'){
373  var rows = $('.memberdecls tr[class$="'+hashValue()+'"]');
374  glowEffect(rows.children(),300); // member without details
375  } else if (anchor.parent().attr('class')=='fieldname'){
376  glowEffect(anchor.parent().parent(),1000); // enum value
377  } else if (anchor.parent().attr('class')=='fieldtype'){
378  glowEffect(anchor.parent().parent(),1000); // struct field
379  } else if (anchor.parent().is(":header")) {
380  glowEffect(anchor.parent(),1000); // section header
381  } else {
382  glowEffect(anchor.next(),1000); // normal member
383  }
384  gotoAnchor(anchor,aname,false);
385 }
386 
387 function selectAndHighlight(hash,n)
388 {
389  var a;
390  if (hash) {
391  var link=stripPath(pathName())+':'+hash.substring(1);
392  a=$('.item a[class$="'+link+'"]');
393  }
394  if (a && a.length) {
395  a.parent().parent().addClass('selected');
396  a.parent().parent().attr('id','selected');
397  highlightAnchor();
398  } else if (n) {
399  $(n.itemDiv).addClass('selected');
400  $(n.itemDiv).attr('id','selected');
401  }
402  if ($('#nav-tree-contents .item:first').hasClass('selected')) {
403  $('#nav-sync').css('top','30px');
404  } else {
405  $('#nav-sync').css('top','5px');
406  }
407  showRoot();
408 }
409 
410 function showNode(o, node, index, hash)
411 {
412  if (node && node.childrenData) {
413  if (typeof(node.childrenData)==='string') {
414  var varName = node.childrenData;
415  getScript(node.relpath+varName,function(){
416  node.childrenData = getData(varName);
417  showNode(o,node,index,hash);
418  },true);
419  } else {
420  if (!node.childrenVisited) {
421  getNode(o, node);
422  }
423  $(node.getChildrenUL()).css({'display':'block'});
424  if (node.isLast) {
425  node.plus_img.src = node.relpath+"ftv2mlastnode.png";
426  } else {
427  node.plus_img.src = node.relpath+"ftv2mnode.png";
428  }
429  node.expanded = true;
430  var n = node.children[o.breadcrumbs[index]];
431  if (index+1<o.breadcrumbs.length) {
432  showNode(o,n,index+1,hash);
433  } else {
434  if (typeof(n.childrenData)==='string') {
435  var varName = n.childrenData;
436  getScript(n.relpath+varName,function(){
437  n.childrenData = getData(varName);
438  node.expanded=false;
439  showNode(o,node,index,hash); // retry with child node expanded
440  },true);
441  } else {
442  var rootBase = stripPath(o.toroot.replace(/\..+$/, ''));
443  if (rootBase=="index" || rootBase=="pages" || rootBase=="search") {
444  expandNode(o, n, true, true);
445  }
446  selectAndHighlight(hash,n);
447  }
448  }
449  }
450  } else {
451  selectAndHighlight(hash);
452  }
453 }
454 
455 function removeToInsertLater(element) {
456  var parentNode = element.parentNode;
457  var nextSibling = element.nextSibling;
458  parentNode.removeChild(element);
459  return function() {
460  if (nextSibling) {
461  parentNode.insertBefore(element, nextSibling);
462  } else {
463  parentNode.appendChild(element);
464  }
465  };
466 }
467 
468 function getNode(o, po)
469 {
470  var insertFunction = removeToInsertLater(po.li);
471  po.childrenVisited = true;
472  var l = po.childrenData.length-1;
473  for (var i in po.childrenData) {
474  var nodeData = po.childrenData[i];
475  po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2],
476  i==l);
477  }
478  insertFunction();
479 }
480 
481 function gotoNode(o,subIndex,root,hash,relpath)
482 {
483  var nti = navTreeSubIndices[subIndex][root+hash];
484  o.breadcrumbs = $.extend(true, [], nti ? nti : navTreeSubIndices[subIndex][root]);
485  if (!o.breadcrumbs && root!=NAVTREE[0][1]) { // fallback: show index
486  navTo(o,NAVTREE[0][1],"",relpath);
487  $('.item').removeClass('selected');
488  $('.item').removeAttr('id');
489  }
490  if (o.breadcrumbs) {
491  o.breadcrumbs.unshift(0); // add 0 for root node
492  showNode(o, o.node, 0, hash);
493  }
494 }
495 
496 function navTo(o,root,hash,relpath)
497 {
498  var link = cachedLink();
499  if (link) {
500  var parts = link.split('#');
501  root = parts[0];
502  if (parts.length>1) hash = '#'+parts[1].replace(/[^\w\-]/g,'');
503  else hash='';
504  }
505  if (hash.match(/^#l\d+$/)) {
506  var anchor=$('a[name='+hash.substring(1)+']');
507  glowEffect(anchor.parent(),1000); // line number
508  hash=''; // strip line number anchors
509  }
510  var url=root+hash;
511  var i=-1;
512  while (NAVTREEINDEX[i+1]<=url) i++;
513  if (i==-1) { i=0; root=NAVTREE[0][1]; } // fallback: show index
514  if (navTreeSubIndices[i]) {
515  gotoNode(o,i,root,hash,relpath)
516  } else {
517  getScript(relpath+'navtreeindex'+i,function(){
518  navTreeSubIndices[i] = eval('NAVTREEINDEX'+i);
519  if (navTreeSubIndices[i]) {
520  gotoNode(o,i,root,hash,relpath);
521  }
522  },true);
523  }
524 }
525 
526 function showSyncOff(n,relpath)
527 {
528  n.html('<img src="'+relpath+'sync_off.png" title="'+SYNCOFFMSG+'"/>');
529 }
530 
531 function showSyncOn(n,relpath)
532 {
533  n.html('<img src="'+relpath+'sync_on.png" title="'+SYNCONMSG+'"/>');
534 }
535 
536 function toggleSyncButton(relpath)
537 {
538  var navSync = $('#nav-sync');
539  if (navSync.hasClass('sync')) {
540  navSync.removeClass('sync');
541  showSyncOff(navSync,relpath);
543  } else {
544  navSync.addClass('sync');
545  showSyncOn(navSync,relpath);
546  deleteLink();
547  }
548 }
549 
550 function initNavTree(toroot,relpath)
551 {
552  var o = new Object();
553  o.toroot = toroot;
554  o.node = new Object();
555  o.node.li = document.getElementById("nav-tree-contents");
556  o.node.childrenData = NAVTREE;
557  o.node.children = new Array();
558  o.node.childrenUL = document.createElement("ul");
559  o.node.getChildrenUL = function() { return o.node.childrenUL; };
560  o.node.li.appendChild(o.node.childrenUL);
561  o.node.depth = 0;
562  o.node.relpath = relpath;
563  o.node.expanded = false;
564  o.node.isLast = true;
565  o.node.plus_img = document.createElement("img");
566  o.node.plus_img.src = relpath+"ftv2pnode.png";
567  o.node.plus_img.width = 16;
568  o.node.plus_img.height = 22;
569 
570  if (localStorageSupported()) {
571  var navSync = $('#nav-sync');
572  if (cachedLink()) {
573  showSyncOff(navSync,relpath);
574  navSync.removeClass('sync');
575  } else {
576  showSyncOn(navSync,relpath);
577  }
578  navSync.click(function(){ toggleSyncButton(relpath); });
579  }
580 
581  $(window).load(function(){
582  navTo(o,toroot,hashUrl(),relpath);
583  showRoot();
584  });
585 
586  $(window).bind('hashchange', function(){
587  if (window.location.hash && window.location.hash.length>1){
588  var a;
589  if ($(location).attr('hash')){
590  var clslink=stripPath(pathName())+':'+hashValue();
591  a=$('.item a[class$="'+clslink.replace(/</g,'\\3c ')+'"]');
592  }
593  if (a==null || !$(a).parent().parent().hasClass('selected')){
594  $('.item').removeClass('selected');
595  $('.item').removeAttr('id');
596  }
597  var link=stripPath2(pathName());
598  navTo(o,link,hashUrl(),relpath);
599  } else if (!animationInProgress) {
600  $('#doc-content').scrollTop(0);
601  $('.item').removeClass('selected');
602  $('.item').removeAttr('id');
603  navTo(o,toroot,hashUrl(),relpath);
604  }
605  })
606 }
607 
g[c]
Definition: jquery.js:71
function a
Definition: jquery.js:41
b fn css
Definition: jquery.js:28
moTypes MOint moText moParamIndex moParamReference int iRow int int i int i
Definition: all_f.js:18
The Alpha (or transparency) of a color.
Definition: moOGLFT.h:89
window
Definition: jquery.js:31
function e
Definition: jquery.js:71
var navtree
Definition: resize.js:2
function d
Definition: jquery.js:41