Mercurial > hg > orthanc-stone
diff Framework/Layers/GrayscaleFrameRenderer.cpp @ 726:4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:43:25 +0200 |
parents | d2c0e347ddc2 |
children |
line wrap: on
line diff
--- a/Framework/Layers/GrayscaleFrameRenderer.cpp Mon May 20 16:26:34 2019 +0200 +++ b/Framework/Layers/GrayscaleFrameRenderer.cpp Tue May 21 11:43:25 2019 +0200 @@ -24,13 +24,13 @@ #include <Core/Images/Image.h> #include <Core/OrthancException.h> -namespace OrthancStone +namespace Deprecated { - CairoSurface* GrayscaleFrameRenderer::GenerateDisplay(const RenderStyle& style) + OrthancStone::CairoSurface* GrayscaleFrameRenderer::GenerateDisplay(const RenderStyle& style) { assert(frame_->GetFormat() == Orthanc::PixelFormat_Float32); - std::auto_ptr<CairoSurface> result; + std::auto_ptr<OrthancStone::CairoSurface> result; float windowCenter, windowWidth; style.ComputeWindowing(windowCenter, windowWidth, @@ -41,7 +41,7 @@ //LOG(INFO) << "Window: " << x0 << " => " << x1; - result.reset(new CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); + result.reset(new OrthancStone::CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); const uint8_t* lut = NULL; if (style.applyLut_) @@ -115,7 +115,7 @@ GrayscaleFrameRenderer::GrayscaleFrameRenderer(const Orthanc::ImageAccessor& frame, const Deprecated::DicomFrameConverter& converter, - const CoordinateSystem3D& framePlane, + const OrthancStone::CoordinateSystem3D& framePlane, double pixelSpacingX, double pixelSpacingY, bool isFullQuality) :