Mercurial > hg > orthanc-wsi
comparison Framework/Inputs/DicomPyramidInstance.h @ 219:ef3f8c5126a4
Don't display the thumbnail/overview instances in the Web viewer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 Jan 2021 17:09:57 +0100 |
parents | 1e864138f0da |
children | 49f647ed1b4c |
comparison
equal
deleted
inserted
replaced
218:c5a8b46c4cba | 219:ef3f8c5126a4 |
---|---|
32 class DicomPyramidInstance : public boost::noncopyable | 32 class DicomPyramidInstance : public boost::noncopyable |
33 { | 33 { |
34 private: | 34 private: |
35 typedef std::pair<unsigned int, unsigned int> FrameLocation; | 35 typedef std::pair<unsigned int, unsigned int> FrameLocation; |
36 | 36 |
37 std::string instanceId_; | 37 std::string instanceId_; |
38 bool hasCompression_; | 38 bool hasCompression_; |
39 ImageCompression compression_; | 39 ImageCompression compression_; |
40 Orthanc::PixelFormat format_; | 40 Orthanc::PixelFormat format_; |
41 unsigned int tileWidth_; | 41 unsigned int tileWidth_; |
42 unsigned int tileHeight_; | 42 unsigned int tileHeight_; |
43 unsigned int totalWidth_; | 43 unsigned int totalWidth_; |
44 unsigned int totalHeight_; | 44 unsigned int totalHeight_; |
45 std::vector<FrameLocation> frames_; | 45 std::vector<FrameLocation> frames_; |
46 Orthanc::PhotometricInterpretation photometric_; | 46 Orthanc::PhotometricInterpretation photometric_; |
47 std::string imageType_; | |
47 | 48 |
48 void Load(OrthancStone::IOrthancConnection& orthanc, | 49 void Load(OrthancStone::IOrthancConnection& orthanc, |
49 const std::string& instanceId); | 50 const std::string& instanceId); |
50 | 51 |
51 void Deserialize(const std::string& content); | 52 void Deserialize(const std::string& content); |
95 size_t GetFrameCount() const | 96 size_t GetFrameCount() const |
96 { | 97 { |
97 return frames_.size(); | 98 return frames_.size(); |
98 } | 99 } |
99 | 100 |
101 const std::string& GetImageType() const | |
102 { | |
103 return imageType_; | |
104 } | |
105 | |
100 unsigned int GetFrameLocationX(size_t frame) const; | 106 unsigned int GetFrameLocationX(size_t frame) const; |
101 | 107 |
102 unsigned int GetFrameLocationY(size_t frame) const; | 108 unsigned int GetFrameLocationY(size_t frame) const; |
103 | 109 |
104 void Serialize(std::string& result) const; | 110 void Serialize(std::string& result) const; |