History

More work on import interface

atlante45 committed 13 years ago

Commit 68a1c561 parent 3f320d99 files · +334 −247Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 9 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+16−0
@@ -139,6 +139,22 @@ bool VoxelSystem::readFromSVOFile(const char* filename) { · 138 unmodified lines
139139 return result;
140140 }
141141
142+bool VoxelSystem::readFromSquareARGB32Pixels(const char *filename) {
143+ bool result = _tree->readFromSquareARGB32Pixels(filename);
144+ if (result) {
145+ setupNewVoxelsForDrawing();
146+ }
147+ return result;
148+}
149+
150+bool VoxelSystem::readFromSchematicFile(const char* filename) {
151+ bool result = _tree->readFromSchematicFile(filename);
152+ if (result) {
153+ setupNewVoxelsForDrawing();
154+ }
155+ return result;
156+}
157+
142158 long int VoxelSystem::getVoxelsCreated() {
143159 return _tree->voxelsCreated;
144160 }