Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Layers/DicomStructureSetSlicer.cpp @ 1066:b537002f83a9 broker
removing broker from deprecated classes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 15:39:39 +0200 |
parents | e713f1a99861 |
children | f72d1ab42932 |
comparison
equal
deleted
inserted
replaced
1065:9d42f89b8c3c | 1066:b537002f83a9 |
---|---|
139 return new Renderer(structureSet_, plane_); | 139 return new Renderer(structureSet_, plane_); |
140 } | 140 } |
141 }; | 141 }; |
142 | 142 |
143 | 143 |
144 DicomStructureSetSlicer::DicomStructureSetSlicer(OrthancStone::MessageBroker& broker, | 144 DicomStructureSetSlicer::DicomStructureSetSlicer(StructureSetLoader& loader) : |
145 StructureSetLoader& loader) : | |
146 IVolumeSlicer(broker), | |
147 loader_(loader) | 145 loader_(loader) |
148 { | 146 { |
149 loader_.RegisterObserverCallback( | 147 Register<StructureSetLoader::ContentChangedMessage>(loader_, &DicomStructureSetSlicer::OnStructureSetLoaded); |
150 new OrthancStone::Callable<DicomStructureSetSlicer, StructureSetLoader::ContentChangedMessage> | |
151 (shared_from_this(), &DicomStructureSetSlicer::OnStructureSetLoaded)); | |
152 } | 148 } |
153 | 149 |
154 | 150 |
155 void DicomStructureSetSlicer::ScheduleLayerCreation(const OrthancStone::CoordinateSystem3D& viewportPlane) | 151 void DicomStructureSetSlicer::ScheduleLayerCreation(const OrthancStone::CoordinateSystem3D& viewportPlane) |
156 { | 152 { |