comparison Framework/Loaders/OrthancMultiframeVolumeLoader.cpp @ 1072:391fb6d6905d

OrthancMultiframeVolumeLoader asks volume image to compute range + added IsContextLost to wasm viewport + added "computeRange" bool property to DicomVolumeImage + added ability to ask the MPR slicer for its source volume (to retrieve voxel value range)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 16 Oct 2019 15:43:21 +0200
parents 1f74bc3459ba
children f72d1ab42932 33b0a762e98a
comparison
equal deleted inserted replaced
1071:6dd90b8d1589 1072:391fb6d6905d
110 loader.SetGeometry(*dicom); 110 loader.SetGeometry(*dicom);
111 } 111 }
112 } 112 }
113 }; 113 };
114 114
115
116
117 class OrthancMultiframeVolumeLoader::LoadTransferSyntax : public State 115 class OrthancMultiframeVolumeLoader::LoadTransferSyntax : public State
118 { 116 {
119 public: 117 public:
120 LoadTransferSyntax(OrthancMultiframeVolumeLoader& that) : 118 LoadTransferSyntax(OrthancMultiframeVolumeLoader& that) :
121 State(that) 119 State(that)
227 VolumeImageGeometry geometry; 225 VolumeImageGeometry geometry;
228 geometry.SetSizeInVoxels(width, height, depth); 226 geometry.SetSizeInVoxels(width, height, depth);
229 geometry.SetAxialGeometry(parameters.GetGeometry()); 227 geometry.SetAxialGeometry(parameters.GetGeometry());
230 geometry.SetVoxelDimensions(parameters.GetPixelSpacingX(), 228 geometry.SetVoxelDimensions(parameters.GetPixelSpacingX(),
231 parameters.GetPixelSpacingY(), spacingZ); 229 parameters.GetPixelSpacingY(), spacingZ);
232 volume_->Initialize(geometry, format); 230 volume_->Initialize(geometry, format, true /* Do compute range */);
233 } 231 }
234 232
235 volume_->GetPixelData().Clear(); 233 volume_->GetPixelData().Clear();
236 234
237 ScheduleFrameDownloads(); 235 ScheduleFrameDownloads();