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  * @class
 14  */
 15 function Scene(name){
 16 	this.name = name;
 17 	this.rootNode = new SceneNode("root");
 18 	this.rootNode.scene = this;
 19 	this.cameras = new Object();
 20 	this.cameras["default"] = new Camera("default");
 21 	this.cameras["default"].scene = this;
 22 	this.lights = new Object();
 23 	this.activeCamera = this.cameras["default"];
 24 }
 25 
 26 Object.defineProperty(Scene.prototype, "nodes", {
 27 	get: function(){
 28 		var nodes = new Array();
 29 		nodes.push(this.rootNode);
 30 		nodes.push(this.rootNode.descendants);
 31 	}
 32 });
 33 
 34