Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyDicomLayer.h @ 918:d6c029d15aaa
Merged am-dev into default
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 19 Jul 2019 15:15:13 +0200 |
parents | 580dd82e13f5 |
children | b537002f83a9 35e798b16b65 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyDicomLayer.h Fri Jul 19 10:54:03 2019 +0200 +++ b/Framework/Radiography/RadiographyDicomLayer.h Fri Jul 19 15:15:13 2019 +0200 @@ -60,6 +60,22 @@ return frame_; } + virtual size_t GetApproximateMemoryUsage() const + { + size_t size = 0; + if (source_.get() != NULL) + { + size += source_->GetPitch() * source_->GetHeight(); + } + if (converted_.get() != NULL) + { + size += converted_->GetPitch() * converted_->GetHeight(); + } + + return size; + } + + void SetDicomTags(const OrthancPlugins::FullOrthancDataset& dataset); void SetSourceImage(Orthanc::ImageAccessor* image); // Takes ownership