1 /** 2 * potree.js 3 * http://potree.org 4 * 5 * Copyright 2012, Markus Sch�tz 6 * Licensed under the GPL Version 2 or later. 7 * - http://potree.org/wp/?page_id=7 8 * - http://www.gnu.org/licenses/gpl-3.0.html 9 * 10 */ 11 12 13 /** 14 * 15 * @param name 16 * @param mno 17 * @param parent 18 * @class 19 * @augments SceneNode 20 */ 21 function PointcloudOctreeSceneNode(mno, parent){ 22 SceneNode.call(this, name, parent); 23 this.mno = mno; 24 25 } 26 27 PointcloudOctreeSceneNode.prototype = new SceneNode(inheriting); 28 PointcloudOctreeSceneNode.base = SceneNode.prototype; 29 30 PointcloudOctreeSceneNode.prototype.render = function(camera, lights) { 31 32 if(this.mno == null){ 33 return; 34 } 35 if(!this.visible){ 36 return; 37 } 38 39 this.mno.render(this, camera, lights); 40 }; 41 42 PointcloudOctreeSceneNode.prototype.addTime = function addTime(time){ 43 this.age += time; 44 45 this.mno.addTime(time); 46 }; 47 48