Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/GrayscaleStyleConfigurator.cpp @ 836:e62e7361fd60
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 31 May 2019 16:34:26 +0200 |
parents | 0965b665c653 |
children | 2b4b6b86520a |
comparison
equal
deleted
inserted
replaced
835:0965b665c653 | 836:e62e7361fd60 |
---|---|
25 | 25 |
26 #include <Core/OrthancException.h> | 26 #include <Core/OrthancException.h> |
27 | 27 |
28 namespace OrthancStone | 28 namespace OrthancStone |
29 { | 29 { |
30 void GrayscaleStyleConfigurator::SetWindowing(ImageWindowing windowing) | |
31 { | |
32 hasWindowing_ = true; | |
33 windowing_ = windowing; | |
34 revision_++; | |
35 } | |
36 | |
37 | |
30 void GrayscaleStyleConfigurator::SetLinearInterpolation(bool enabled) | 38 void GrayscaleStyleConfigurator::SetLinearInterpolation(bool enabled) |
31 { | 39 { |
32 linearInterpolation_ = enabled; | 40 linearInterpolation_ = enabled; |
33 revision_++; | 41 revision_++; |
34 } | 42 } |
35 | 43 |
44 | |
36 TextureBaseSceneLayer* GrayscaleStyleConfigurator::CreateTextureFromImage( | 45 TextureBaseSceneLayer* GrayscaleStyleConfigurator::CreateTextureFromImage( |
37 const Orthanc::ImageAccessor& image) const | 46 const Orthanc::ImageAccessor& image) const |
38 { | 47 { |
39 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 48 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
40 } | 49 } |
41 | 50 |
51 | |
42 TextureBaseSceneLayer* GrayscaleStyleConfigurator::CreateTextureFromDicom( | 52 TextureBaseSceneLayer* GrayscaleStyleConfigurator::CreateTextureFromDicom( |
43 const Orthanc::ImageAccessor& frame, | 53 const Orthanc::ImageAccessor& frame, |
44 const DicomInstanceParameters& parameters) const | 54 const DicomInstanceParameters& parameters) const |
45 { | 55 { |
46 std::auto_ptr<TextureBaseSceneLayer> layer(parameters.CreateTexture(frame)); | 56 std::auto_ptr<TextureBaseSceneLayer> layer(parameters.CreateTexture(frame)); |