Mercurial > hg > orthanc-stone
diff Framework/Volumes/DicomVolumeImageMPRSlicer.h @ 817:68f888812af4
simplification of DicomVolumeImageMPRSlicer::ExtractedSlice
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 May 2019 08:36:13 +0200 |
parents | aead999345e0 |
children | 401808e7ff2e |
line wrap: on
line diff
--- a/Framework/Volumes/DicomVolumeImageMPRSlicer.h Tue May 28 22:18:41 2019 +0200 +++ b/Framework/Volumes/DicomVolumeImageMPRSlicer.h Wed May 29 08:36:13 2019 +0200 @@ -40,20 +40,13 @@ { private: const DicomVolumeImage& volume_; + uint64_t revision_; bool valid_; VolumeProjection projection_; unsigned int sliceIndex_; void CheckValid() const; - protected: - // Can be overloaded in subclasses - virtual uint64_t GetRevisionInternal(VolumeProjection projection, - unsigned int sliceIndex) const - { - return volume_.GetRevision(); - } - public: /** Represents a slice of a volume image that is parallel to the @@ -64,6 +57,11 @@ Slice(const DicomVolumeImage& volume, const CoordinateSystem3D& cuttingPlane); + void SetRevision(uint64_t revision) + { + revision_ = revision; + } + VolumeProjection GetProjection() const; unsigned int GetSliceIndex() const; @@ -73,7 +71,10 @@ return valid_; } - virtual uint64_t GetRevision(); + virtual uint64_t GetRevision() + { + return revision_; + } virtual ISceneLayer* CreateSceneLayer(const ILayerStyleConfigurator* configurator, const CoordinateSystem3D& cuttingPlane);