diff --git a/js/API/LatticeAPI.js b/js/API/LatticeAPI.js index 2f84fa3417a43674f4c5a02579c7620292494874..931b71b32ac03ebf7dc19ebf888598c5677362fb 100644 --- a/js/API/LatticeAPI.js +++ b/js/API/LatticeAPI.js @@ -87,6 +87,16 @@ define(['lattice'], function(lattice){ }, + addCellAtIndex: function(){ + + }, + + removeCellAtIndex: function(){ + + }, + + + //general diff --git a/js/API/MaterialAPI.js b/js/API/MaterialAPI.js deleted file mode 100644 index 270fed12221db185a3c4f247d7ea74d0cbc03fe3..0000000000000000000000000000000000000000 --- a/js/API/MaterialAPI.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Created by aghassaei on 9/25/15. - */ - - -define([], function(){ - - - function init(){ - - } - - function set(){ - - } - - function destroy(){ - - } - -}); \ No newline at end of file diff --git a/js/API/MaterialsAPI.js b/js/API/MaterialsAPI.js new file mode 100644 index 0000000000000000000000000000000000000000..0ddf6346b86d185c2b341e4cb8edc6d6271cd4d5 --- /dev/null +++ b/js/API/MaterialsAPI.js @@ -0,0 +1,28 @@ +/** + * Created by aghassaei on 9/25/15. + */ + + +define(['materials'], function(){ + + + return { + + init: function(){ + + }, + + set: function(){ + + }, + + bulkChangeMaterial: function(startMaterial, endMaterial){ + + }, + + destroy: function(){ + + } + } + +}); \ No newline at end of file diff --git a/js/lattice/LatticeBase.js b/js/lattice/LatticeBase.js index bdda21dfefc6ccfa700a0605960a8dd46c336af4..e5a59ef9d4d61382d5a08d39d9af96ccaab78231 100644 --- a/js/lattice/LatticeBase.js +++ b/js/lattice/LatticeBase.js @@ -27,7 +27,6 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre this.sparseCells = [[[null]]];//3D matrix containing highest hierarchical level of cells and null //bind events - this.listenTo(appState, "change:cellMode", this._updateForMode); this.listenTo(appState, "change:cellsVisible", this._setCellVisibility); diff --git a/js/models/AppState.js b/js/models/AppState.js index 28bfb7085f3fbb085c8eb8cc2aa8fc27cd3e788f..d7341932c857724e3f814fe5cf87d6e99c40f5bc 100644 --- a/js/models/AppState.js +++ b/js/models/AppState.js @@ -33,7 +33,7 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], deleteMode: false, highlightMode: true, extrudeMode: false, - cellMode: "cell",//supercell, cell, part, node, beam + cellMode: "cell",//supercell, cell, part, hide cellsVisible: true, superCellIndex: new THREE.Vector3(0,0,0),//offset of superCell adds