a:23:{s:9:"#provides";s:22:"dojox.charting.Chart3D";s:9:"#resource";s:19:"charting/Chart3D.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:11:"dojox.gfx3d";}}s:22:"dojox.charting.Chart3D";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:6:"lights";a:1:{s:4:"type";s:0:"";}s:6:"camera";a:1:{s:4:"type";s:0:"";}s:5:"theme";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:708:"dojo.provide("dojox.charting.Chart3D"); dojo.require("dojox.gfx3d"); (function(){ var observerVector = {x: 0, y: 0, z: 1}, v = dojox.gfx3d.vector, n = dojox.gfx.normalizedLength; dojo.declare("dojox.charting.Chart3D", null, { constructor: function(node, lights, camera, theme){ // setup a view this.node = dojo.byId(node); this.surface = dojox.gfx.createSurface(this.node, n(this.node.style.width), n(this.node.style.height)); this.view = this.surface.createViewport(); this.view.setLights(lights.lights, lights.ambient, lights.specular); this.view.setCameraTransform(camera); this.theme = theme; // initialize internal variables this.walls = []; this.plots = [];";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:31:"dojox.charting.Chart3D.generate";a:4:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:6:"source";s:49:" return this._generateWalls()._generatePlots();";s:7:"summary";s:0:"";}s:33:"dojox.charting.Chart3D.invalidate";a:4:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:6:"source";s:42:" this.view.invalidate(); return this;";s:7:"summary";s:0:"";}s:29:"dojox.charting.Chart3D.render";a:4:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:6:"source";s:38:" this.view.render(); return this;";s:7:"summary";s:0:"";}s:30:"dojox.charting.Chart3D.addPlot";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"plot";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:38:" return this._add(this.plots, plot);";s:7:"summary";s:0:"";}s:33:"dojox.charting.Chart3D.removePlot";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"plot";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:41:" return this._remove(this.plots, plot);";s:7:"summary";s:0:"";}s:30:"dojox.charting.Chart3D.addWall";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"wall";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:38:" return this._add(this.walls, wall);";s:7:"summary";s:0:"";}s:33:"dojox.charting.Chart3D.removeWall";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"wall";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:41:" return this._remove(this.walls, wall);";s:7:"summary";s:0:"";}s:27:"dojox.charting.Chart3D._add";a:6:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"array";a:1:{s:4:"type";s:0:"";}s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:130:" if(!dojo.some(array, function(i){ return i == item; })){ array.push(item); this.view.invalidate(); } return this;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:30:"dojox.charting.Chart3D._remove";a:6:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"array";a:1:{s:4:"type";s:0:"";}s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:139:" var a = dojo.filter(array, function(i){ return i != item; }); return a.length < array.length ? (array = a, this.invalidate()) : this;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:37:"dojox.charting.Chart3D._generateWalls";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:6:"source";s:172:" for(var i = 0; i < this.walls.length; ++i){ if(v.dotProduct(observerVector, this.walls[i].normal) > 0){ this.walls[i].generate(this); } } return this;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:37:"dojox.charting.Chart3D._generatePlots";a:5:{s:9:"prototype";s:22:"dojox.charting.Chart3D";s:4:"type";s:8:"Function";s:6:"source";s:349:" var depth = 0, m = dojox.gfx3d.matrix, i = 0; for(; i < this.plots.length; ++i){ depth += this.plots[i].getDepth(); } for(--i; i >= 0; --i){ var scene = this.view.createScene(); scene.setTransform(m.translate(0, 0, -depth)); this.plots[i].generate(this, scene); depth -= this.plots[i].getDepth(); } return this;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dojox.charting.Chart3D.node";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:30:"dojox.charting.Chart3D.surface";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:27:"dojox.charting.Chart3D.view";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:28:"dojox.charting.Chart3D.theme";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:28:"dojox.charting.Chart3D.walls";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:28:"dojox.charting.Chart3D.plots";a:2:{s:8:"instance";s:22:"dojox.charting.Chart3D";s:7:"summary";s:0:"";}s:14:"dojox.charting";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}