Showing the changes to interface/src/VoxelSystem.cpp (1 of 9 files). Show all
Unified · Split
| @@ -139,6 +139,22 @@ bool VoxelSystem::readFromSVOFile(const char* filename) { · 138 unmodified lines | ||
| 139 | 139 | return result; |
| 140 | 140 | } |
| 141 | 141 | |
| 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 | + | |
| 142 | 158 | long int VoxelSystem::getVoxelsCreated() { |
| 143 | 159 | return _tree->voxelsCreated; |
| 144 | 160 | } |