comparison Framework/Layers/FrameRenderer.h @ 85:bd48431ac285 wasm

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 12:20:26 +0200
parents f5f54ed8d307
children d18dcc963930
comparison
equal deleted inserted replaced
83:c75377306598 85:bd48431ac285
63 static bool ComputeFrameExtent(double& x1, 63 static bool ComputeFrameExtent(double& x1,
64 double& y1, 64 double& y1,
65 double& x2, 65 double& x2,
66 double& y2, 66 double& y2,
67 const SliceGeometry& viewportSlice, 67 const SliceGeometry& viewportSlice,
68 const Slice& slice) 68 const Slice& frame)
69 { 69 {
70 return ComputeFrameExtent(x1, y1, x2, y2, viewportSlice, 70 return ComputeFrameExtent(x1, y1, x2, y2, viewportSlice,
71 slice.GetGeometry(), slice.GetWidth(), slice.GetHeight(), 71 frame.GetGeometry(), frame.GetWidth(), frame.GetHeight(),
72 slice.GetPixelSpacingX(), slice.GetPixelSpacingY()); 72 frame.GetPixelSpacingX(), frame.GetPixelSpacingY());
73 } 73 }
74 74
75 virtual bool RenderLayer(CairoContext& context, 75 virtual bool RenderLayer(CairoContext& context,
76 const ViewportGeometry& view, 76 const ViewportGeometry& view,
77 const SliceGeometry& viewportSlice); 77 const SliceGeometry& viewportSlice);
90 double pixelSpacingX, 90 double pixelSpacingX,
91 double pixelSpacingY, 91 double pixelSpacingY,
92 bool isFullQuality); 92 bool isFullQuality);
93 93
94 static ILayerRenderer* CreateRenderer(Orthanc::ImageAccessor* frame, 94 static ILayerRenderer* CreateRenderer(Orthanc::ImageAccessor* frame,
95 const Slice& slice, 95 const Slice& frameSlice,
96 bool isFullQuality); 96 bool isFullQuality);
97 }; 97 };
98 } 98 }