Mercurial > hg > orthanc-stone
comparison Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.h @ 921:81d30cd93b65 toa2019072201
Ability to ask the loader for the geometry in PULL mode (when subscribing to the messages is not possible) + small changes (removed const/ref qualifiers for boost::shared_ptr param, added traces, doc change)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 22 Jul 2019 11:21:09 +0200 |
parents | aead999345e0 |
children | 401808e7ff2e |
comparison
equal
deleted
inserted
replaced
918:d6c029d15aaa | 921:81d30cd93b65 |
---|---|
90 uint64_t GetSliceRevision(size_t index) const; | 90 uint64_t GetSliceRevision(size_t index) const; |
91 | 91 |
92 void IncrementSliceRevision(size_t index); | 92 void IncrementSliceRevision(size_t index); |
93 }; | 93 }; |
94 | 94 |
95 | |
96 void ScheduleNextSliceDownload(); | 95 void ScheduleNextSliceDownload(); |
97 | 96 |
98 void LoadGeometry(const OrthancRestApiCommand::SuccessMessage& message); | 97 void LoadGeometry(const OrthancRestApiCommand::SuccessMessage& message); |
99 | 98 |
100 void SetSliceContent(unsigned int sliceIndex, | 99 void SetSliceContent(unsigned int sliceIndex, |
123 void SetSimultaneousDownloads(unsigned int count); | 122 void SetSimultaneousDownloads(unsigned int count); |
124 | 123 |
125 void LoadSeries(const std::string& seriesId); | 124 void LoadSeries(const std::string& seriesId); |
126 | 125 |
127 /** | 126 /** |
127 This getter is used by clients that do not receive the geometry through | |
128 subscribing, for instance if they are created or listening only AFTER the | |
129 "geometry loaded" message is broadcast | |
130 */ | |
131 bool HasGeometry() const | |
132 { | |
133 return seriesGeometry_.HasGeometry(); | |
134 } | |
135 | |
136 /** | |
137 Same remark as HasGeometry | |
138 */ | |
139 const VolumeImageGeometry& GetImageGeometry() const | |
140 { | |
141 return seriesGeometry_.GetImageGeometry(); | |
142 } | |
143 | |
144 /** | |
128 When a slice is requested, the strategy algorithm (that defines the | 145 When a slice is requested, the strategy algorithm (that defines the |
129 sequence of resources to be loaded from the server) is modified to | 146 sequence of resources to be loaded from the server) is modified to |
130 take into account this request (this is done in the ExtractedSlice ctor) | 147 take into account this request (this is done in the ExtractedSlice ctor) |
131 */ | 148 */ |
132 virtual IExtractedSlice* ExtractSlice(const CoordinateSystem3D& cuttingPlane); | 149 virtual IExtractedSlice* ExtractSlice(const CoordinateSystem3D& cuttingPlane); |