Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyScene.h @ 1259:69177b10e2b9
various fixes for RadiographyScene: support text layers outside the dicom layer, fix background in this case + extract dicom from rendered scene
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 21 Jan 2020 16:52:37 +0100 |
parents | 6af941a68472 |
children | 2d8ab34c8c91 a989c7d46b9a |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.h Tue Jan 14 15:22:10 2020 +0100 +++ b/Framework/Radiography/RadiographyScene.h Tue Jan 21 16:52:37 2020 +0100 @@ -36,6 +36,7 @@ public IObserver, public IObservable { + friend class RadiographySceneGeometryReader; public: class GeometryChangedMessage : public OriginMessage<RadiographyScene> { @@ -167,9 +168,10 @@ float windowingWidth_; Layers layers_; - protected: + public: RadiographyLayer& RegisterLayer(RadiographyLayer* layer); + protected: virtual void _RegisterLayer(RadiographyLayer* layer); void SetLayerIndex(RadiographyLayer* layer, size_t index) @@ -347,5 +349,9 @@ int64_t maxValue /* for inversion */, bool applyWindowing); + void ExtractLayerFromRenderedScene(Orthanc::ImageAccessor& layer, + const Orthanc::ImageAccessor& renderedScene, + size_t layerIndex, + ImageInterpolation interpolation); }; }