Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyMaskLayer.h @ 876:580dd82e13f5 am-dev
added GetApproximateMemoryUsage
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Jul 2019 10:15:29 +0200 |
parents | 77e0eb83ff63 |
children | b537002f83a9 a5f2a6b04a31 |
comparison
equal
deleted
inserted
replaced
875:200b4e0dddfc | 876:580dd82e13f5 |
---|---|
46 dicomLayer_(dicomLayer), | 46 dicomLayer_(dicomLayer), |
47 invalidated_(true), | 47 invalidated_(true), |
48 foreground_(foreground) | 48 foreground_(foreground) |
49 { | 49 { |
50 } | 50 } |
51 | |
52 virtual size_t GetApproximateMemoryUsage() const | |
53 { | |
54 size_t size = 0; | |
55 if (mask_.get() != NULL) | |
56 { | |
57 size += mask_->GetPitch() * mask_->GetHeight(); | |
58 } | |
59 | |
60 return size; | |
61 } | |
62 | |
51 | 63 |
52 void SetCorners(const std::vector<Orthanc::ImageProcessing::ImagePoint>& corners); | 64 void SetCorners(const std::vector<Orthanc::ImageProcessing::ImagePoint>& corners); |
53 void SetCorner(const Orthanc::ImageProcessing::ImagePoint& corner, size_t index); | 65 void SetCorner(const Orthanc::ImageProcessing::ImagePoint& corner, size_t index); |
54 | 66 |
55 const std::vector<Orthanc::ImageProcessing::ImagePoint>& GetCorners() const | 67 const std::vector<Orthanc::ImageProcessing::ImagePoint>& GetCorners() const |