comparison Applications/Platforms/WebAssembly/WebAssemblyOracle.h @ 1675:6fa05252b085

don't load low-quality image if the parsed dicom file is cached by the oracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 23 Nov 2020 18:09:14 +0100
parents 4fb8fdf03314
children 1393e3393a0b
comparison
equal deleted inserted replaced
1674:0621e523b670 1675:6fa05252b085
121 isLocalOrthanc_ = false; 121 isLocalOrthanc_ = false;
122 remoteOrthanc_ = orthanc; 122 remoteOrthanc_ = orthanc;
123 } 123 }
124 124
125 void SetDicomCacheSize(size_t size); 125 void SetDicomCacheSize(size_t size);
126
127 class CachedInstanceAccessor : public boost::noncopyable
128 {
129 private:
130 #if ORTHANC_ENABLE_DCMTK == 1
131 std::unique_ptr<ParsedDicomCache::Reader> reader_;
132 #endif
133
134 public:
135 CachedInstanceAccessor(WebAssemblyOracle& oracle,
136 const std::string& sopInstanceUid);
137
138 bool IsValid() const;
139
140 const Orthanc::ParsedDicomFile& GetDicom() const;
141
142 size_t GetFileSize() const;
143
144 bool HasPixelData() const;
145 };
146
126 }; 147 };
127 } 148 }