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
139 return result;139 return result;
140}140}
141 141
142bool VoxelSystem::readFromSquareARGB32Pixels(const char *filename) {
143 bool result = _tree->readFromSquareARGB32Pixels(filename);
144 if (result) {
145 setupNewVoxelsForDrawing();
146 }
147 return result;
148}
149
150bool VoxelSystem::readFromSchematicFile(const char* filename) {
151 bool result = _tree->readFromSchematicFile(filename);
152 if (result) {
153 setupNewVoxelsForDrawing();
154 }
155 return result;
156}
157
142long int VoxelSystem::getVoxelsCreated() {158long int VoxelSystem::getVoxelsCreated() {
143 return _tree->voxelsCreated;159 return _tree->voxelsCreated;
144}160}