History

Added false colorization by voxel server source - switched readBitstreamToTree() to take params struct for future expansion - switched readNodeData() to take params for future expansion - added sourceID to VoxelNode - fixed false colorize routines to correctly redraw by marking tree as dirty

ZappoMan committed 13 years ago

Commit c7e3fe51 parent 620fe129 files · +165 −30Browse files

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

Unified · Split

interface/src/Application.cpp+7−0
@@ -1361,6 +1361,10 @@ void Application::doFalseColorizeOccludedV2() { · 1360 unmodified lines
13611361 _voxels.falseColorizeOccludedV2();
13621362 }
13631363
1364+void Application::doFalseColorizeBySource() {
1365+ _voxels.falseColorizeBySource();
1366+}
1367+
13641368 void Application::doTrueVoxelColors() {
13651369 _voxels.trueColorize();
13661370 }
@@ -1837,6 +1841,7 @@ void Application::initMenu() { · 470 unmodified lines
18371841 renderDebugMenu->addAction("FALSE Color Voxel Out of View", this, SLOT(doFalseColorizeInView()));
18381842 renderDebugMenu->addAction("FALSE Color Occluded Voxels", this, SLOT(doFalseColorizeOccluded()), Qt::CTRL | Qt::Key_O);
18391843 renderDebugMenu->addAction("FALSE Color Occluded V2 Voxels", this, SLOT(doFalseColorizeOccludedV2()), Qt::CTRL | Qt::Key_P);
1844+ renderDebugMenu->addAction("FALSE Color By Source", this, SLOT(doFalseColorizeBySource()), Qt::CTRL | Qt::SHIFT | Qt::Key_S);
18401845 renderDebugMenu->addAction("Show TRUE Colors", this, SLOT(doTrueVoxelColors()), Qt::CTRL | Qt::Key_T);
18411846
18421847 (_shouldLowPassFilter = debugMenu->addAction("Test: LowPass filter"))->setCheckable(true);
@@ -3518,7 +3523,9 @@ void* Application::networkReceive(void* args) { · 1675 unmodified lines
35183523 if (messageData[0] == PACKET_TYPE_ENVIRONMENT_DATA) {
35193524 app->_environment.parseData(&senderAddress, messageData, messageLength);
35203525 } else {
3526+ app->_voxels.setDataSourceID(voxelServer->getNodeID());
35213527 app->_voxels.parseData(messageData, messageLength);
3528+ app->_voxels.setDataSourceID(UNKNOWN_NODE_ID);
35223529 }
35233530
35243531 voxelServer->unlock();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t