Mercurial > hg > orthanc-stone
diff Framework/Loaders/OrthancMultiframeVolumeLoader.h @ 1381:f4a06ad1580b
Branch broker is now the new default
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 22 Apr 2020 14:05:47 +0200 |
parents | 2d8ab34c8c91 556b4bc19118 |
children | 75ac66d5f4b2 7f16987131e1 |
line wrap: on
line diff
--- a/Framework/Loaders/OrthancMultiframeVolumeLoader.h Mon Apr 20 18:26:32 2020 +0200 +++ b/Framework/Loaders/OrthancMultiframeVolumeLoader.h Wed Apr 22 14:05:47 2020 +0200 @@ -23,6 +23,7 @@ #include "LoaderStateMachine.h" #include "../Volumes/DicomVolumeImage.h" +#include "../Volumes/IGeometryProvider.h" #include <boost/shared_ptr.hpp> @@ -30,7 +31,7 @@ { class OrthancMultiframeVolumeLoader : public LoaderStateMachine, - public IObservable, + public OrthancStone::IObservable, public IGeometryProvider { private: @@ -39,7 +40,7 @@ class LoadTransferSyntax; class LoadUncompressedPixelData; - boost::shared_ptr<DicomVolumeImage> volume_; + boost::shared_ptr<OrthancStone::DicomVolumeImage> volume_; std::string instanceId_; std::string transferSyntaxUid_; bool pixelDataLoaded_; @@ -89,15 +90,21 @@ void SetUncompressedPixelData(const std::string& pixelData); - virtual bool HasGeometry() const ORTHANC_OVERRIDE; - virtual const VolumeImageGeometry& GetImageGeometry() const ORTHANC_OVERRIDE; + bool HasGeometry() const; + const OrthancStone::VolumeImageGeometry& GetImageGeometry() const; + protected: + OrthancMultiframeVolumeLoader( + OrthancStone::ILoadersContext& loadersContext, + boost::shared_ptr<OrthancStone::DicomVolumeImage> volume, + float outliersHalfRejectionRate); public: - OrthancMultiframeVolumeLoader(boost::shared_ptr<DicomVolumeImage> volume, - IOracle& oracle, - IObservable& oracleObservable, - float outliersHalfRejectionRate = 0.0005); - + + static boost::shared_ptr<OrthancMultiframeVolumeLoader> Create( + OrthancStone::ILoadersContext& loadersContext, + boost::shared_ptr<OrthancStone::DicomVolumeImage> volume, + float outliersHalfRejectionRate = 0.0005); + virtual ~OrthancMultiframeVolumeLoader(); bool IsPixelDataLoaded() const