Mercurial > hg > orthanc-stone
comparison Framework/Loaders/LoaderCache.h @ 1438:96044a18b98d
DicomStructureSetLoader instances are now indexed by their instanceid AND
a uniquekey that is passed (*not* depending on the initially visible structures anymore)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 19 May 2020 15:29:47 +0200 |
parents | 998697c5ec74 |
children |
comparison
equal
deleted
inserted
replaced
1437:297e57d3508c | 1438:96044a18b98d |
---|---|
58 GetMultiframeDicomVolumeImageMPRSlicer(std::string instanceUuid); | 58 GetMultiframeDicomVolumeImageMPRSlicer(std::string instanceUuid); |
59 | 59 |
60 boost::shared_ptr<OrthancMultiframeVolumeLoader> | 60 boost::shared_ptr<OrthancMultiframeVolumeLoader> |
61 GetMultiframeVolumeLoader(std::string instanceUuid); | 61 GetMultiframeVolumeLoader(std::string instanceUuid); |
62 | 62 |
63 /** | |
64 The DicomStructureSetLoader instances are stored in a map and indexed | |
65 by a key built from instanceUuid and uniqueKey. | |
66 | |
67 If instanceUuid and uniqueKey correspond to an already existing loader, it is returned. | |
68 | |
69 Please note that initiallyVisibleStructures is only used if the call results in the creation | |
70 of a new loader. In that case, the value is passed to the constructor. | |
71 */ | |
63 boost::shared_ptr<DicomStructureSetLoader> | 72 boost::shared_ptr<DicomStructureSetLoader> |
64 GetDicomStructureSetLoader( | 73 GetDicomStructureSetLoader( |
65 std::string instanceUuid, | 74 std::string instanceUuid, |
66 const std::vector<std::string>& initiallyVisibleStructures); | 75 const std::vector<std::string>& initiallyVisibleStructures, |
76 const std::string& uniqueKey = ""); | |
77 | |
78 std::string BuildDicomStructureSetLoaderKey( | |
79 const std::string& instanceUuid, | |
80 const std::string& uniqueKey = ""); | |
67 | 81 |
68 void ClearCache(); | 82 void ClearCache(); |
69 | 83 |
70 /** | 84 /** |
71 Service method static and exposed for unit tests. | 85 Service method static and exposed for unit tests. |