comparison Framework/Radiography/RadiographyDicomLayer.h @ 553:92305ee35b1c dev

web-worker consequences: give access to lower level data
author Alain Mazy <alain@mazy.be>
date Wed, 03 Apr 2019 17:38:43 +0200
parents 77e0eb83ff63
children f1bfe3d1759f
comparison
equal deleted inserted replaced
545:e1ba16436d59 553:92305ee35b1c
64 64
65 void SetDicomTags(const OrthancPlugins::FullOrthancDataset& dataset); 65 void SetDicomTags(const OrthancPlugins::FullOrthancDataset& dataset);
66 66
67 void SetSourceImage(Orthanc::ImageAccessor* image); // Takes ownership 67 void SetSourceImage(Orthanc::ImageAccessor* image); // Takes ownership
68 68
69 const Orthanc::ImageAccessor* GetSourceImage() const {return source_.get();} // currently need this access to serialize scene in plain old data to send to a WASM worker
70
71 const DicomFrameConverter& GetDicomFrameConverter() const {return *converter_;} // currently need this access to serialize scene in plain old data to send to a WASM worker
72 void SetDicomFrameConverter(DicomFrameConverter* converter) {converter_.reset(converter);} // Takes ownership
73
69 virtual void Render(Orthanc::ImageAccessor& buffer, 74 virtual void Render(Orthanc::ImageAccessor& buffer,
70 const AffineTransform2D& viewTransform, 75 const AffineTransform2D& viewTransform,
71 ImageInterpolation interpolation) const; 76 ImageInterpolation interpolation) const;
72 77
73 virtual bool GetDefaultWindowing(float& center, 78 virtual bool GetDefaultWindowing(float& center,