comparison Framework/Loaders/OrthancMultiframeVolumeLoader.cpp @ 1128:8e3763d1736a broker

removing CustomOracleCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 22:39:25 +0100
parents 383aa2a7d426
children
comparison
equal deleted inserted replaced
1127:3308ef083297 1128:8e3763d1736a
99 // mandatory for RT-DOSE, but is too long to be returned by default 99 // mandatory for RT-DOSE, but is too long to be returned by default
100 100
101 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 101 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
102 command->SetUri("/instances/" + loader.GetInstanceId() + "/content/" + 102 command->SetUri("/instances/" + loader.GetInstanceId() + "/content/" +
103 Orthanc::DICOM_TAG_GRID_FRAME_OFFSET_VECTOR.Format()); 103 Orthanc::DICOM_TAG_GRID_FRAME_OFFSET_VECTOR.Format());
104 command->SetPayload(new LoadRTDoseGeometry(loader, dicom.release())); 104 command->AcquirePayload(new LoadRTDoseGeometry(loader, dicom.release()));
105 105
106 Schedule(command.release()); 106 Schedule(command.release());
107 } 107 }
108 else 108 else
109 { 109 {
173 { 173 {
174 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 174 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
175 command->SetHttpHeader("Accept-Encoding", "gzip"); 175 command->SetHttpHeader("Accept-Encoding", "gzip");
176 command->SetUri("/instances/" + instanceId_ + "/content/" + 176 command->SetUri("/instances/" + instanceId_ + "/content/" +
177 Orthanc::DICOM_TAG_PIXEL_DATA.Format() + "/0"); 177 Orthanc::DICOM_TAG_PIXEL_DATA.Format() + "/0");
178 command->SetPayload(new LoadUncompressedPixelData(*this)); 178 command->AcquirePayload(new LoadUncompressedPixelData(*this));
179 Schedule(command.release()); 179 Schedule(command.release());
180 } 180 }
181 else 181 else
182 { 182 {
183 throw Orthanc::OrthancException( 183 throw Orthanc::OrthancException(
367 367
368 { 368 {
369 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 369 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
370 command->SetHttpHeader("Accept-Encoding", "gzip"); 370 command->SetHttpHeader("Accept-Encoding", "gzip");
371 command->SetUri("/instances/" + instanceId + "/tags"); 371 command->SetUri("/instances/" + instanceId + "/tags");
372 command->SetPayload(new LoadGeometry(*this)); 372 command->AcquirePayload(new LoadGeometry(*this));
373 Schedule(command.release()); 373 Schedule(command.release());
374 } 374 }
375 375
376 { 376 {
377 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 377 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
378 command->SetUri("/instances/" + instanceId + "/metadata/TransferSyntax"); 378 command->SetUri("/instances/" + instanceId + "/metadata/TransferSyntax");
379 command->SetPayload(new LoadTransferSyntax(*this)); 379 command->AcquirePayload(new LoadTransferSyntax(*this));
380 Schedule(command.release()); 380 Schedule(command.release());
381 } 381 }
382 } 382 }
383 } 383 }