Removed copyTo and pasteFrom from ClipboardScriptingInterface (not useful in the end)

This commit is contained in:
Atlante45 2014-02-28 11:22:14 -08:00
parent 5b085a72cd
commit 41931ebd57
2 changed files with 0 additions and 22 deletions

View file

@ -92,23 +92,4 @@ void ClipboardScriptingInterface::nudgeVoxel(float x, float y, float z, float s,
s / (float)TREE_SCALE };
Application::getInstance()->nudgeVoxelsByVector(sourceVoxel, nudgeVecInTreeSpace);
}
void ClipboardScriptingInterface::copyTo(float x, float y, float z, float s,
const QString source, const QString destination) {
StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
VoxelTreeElement* destinationNode = destinationTree->getVoxelAt(x, y, z, s);
destinationTree->copyFromTreeIntoSubTree(sourceTree.data(), destinationNode);
}
void ClipboardScriptingInterface::pasteFrom(float x, float y, float z, float s,
const QString source, const QString destination) {
StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
VoxelTreeElement* sourceNode = sourceTree->getVoxelAt(x, y, z, s);
destinationTree->copySubTreeIntoNewTree(sourceNode, destinationTree.data(), true);
}

View file

@ -38,9 +38,6 @@ public slots:
void nudgeVoxel(const VoxelDetail& sourceVoxel, const glm::vec3& nudgeVec);
void nudgeVoxel(float x, float y, float z, float s, const glm::vec3& nudgeVec);
void copyTo(float x, float y, float z, float s, const QString source, const QString destination);
void pasteFrom(float x, float y, float z, float s, const QString source, const QString destination);
};
#endif // __interface__Clipboard__