Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyMaskLayer.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 a5f2a6b04a31 |
comparison
equal
deleted
inserted
replaced
914:4d1f57773b5b | 918:d6c029d15aaa |
---|---|
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 |