Mercurial > hg > orthanc-stone
comparison Framework/StoneEnumerations.cpp @ 589:3080ec4ec6b9
removed enum value: ImageWindowing_Default
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Apr 2019 14:00:55 +0200 |
parents | 9e61b0ac12f1 |
children | 2eeb5857eb43 |
comparison
equal
deleted
inserted
replaced
588:2a8ac2d426db | 589:3080ec4ec6b9 |
---|---|
46 | 46 |
47 | 47 |
48 void ComputeWindowing(float& targetCenter, | 48 void ComputeWindowing(float& targetCenter, |
49 float& targetWidth, | 49 float& targetWidth, |
50 ImageWindowing windowing, | 50 ImageWindowing windowing, |
51 float defaultCenter, | 51 float customCenter, |
52 float defaultWidth) | 52 float customWidth) |
53 { | 53 { |
54 switch (windowing) | 54 switch (windowing) |
55 { | 55 { |
56 case ImageWindowing_Default: | 56 case ImageWindowing_Custom: |
57 targetCenter = defaultCenter; | 57 targetCenter = customCenter; |
58 targetWidth = defaultWidth; | 58 targetWidth = customWidth; |
59 break; | 59 break; |
60 | 60 |
61 case ImageWindowing_Bone: | 61 case ImageWindowing_Bone: |
62 targetCenter = 300; | 62 targetCenter = 300; |
63 targetWidth = 2000; | 63 targetWidth = 2000; |