History

resolve conflicts on merge with upstream master

Stephen Birarda committed 12 years ago

Commit 599e3bb2 parents 4ea14a5 bd6418d44 files · +486 −892Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+6−6
@@ -1604,13 +1604,13 @@ void VoxelSystem::falseColorizeBySource() { · 1603 unmodified lines
1604 };1604 };
1605 1605
1606 // create a bunch of colors we'll use during colorization1606 // create a bunch of colors we'll use during colorization
1607 NodeList* nodeList = NodeList::getInstance();1607
1608 for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {1608 foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
1609 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {1609 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
1610 uint16_t nodeID = VoxelTreeElement::getSourceNodeUUIDKey(node->getUUID());1610 uint16_t nodeID = VoxelTreeElement::getSourceNodeUUIDKey(node->getUUID());
1611 int groupColor = voxelServerCount % NUMBER_OF_COLOR_GROUPS;1611 int groupColor = voxelServerCount % NUMBER_OF_COLOR_GROUPS;
1612 args.colors[nodeID] = groupColors[groupColor];1612 args.colors[nodeID] = groupColors[groupColor];
1613 1613
1614 if (groupColors[groupColor].red > 0) {1614 if (groupColors[groupColor].red > 0) {
1615 groupColors[groupColor].red = ((groupColors[groupColor].red - MIN_COLOR)/2) + MIN_COLOR;1615 groupColors[groupColor].red = ((groupColors[groupColor].red - MIN_COLOR)/2) + MIN_COLOR;
1616 }1616 }
@@ -1620,7 +1620,7 @@ void VoxelSystem::falseColorizeBySource() { · 3 unmodified lines
1620 if (groupColors[groupColor].blue > 0) {1620 if (groupColors[groupColor].blue > 0) {
1621 groupColors[groupColor].blue = ((groupColors[groupColor].blue - MIN_COLOR)/2) + MIN_COLOR;1621 groupColors[groupColor].blue = ((groupColors[groupColor].blue - MIN_COLOR)/2) + MIN_COLOR;
1622 }1622 }
1623 1623
1624 voxelServerCount++;1624 voxelServerCount++;
1625 }1625 }
1626 }1626 }
@@ -2683,7 +2683,7 @@ void VoxelSystem::falseColorizeOccludedV2() { · 1056 unmodified lines
2683 setupNewVoxelsForDrawing();2683 setupNewVoxelsForDrawing();
2684}2684}
2685 2685
2686void VoxelSystem::nodeAdded(Node* node) {2686void VoxelSystem::nodeAdded(SharedNodePointer node) {
2687 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {2687 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
2688 qDebug("VoxelSystem... voxel server %s added...", node->getUUID().toString().toLocal8Bit().constData());2688 qDebug("VoxelSystem... voxel server %s added...", node->getUUID().toString().toLocal8Bit().constData());
2689 _voxelServerCount++;2689 _voxelServerCount++;
@@ -2704,7 +2704,7 @@ bool VoxelSystem::killSourceVoxelsOperation(OctreeElement* element, void* extraD · 14 unmodified lines
2704 return true;2704 return true;
2705}2705}
2706 2706
2707void VoxelSystem::nodeKilled(Node* node) {2707void VoxelSystem::nodeKilled(SharedNodePointer node) {
2708 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {2708 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
2709 _voxelServerCount--;2709 _voxelServerCount--;
2710 QUuid nodeUUID = node->getUUID();2710 QUuid nodeUUID = node->getUUID();