comparison Framework/Widgets/LayerWidget.cpp @ 278:8a86695fcbc3 am-2

renamings
author am@osimis.io
date Mon, 27 Aug 2018 14:58:37 +0200
parents f21ba2468570
children 3897f9f28cfa
comparison
equal deleted inserted replaced
277:a38465cc909f 278:8a86695fcbc3
339 339
340 if (currentScene_.get() != NULL && 340 if (currentScene_.get() != NULL &&
341 currentScene_->ContainsPlane(slice)) 341 currentScene_->ContainsPlane(slice))
342 { 342 {
343 currentScene_->SetLayer(index, tmp.release()); 343 currentScene_->SetLayer(index, tmp.release());
344 NotifyChange(); 344 NotifyContentChanged();
345 } 345 }
346 else if (pendingScene_.get() != NULL && 346 else if (pendingScene_.get() != NULL &&
347 pendingScene_->ContainsPlane(slice)) 347 pendingScene_->ContainsPlane(slice))
348 { 348 {
349 pendingScene_->SetLayer(index, tmp.release()); 349 pendingScene_->SetLayer(index, tmp.release());
351 if (currentScene_.get() == NULL || 351 if (currentScene_.get() == NULL ||
352 !currentScene_->IsComplete() || 352 !currentScene_->IsComplete() ||
353 pendingScene_->IsComplete()) 353 pendingScene_->IsComplete())
354 { 354 {
355 currentScene_ = pendingScene_; 355 currentScene_ = pendingScene_;
356 NotifyChange(); 356 NotifyContentChanged();
357 } 357 }
358 } 358 }
359 } 359 }
360 360
361 361
461 if (pendingScene_.get() != NULL) 461 if (pendingScene_.get() != NULL)
462 { 462 {
463 pendingScene_->SetLayerStyle(layer, style); 463 pendingScene_->SetLayerStyle(layer, style);
464 } 464 }
465 465
466 NotifyChange(); 466 NotifyContentChanged();
467 } 467 }
468 468
469 469
470 void LayerWidget::SetSlice(const CoordinateSystem3D& slice) 470 void LayerWidget::SetSlice(const CoordinateSystem3D& slice)
471 { 471 {