# HG changeset patch # User Benjamin Golinvaux # Date 1582294829 -3600 # Node ID 7def6ab2929fd8a2e038441eafb3563aa1d38679 # Parent 343aa1dfaa9091e56653d5076a6a2a0f4349da26 Removal of debugging logs diff -r 343aa1dfaa90 -r 7def6ab2929f Applications/Generic/GuiAdapter.cpp --- a/Applications/Generic/GuiAdapter.cpp Wed Feb 19 17:05:08 2020 +0100 +++ b/Applications/Generic/GuiAdapter.cpp Fri Feb 21 15:20:29 2020 +0100 @@ -36,15 +36,6 @@ namespace OrthancStone { -#if 0 - void GuiAdapter::RegisterWidget(boost::shared_ptr widget) - { - LOG(INFO) << "GuiAdapter::RegisterWidget" - - widgets_.push_back(widget); - } -#endif - std::ostream& operator<<( std::ostream& os, const GuiAdapterKeyboardEvent& event) { diff -r 343aa1dfaa90 -r 7def6ab2929f Applications/Generic/GuiAdapter.h --- a/Applications/Generic/GuiAdapter.h Wed Feb 19 17:05:08 2020 +0100 +++ b/Applications/Generic/GuiAdapter.h Fri Feb 21 15:20:29 2020 +0100 @@ -235,11 +235,6 @@ instanceCount = 1; } - -#if 0 - void RegisterWidget(boost::shared_ptr widget); -#endif - /** emscripten_set_resize_callback("#window", NULL, false, OnWindowResize); @@ -364,24 +359,5 @@ deals with this) */ void ViewportsUpdateSize(); - - -#if 0 - std::vector > widgets_; - - template void VisitWidgets(F func) - { - for (size_t i = 0; i < widgets_.size(); i++) - { - boost::shared_ptr widget = widgets_[i].lock(); - - // TODO: we need to clean widgets! - if (widget.get() != NULL) - { - func(widget); - } - } - } -#endif }; } diff -r 343aa1dfaa90 -r 7def6ab2929f Framework/Scene2D/FloatTextureSceneLayer.cpp --- a/Framework/Scene2D/FloatTextureSceneLayer.cpp Wed Feb 19 17:05:08 2020 +0100 +++ b/Framework/Scene2D/FloatTextureSceneLayer.cpp Fri Feb 21 15:20:29 2020 +0100 @@ -41,29 +41,6 @@ Orthanc::ImageProcessing::Convert(*t, texture); - if (OrthancStone_Internals_dump_LoadTexture_histogram == 1) - { - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "| This is not an error! |"; - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "Work on the \"invisible slice\" bug"; - LOG(INFO) << "in FloatTextureSceneLayer::FloatTextureSceneLayer"; - LOG(INFO) << "will dump \"t\" after \"Orthanc::ImageProcessing::Convert(*t, texture);\""; - - HistogramData hd; - double minValue = 0; - double maxValue = 0; - ComputeMinMax(*t, minValue, maxValue); - double binSize = (maxValue - minValue) * 0.01; - ComputeHistogram(*t, hd, binSize); - std::string s; - DumpHistogramResult(s, hd); - LOG(INFO) << s; - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "| end of debug dump |"; - LOG(INFO) << "+----------------------------------------+"; - } - SetTexture(t.release()); } diff -r 343aa1dfaa90 -r 7def6ab2929f Framework/Volumes/DicomVolumeImageMPRSlicer.cpp --- a/Framework/Volumes/DicomVolumeImageMPRSlicer.cpp Wed Feb 19 17:05:08 2020 +0100 +++ b/Framework/Volumes/DicomVolumeImageMPRSlicer.cpp Fri Feb 21 15:20:29 2020 +0100 @@ -85,33 +85,6 @@ const DicomInstanceParameters& parameters = volume_.GetDicomParameters(); ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_); - if (OrthancStone_Internals_dump_LoadTexture_histogram == 1) - { - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "| This is not an error! |"; - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "Work on the \"invisible slice\" bug"; - LOG(INFO) << "DicomVolumeImageMPRSlicer::Slice::CreateSceneLayer"; - LOG(INFO) << "InvisibleSlice -- about to dump histogram (100 buckets) for volume_ " - << "with OrthancId: " << parameters.GetOrthancInstanceIdentifier() - << " and SopInstanceUid: " << parameters.GetSopInstanceUid() - << " for projection_ (AxiCorSag): projection_ " - << " and slice: " << sliceIndex_; - - HistogramData hd; - double minValue = 0; - double maxValue = 0; - ComputeMinMax(reader.GetAccessor(), minValue, maxValue); - double binSize = (maxValue - minValue) * 0.01; - ComputeHistogram(reader.GetAccessor(), hd, binSize); - std::string s; - DumpHistogramResult(s, hd); - LOG(INFO) << s; - LOG(INFO) << "+----------------------------------------+"; - LOG(INFO) << "| end of debug dump |"; - LOG(INFO) << "+----------------------------------------+"; - } - texture.reset(dynamic_cast (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters)));