Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.h @ 5348:303e930fff0f
"/tools/create-dicom" can now be used to create Encapsulated 3D Manufacturing Model IODs (MTL, OBJ, or STL)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 02 Jul 2023 16:24:56 +0200 |
parents | f2e1ad71e49c |
children | 48b8dae6dc77 |
comparison
equal
deleted
inserted
replaced
5347:4f686f6150c7 | 5348:303e930fff0f |
---|---|
95 | 95 |
96 void InvalidateCache(); | 96 void InvalidateCache(); |
97 | 97 |
98 bool EmbedContentInternal(const std::string& dataUriScheme); | 98 bool EmbedContentInternal(const std::string& dataUriScheme); |
99 | 99 |
100 void EncapsulateDocument(MimeType mime, | |
101 const std::string& document); | |
102 | |
100 // For internal use only, in order to provide const-correctness on | 103 // For internal use only, in order to provide const-correctness on |
101 // the top of DCMTK API | 104 // the top of DCMTK API |
102 DcmFileFormat& GetDcmtkObjectConst() const; | 105 DcmFileFormat& GetDcmtkObjectConst() const; |
103 | 106 |
104 explicit ParsedDicomFile(DcmFileFormat* dicom); // This takes ownership (no clone) | 107 explicit ParsedDicomFile(DcmFileFormat* dicom); // This takes ownership (no clone) |
203 | 206 |
204 #if ORTHANC_SANDBOXED == 0 | 207 #if ORTHANC_SANDBOXED == 0 |
205 void SaveToFile(const std::string& path); | 208 void SaveToFile(const std::string& path); |
206 #endif | 209 #endif |
207 | 210 |
211 // This method must only be used on the PixelData and EncapsulatedDocument tags | |
208 void EmbedContent(const std::string& dataUriScheme); | 212 void EmbedContent(const std::string& dataUriScheme); |
209 | 213 |
210 void EmbedImage(const ImageAccessor& accessor); | 214 void EmbedImage(const ImageAccessor& accessor); |
211 | 215 |
212 void EmbedImage(MimeType mime, | 216 void EmbedImage(MimeType mime, |
234 void HeaderToJson(Json::Value& target, | 238 void HeaderToJson(Json::Value& target, |
235 DicomToJsonFormat format) const; | 239 DicomToJsonFormat format) const; |
236 | 240 |
237 bool HasTag(const DicomTag& tag) const; | 241 bool HasTag(const DicomTag& tag) const; |
238 | 242 |
239 void EmbedPdf(const std::string& pdf); | |
240 | |
241 bool ExtractPdf(std::string& pdf) const; | 243 bool ExtractPdf(std::string& pdf) const; |
242 | 244 |
243 void GetRawFrame(std::string& target, // OUT | 245 void GetRawFrame(std::string& target, // OUT |
244 MimeType& mime, // OUT | 246 MimeType& mime, // OUT |
245 unsigned int frameId) const; // IN | 247 unsigned int frameId) const; // IN |