Mercurial > hg > orthanc-stone
comparison Framework/Volumes/StructureSetLoader.cpp @ 623:42dadae61fa9
renamed IObservable::EmitMessage() as BroadcastMessage()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 May 2019 14:16:08 +0200 |
parents | b70e9be013e4 |
children | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
622:8a3a25f2d42c | 623:42dadae61fa9 |
---|---|
42 | 42 |
43 Orthanc::DicomMap slice; | 43 Orthanc::DicomMap slice; |
44 MessagingToolbox::ConvertDataset(slice, dataset); | 44 MessagingToolbox::ConvertDataset(slice, dataset); |
45 structureSet_->AddReferencedSlice(slice); | 45 structureSet_->AddReferencedSlice(slice); |
46 | 46 |
47 EmitMessage(ContentChangedMessage(*this)); | 47 BroadcastMessage(ContentChangedMessage(*this)); |
48 } | 48 } |
49 | 49 |
50 | 50 |
51 void StructureSetLoader::OnStructureSetLoaded(const OrthancApiClient::JsonResponseReadyMessage& message) | 51 void StructureSetLoader::OnStructureSetLoaded(const OrthancApiClient::JsonResponseReadyMessage& message) |
52 { | 52 { |
61 { | 61 { |
62 orthanc_.PostBinaryAsyncExpectJson("/tools/lookup", *it, | 62 orthanc_.PostBinaryAsyncExpectJson("/tools/lookup", *it, |
63 new Callable<StructureSetLoader, OrthancApiClient::JsonResponseReadyMessage>(*this, &StructureSetLoader::OnLookupCompleted)); | 63 new Callable<StructureSetLoader, OrthancApiClient::JsonResponseReadyMessage>(*this, &StructureSetLoader::OnLookupCompleted)); |
64 } | 64 } |
65 | 65 |
66 EmitMessage(GeometryReadyMessage(*this)); | 66 BroadcastMessage(GeometryReadyMessage(*this)); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 void StructureSetLoader::OnLookupCompleted(const OrthancApiClient::JsonResponseReadyMessage& message) | 70 void StructureSetLoader::OnLookupCompleted(const OrthancApiClient::JsonResponseReadyMessage& message) |
71 { | 71 { |