Mercurial > hg > orthanc-stone
comparison Framework/Layers/FrameRenderer.cpp @ 66:298f375dcb68 wasm
LayerWidget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 May 2017 22:03:09 +0200 |
parents | 28956ed68280 |
children | f5f54ed8d307 |
comparison
equal
deleted
inserted
replaced
65:885932a893de | 66:298f375dcb68 |
---|---|
33 const SliceGeometry& frameSlice, | 33 const SliceGeometry& frameSlice, |
34 double pixelSpacingX, | 34 double pixelSpacingX, |
35 double pixelSpacingY) | 35 double pixelSpacingY) |
36 { | 36 { |
37 bool isOpposite; | 37 bool isOpposite; |
38 if (!GeometryToolbox::IsParallelOrOpposite(isOpposite, viewportSlice.GetNormal(), frameSlice.GetNormal())) | 38 if (!GeometryToolbox::IsParallelOrOpposite(isOpposite, |
39 viewportSlice.GetNormal(), | |
40 frameSlice.GetNormal())) | |
39 { | 41 { |
40 return false; | 42 return false; |
41 } | 43 } |
42 else | 44 else |
43 { | 45 { |
143 return true; | 145 return true; |
144 } | 146 } |
145 | 147 |
146 if (display_.get() == NULL) | 148 if (display_.get() == NULL) |
147 { | 149 { |
148 if (!ComputePixelTransform(transform_, viewportSlice_, frameSlice_, pixelSpacingX_, pixelSpacingY_)) | 150 if (!ComputePixelTransform(transform_, viewportSlice_, frameSlice_, |
151 pixelSpacingX_, pixelSpacingY_)) | |
149 { | 152 { |
150 return true; | 153 return true; |
151 } | 154 } |
152 | 155 |
153 display_.reset(GenerateDisplay(style_)); | 156 display_.reset(GenerateDisplay(style_)); |