Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyDicomLayer.h @ 649:f1bfe3d1759f
Moved RadiographyDicomLayer::SetDicomFrameConverter to cpp file to prevent
using an auto_ptr with an incomplete type (because of Microsoft implementation?)
because that might lead to the dtor not being called.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 14 May 2019 09:46:41 +0200 |
parents | 92305ee35b1c |
children | 1e26bb5f2a02 |
comparison
equal
deleted
inserted
replaced
646:b4fe9642e83b | 649:f1bfe3d1759f |
---|---|
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 | 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 | 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 | 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 | 72 |
73 // Takes ownership | |
74 void SetDicomFrameConverter(DicomFrameConverter* converter); | |
73 | 75 |
74 virtual void Render(Orthanc::ImageAccessor& buffer, | 76 virtual void Render(Orthanc::ImageAccessor& buffer, |
75 const AffineTransform2D& viewTransform, | 77 const AffineTransform2D& viewTransform, |
76 ImageInterpolation interpolation) const; | 78 ImageInterpolation interpolation) const; |
77 | 79 |