Editor.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. var Editor = function () {
  2. var SIGNALS = signals;
  3. this.signals = {
  4. // actions
  5. flattenSelectedObject: new SIGNALS.Signal(),
  6. cloneSelectedObject: new SIGNALS.Signal(),
  7. removeSelectedObject: new SIGNALS.Signal(),
  8. playAnimations: new SIGNALS.Signal(),
  9. // notifications
  10. transformModeChanged: new SIGNALS.Signal(),
  11. snapChanged: new SIGNALS.Signal(),
  12. rendererChanged: new SIGNALS.Signal(),
  13. sceneAdded: new SIGNALS.Signal(),
  14. sceneChanged: new SIGNALS.Signal(),
  15. objectAdded: new SIGNALS.Signal(),
  16. objectSelected: new SIGNALS.Signal(),
  17. objectChanged: new SIGNALS.Signal(),
  18. materialChanged: new SIGNALS.Signal(),
  19. clearColorChanged: new SIGNALS.Signal(),
  20. fogTypeChanged: new SIGNALS.Signal(),
  21. fogColorChanged: new SIGNALS.Signal(),
  22. fogParametersChanged: new SIGNALS.Signal(),
  23. windowResize: new SIGNALS.Signal()
  24. };
  25. this.scene = new THREE.Scene();
  26. this.object = {};
  27. this.geometries = {};
  28. this.materials = {};
  29. this.textures = {};
  30. };
  31. Editor.prototype = {
  32. setScene: function ( scene ) {
  33. },
  34. //
  35. addObject: function ( object, parent ) {
  36. },
  37. addGeometry: function ( geometry ) {
  38. },
  39. addMaterial: function ( material ) {
  40. },
  41. addTexture: function ( texture ) {
  42. },
  43. //
  44. addHelper: function ( object ) {
  45. },
  46. removeHelper: function ( object ) {
  47. },
  48. //
  49. select: function ( object ) {
  50. },
  51. deselect: function ( object ) {
  52. },
  53. //
  54. cloneObject: function ( object ) {
  55. },
  56. flattenObject: function ( object ) {
  57. },
  58. deleteObject: function ( object ) {
  59. }
  60. }
粤ICP备19079148号