Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyLayer.h @ 876:580dd82e13f5 am-dev
added GetApproximateMemoryUsage
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Jul 2019 10:15:29 +0200 |
parents | c237e0625065 |
children | b537002f83a9 35e798b16b65 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyLayer.h Wed Jul 03 10:12:09 2019 +0200 +++ b/Framework/Radiography/RadiographyLayer.h Wed Jul 03 10:15:29 2019 +0200 @@ -355,5 +355,10 @@ float& maxValue) const = 0; friend class RadiographyMaskLayer; // because it needs to GetTransform on the dicomLayer it relates to + + virtual size_t GetApproximateMemoryUsage() const // this is used to limit the number of scenes loaded in RAM when resources are limited (we actually only count the size used by the images, not the C structs) + { + return 0; + } }; }