comparison Framework/Loaders/DicomVolumeLoader.cpp @ 1323:c0af7657d398 broker

Fixed warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 24 Mar 2020 16:17:03 +0100
parents 0ca50d275b9a
children 30deba7bc8e2
comparison
equal deleted inserted replaced
1322:0da659f8579c 1323:c0af7657d398
104 if (message.GetFrameIndex() >= volume_->GetPixelData().GetDepth()) 104 if (message.GetFrameIndex() >= volume_->GetPixelData().GetDepth())
105 { 105 {
106 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 106 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
107 } 107 }
108 108
109 size_t frameIndex = dynamic_cast<const Orthanc::SingleValueObject<size_t>&>(message.GetUserPayload()).GetValue(); 109 size_t frameIndex = dynamic_cast<const Orthanc::SingleValueObject<size_t>&>
110 (message.GetUserPayload()).GetValue();
110 111
111 { 112 {
112 ImageBuffer3D::SliceWriter writer(volume_->GetPixelData(), VolumeProjection_Axial, frameIndex); 113 ImageBuffer3D::SliceWriter writer(volume_->GetPixelData(),
114 VolumeProjection_Axial,
115 static_cast<unsigned int>(frameIndex));
116
113 Orthanc::ImageProcessing::Copy(writer.GetAccessor(), message.GetImage()); 117 Orthanc::ImageProcessing::Copy(writer.GetAccessor(), message.GetImage());
114 } 118 }
115 119
116 volume_->IncrementRevision(); 120 volume_->IncrementRevision();
117 121
118 { 122 {
119 VolumeUpdatedMessage updated(*this, frameIndex); 123 VolumeUpdatedMessage updated(*this,
124 static_cast<unsigned int>(frameIndex));
125
120 BroadcastMessage(updated); 126 BroadcastMessage(updated);
121 } 127 }
122 128
123 remaining_--; 129 remaining_--;
124 130