Showing the changes to interface/src/VoxelSystem.cpp (1 of 11 files). Show all
Unified · Split
| @@ -113,15 +113,15 @@ void VoxelSystem::parseData(void *data, int size) { · 112 unmodified lines | ||
| 113 | 113 | unsigned char *voxelData = (unsigned char *) data + 1; |
| 114 | 114 | |
| 115 | 115 | switch(command) { |
| 116 | − case 'V': | |
| 116 | + case PACKET_HEADER_VOXEL_DATA: | |
| 117 | 117 | // ask the VoxelTree to read the bitstream into the tree |
| 118 | 118 | tree->readBitstreamToTree(voxelData, size - 1); |
| 119 | 119 | break; |
| 120 | − case 'R': | |
| 120 | + case PACKET_HEADER_ERASE_VOXEL: | |
| 121 | 121 | // ask the tree to read the "remove" bitstream |
| 122 | 122 | tree->processRemoveVoxelBitstream((unsigned char*)data,size); |
| 123 | 123 | break; |
| 124 | − case 'Z': | |
| 124 | + case PACKET_HEADER_Z_COMMAND: | |
| 125 | 125 | |
| 126 | 126 | // the Z command is a special command that allows the sender to send high level semantic |
| 127 | 127 | // requests, like erase all, or add sphere scene, different receivers may handle these |