| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- var Editor = function () {
- var SIGNALS = signals;
- this.signals = {
- // actions
- flattenSelectedObject: new SIGNALS.Signal(),
- cloneSelectedObject: new SIGNALS.Signal(),
- removeSelectedObject: new SIGNALS.Signal(),
- playAnimations: new SIGNALS.Signal(),
- // notifications
- transformModeChanged: new SIGNALS.Signal(),
- snapChanged: new SIGNALS.Signal(),
- rendererChanged: new SIGNALS.Signal(),
- sceneAdded: new SIGNALS.Signal(),
- sceneChanged: new SIGNALS.Signal(),
- objectAdded: new SIGNALS.Signal(),
- objectSelected: new SIGNALS.Signal(),
- objectChanged: new SIGNALS.Signal(),
- materialChanged: new SIGNALS.Signal(),
- clearColorChanged: new SIGNALS.Signal(),
- fogTypeChanged: new SIGNALS.Signal(),
- fogColorChanged: new SIGNALS.Signal(),
- fogParametersChanged: new SIGNALS.Signal(),
- windowResize: new SIGNALS.Signal()
- };
- this.scene = new THREE.Scene();
- this.object = {};
- this.geometries = {};
- this.materials = {};
- this.textures = {};
- };
- Editor.prototype = {
- setScene: function ( scene ) {
- },
- //
- addObject: function ( object, parent ) {
- },
- addGeometry: function ( geometry ) {
- },
- addMaterial: function ( material ) {
- },
- addTexture: function ( texture ) {
- },
- //
- addHelper: function ( object ) {
- },
- removeHelper: function ( object ) {
- },
- //
- select: function ( object ) {
- },
- deselect: function ( object ) {
- },
- //
- cloneObject: function ( object ) {
- },
- flattenObject: function ( object ) {
- },
- deleteObject: function ( object ) {
- }
- }
|