comparison Framework/Widgets/LayerWidget.cpp @ 86:02c3a7a4938f wasm

removing of the Start() mechanism
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 13:42:50 +0200
parents bd48431ac285
children 4a541cd4fa83
comparison
equal deleted inserted replaced
85:bd48431ac285 86:02c3a7a4938f
449 size_t index; 449 size_t index;
450 450
451 if (LookupLayer(index, source) && 451 if (LookupLayer(index, source) &&
452 slice.IsSamePlane(slice_, THIN_SLICE_THICKNESS)) // Whether the slice comes from an older request 452 slice.IsSamePlane(slice_, THIN_SLICE_THICKNESS)) // Whether the slice comes from an older request
453 { 453 {
454 LOG(ERROR) << "Error on layer " << index; 454 LOG(INFO) << "Unable to load a slice from layer " << index;
455 455
456 double x1, y1, x2, y2; 456 double x1, y1, x2, y2;
457 if (GetAndFixExtent(x1, y1, x2, y2, source)) 457 if (GetAndFixExtent(x1, y1, x2, y2, source))
458 { 458 {
459 UpdateLayer(index, new MissingLayerRenderer(x1, y1, x2, y2), Slice(slice, THIN_SLICE_THICKNESS)); 459 UpdateLayer(index, new MissingLayerRenderer(x1, y1, x2, y2), Slice(slice, THIN_SLICE_THICKNESS));
460 } 460 }
461 } 461 }
462 } 462 }
463
464
465 void LayerWidget::Start()
466 {
467 if (started_)
468 {
469 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
470 }
471
472 for (size_t i = 0; i < layers_.size(); i++)
473 {
474 assert(layers_[i] != NULL);
475 layers_[i]->Start();
476 }
477 }
478 } 463 }