comparison document/Document.cpp @ 95:2678a1f132d2

* Add slice layers (so you can display a slice of a colour 3d plot as if it were a spectrum) * Make spectrum layer a subclass of slice layer
author Chris Cannam
date Fri, 26 Jan 2007 16:59:57 +0000
parents 41c491657587
children dd11619b73ba
comparison
equal deleted inserted replaced
94:5828afd1d229 95:2678a1f132d2
486 { 486 {
487 if (model && 487 if (model &&
488 model != m_mainModel && 488 model != m_mainModel &&
489 m_models.find(model) == m_models.end()) { 489 m_models.find(model) == m_models.end()) {
490 std::cerr << "ERROR: Document::setModel: Layer " << layer 490 std::cerr << "ERROR: Document::setModel: Layer " << layer
491 << " is using unregistered model " << model 491 << " (\"" << layer->objectName().toStdString()
492 << "\") wants to use unregistered model " << model
492 << ": register the layer's model before setting it!" 493 << ": register the layer's model before setting it!"
493 << std::endl; 494 << std::endl;
494 return; 495 return;
495 } 496 }
496 497