Mercurial > hg > orthanc-wsi
comparison Framework/Outputs/TruncatedPyramidWriter.h @ 216:c35a3a0627b9
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 Jan 2021 10:21:36 +0100 |
parents | 1e864138f0da |
children | 49f647ed1b4c |
comparison
equal
deleted
inserted
replaced
215:02cb86d07966 | 216:c35a3a0627b9 |
---|---|
35 public: | 35 public: |
36 TruncatedPyramidWriter(IPyramidWriter& lower, | 36 TruncatedPyramidWriter(IPyramidWriter& lower, |
37 unsigned int upperLevelIndex, | 37 unsigned int upperLevelIndex, |
38 Orthanc::PhotometricInterpretation photometric); | 38 Orthanc::PhotometricInterpretation photometric); |
39 | 39 |
40 virtual unsigned int GetLevelCount() const | 40 virtual unsigned int GetLevelCount() const ORTHANC_OVERRIDE |
41 { | 41 { |
42 return upperLevelIndex_ + 1; | 42 return upperLevelIndex_ + 1; |
43 } | 43 } |
44 | 44 |
45 virtual Orthanc::PixelFormat GetPixelFormat() const | 45 virtual Orthanc::PixelFormat GetPixelFormat() const ORTHANC_OVERRIDE |
46 { | 46 { |
47 return lowerLevels_.GetPixelFormat(); | 47 return lowerLevels_.GetPixelFormat(); |
48 } | 48 } |
49 | 49 |
50 virtual unsigned int GetTileWidth() const | 50 virtual unsigned int GetTileWidth() const ORTHANC_OVERRIDE |
51 { | 51 { |
52 return lowerLevels_.GetTileWidth(); | 52 return lowerLevels_.GetTileWidth(); |
53 } | 53 } |
54 | 54 |
55 virtual unsigned int GetTileHeight() const | 55 virtual unsigned int GetTileHeight() const ORTHANC_OVERRIDE |
56 { | 56 { |
57 return lowerLevels_.GetTileHeight(); | 57 return lowerLevels_.GetTileHeight(); |
58 } | 58 } |
59 | 59 |
60 virtual unsigned int GetCountTilesX(unsigned int level) const; | 60 virtual unsigned int GetCountTilesX(unsigned int level) const ORTHANC_OVERRIDE; |
61 | 61 |
62 virtual unsigned int GetCountTilesY(unsigned int level) const; | 62 virtual unsigned int GetCountTilesY(unsigned int level) const ORTHANC_OVERRIDE; |
63 | 63 |
64 virtual void WriteRawTile(const std::string& tile, | 64 virtual void WriteRawTile(const std::string& tile, |
65 ImageCompression compression, | 65 ImageCompression compression, |
66 unsigned int level, | 66 unsigned int level, |
67 unsigned int x, | 67 unsigned int x, |
68 unsigned int y); | 68 unsigned int y) ORTHANC_OVERRIDE; |
69 | 69 |
70 virtual void EncodeTile(const Orthanc::ImageAccessor& tile, | 70 virtual void EncodeTile(const Orthanc::ImageAccessor& tile, |
71 unsigned int level, | 71 unsigned int level, |
72 unsigned int x, | 72 unsigned int x, |
73 unsigned int y); | 73 unsigned int y) ORTHANC_OVERRIDE; |
74 | 74 |
75 InMemoryTiledImage& GetUpperLevel() | 75 InMemoryTiledImage& GetUpperLevel() |
76 { | 76 { |
77 return upperLevel_; | 77 return upperLevel_; |
78 } | 78 } |