comparison Framework/Layers/FrameRenderer.cpp @ 394:17d54c028805

rename ILayerRenderer::GetLayerSlice() to GetLayerPlane()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 10 Nov 2018 08:44:18 +0100
parents 814fa32e2fcc
children b70e9be013e4
comparison
equal deleted inserted replaced
393:e7a494bdd956 394:17d54c028805
26 26
27 #include <Core/OrthancException.h> 27 #include <Core/OrthancException.h>
28 28
29 namespace OrthancStone 29 namespace OrthancStone
30 { 30 {
31 FrameRenderer::FrameRenderer(const CoordinateSystem3D& frameSlice, 31 FrameRenderer::FrameRenderer(const CoordinateSystem3D& framePlane,
32 double pixelSpacingX, 32 double pixelSpacingX,
33 double pixelSpacingY, 33 double pixelSpacingY,
34 bool isFullQuality) : 34 bool isFullQuality) :
35 frameSlice_(frameSlice), 35 framePlane_(framePlane),
36 pixelSpacingX_(pixelSpacingX), 36 pixelSpacingX_(pixelSpacingX),
37 pixelSpacingY_(pixelSpacingY), 37 pixelSpacingY_(pixelSpacingY),
38 isFullQuality_(isFullQuality) 38 isFullQuality_(isFullQuality)
39 { 39 {
40 } 40 }
116 display_.reset(NULL); 116 display_.reset(NULL);
117 } 117 }
118 118
119 119
120 ILayerRenderer* FrameRenderer::CreateRenderer(const Orthanc::ImageAccessor& frame, 120 ILayerRenderer* FrameRenderer::CreateRenderer(const Orthanc::ImageAccessor& frame,
121 const Slice& frameSlice, 121 const Slice& framePlane,
122 bool isFullQuality) 122 bool isFullQuality)
123 { 123 {
124 if (frame.GetFormat() == Orthanc::PixelFormat_RGB24) 124 if (frame.GetFormat() == Orthanc::PixelFormat_RGB24)
125 { 125 {
126 return new ColorFrameRenderer(frame, 126 return new ColorFrameRenderer(frame,
127 frameSlice.GetGeometry(), 127 framePlane.GetGeometry(),
128 frameSlice.GetPixelSpacingX(), 128 framePlane.GetPixelSpacingX(),
129 frameSlice.GetPixelSpacingY(), isFullQuality); 129 framePlane.GetPixelSpacingY(), isFullQuality);
130 } 130 }
131 else 131 else
132 { 132 {
133 return new GrayscaleFrameRenderer(frame, 133 return new GrayscaleFrameRenderer(frame,
134 frameSlice.GetConverter(), 134 framePlane.GetConverter(),
135 frameSlice.GetGeometry(), 135 framePlane.GetGeometry(),
136 frameSlice.GetPixelSpacingX(), 136 framePlane.GetPixelSpacingX(),
137 frameSlice.GetPixelSpacingY(), isFullQuality); 137 framePlane.GetPixelSpacingY(), isFullQuality);
138 } 138 }
139 } 139 }
140 } 140 }