comparison layer/SliceLayer.cpp @ 586:1ae54a29e59e

Merge from debug-output branch
author Chris Cannam
date Tue, 14 Jun 2011 14:48:29 +0100
parents f4960f8ce798
children 4806715f7a19
comparison
equal deleted inserted replaced
583:4c484636d5ec 586:1ae54a29e59e
71 } 71 }
72 72
73 void 73 void
74 SliceLayer::sliceableModelReplaced(const Model *orig, const Model *replacement) 74 SliceLayer::sliceableModelReplaced(const Model *orig, const Model *replacement)
75 { 75 {
76 std::cerr << "SliceLayer::sliceableModelReplaced(" << orig << ", " << replacement << ")" << std::endl; 76 DEBUG << "SliceLayer::sliceableModelReplaced(" << orig << ", " << replacement << ")" << endl;
77 77
78 if (orig == m_sliceableModel) { 78 if (orig == m_sliceableModel) {
79 setSliceableModel 79 setSliceableModel
80 (dynamic_cast<const DenseThreeDimensionalModel *>(replacement)); 80 (dynamic_cast<const DenseThreeDimensionalModel *>(replacement));
81 } 81 }
82 } 82 }
83 83
84 void 84 void
85 SliceLayer::modelAboutToBeDeleted(Model *m) 85 SliceLayer::modelAboutToBeDeleted(Model *m)
86 { 86 {
87 std::cerr << "SliceLayer::modelAboutToBeDeleted(" << m << ")" << std::endl; 87 DEBUG << "SliceLayer::modelAboutToBeDeleted(" << m << ")" << endl;
88 88
89 if (m == m_sliceableModel) { 89 if (m == m_sliceableModel) {
90 setSliceableModel(0); 90 setSliceableModel(0);
91 } 91 }
92 } 92 }