Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Loaders/DicomStructureSetLoader.cpp @ 1310:9bea7e15b519 broker
- first pass at changes to cope with the refactoring of the loading system
- global loader-related data accessible through ILoadersContext::ILock
- many changes in legacy loaders (CT, RTSTRUCT, DOSE) + loader cache
- NOT FINISHED! there are shared_from_this calls in ctors! this will crash!
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 09 Mar 2020 14:53:22 +0100 |
parents | 257f2c9a02ac |
children | 9b126de2cde2 |
comparison
equal
deleted
inserted
replaced
1309:1f877e0846fe | 1310:9bea7e15b519 |
---|---|
343 return layer.release(); | 343 return layer.release(); |
344 } | 344 } |
345 }; | 345 }; |
346 | 346 |
347 | 347 |
348 DicomStructureSetLoader::DicomStructureSetLoader(OrthancStone::IOracle& oracle, | 348 DicomStructureSetLoader::DicomStructureSetLoader( |
349 OrthancStone::IObservable& oracleObservable) : | 349 OrthancStone::ILoadersContext& loadersContext) |
350 LoaderStateMachine(oracle, oracleObservable), | 350 : LoaderStateMachine(loadersContext) |
351 revision_(0), | 351 , loadersContext_(loadersContext) |
352 countProcessedInstances_(0), | 352 , revision_(0) |
353 countReferencedInstances_(0), | 353 , countProcessedInstances_(0) |
354 structuresReady_(false) | 354 , countReferencedInstances_(0) |
355 { | 355 , structuresReady_(false) |
356 } | 356 { |
357 | 357 } |
358 | |
358 | 359 |
359 void DicomStructureSetLoader::SetStructureDisplayState(size_t structureIndex, bool display) | 360 void DicomStructureSetLoader::SetStructureDisplayState(size_t structureIndex, bool display) |
360 { | 361 { |
361 structureVisibility_.at(structureIndex) = display; | 362 structureVisibility_.at(structureIndex) = display; |
362 revision_++; | 363 revision_++; |