Mercurial > hg > orthanc-stone
comparison Framework/Volumes/DicomVolumeImage.h @ 1157:9ad62b031c47 broker
notes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 16 Nov 2019 16:08:03 +0100 |
parents | 34ee7204fde3 |
children | 5e9a4141b36c |
comparison
equal
deleted
inserted
replaced
1156:34ee7204fde3 | 1157:9ad62b031c47 |
---|---|
34 (MPR means MultiPlanar Reconstruction) | 34 (MPR means MultiPlanar Reconstruction) |
35 */ | 35 */ |
36 class DicomVolumeImage : public boost::noncopyable | 36 class DicomVolumeImage : public boost::noncopyable |
37 { | 37 { |
38 public: | 38 public: |
39 // TODO - Are these messages still useful? | |
39 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, GeometryReadyMessage, DicomVolumeImage); | 40 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, GeometryReadyMessage, DicomVolumeImage); |
40 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, ContentUpdatedMessage, DicomVolumeImage); | 41 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, ContentUpdatedMessage, DicomVolumeImage); |
41 | 42 |
42 private: | 43 private: |
43 uint64_t revision_; | 44 uint64_t revision_; // TODO - Is revision still useful? |
44 std::auto_ptr<VolumeImageGeometry> geometry_; | 45 std::auto_ptr<VolumeImageGeometry> geometry_; |
45 std::auto_ptr<ImageBuffer3D> image_; | 46 std::auto_ptr<ImageBuffer3D> image_; |
46 std::auto_ptr<DicomInstanceParameters> parameters_; | 47 std::auto_ptr<DicomInstanceParameters> parameters_; |
47 | 48 |
48 void CheckHasGeometry() const; | 49 void CheckHasGeometry() const; |
57 { | 58 { |
58 revision_ ++; | 59 revision_ ++; |
59 } | 60 } |
60 | 61 |
61 void Initialize(const VolumeImageGeometry& geometry, | 62 void Initialize(const VolumeImageGeometry& geometry, |
62 Orthanc::PixelFormat format, bool computeRange = false); | 63 Orthanc::PixelFormat format, |
64 bool computeRange = false); | |
63 | 65 |
66 // Used by volume slicers | |
64 void SetDicomParameters(const DicomInstanceParameters& parameters); | 67 void SetDicomParameters(const DicomInstanceParameters& parameters); |
65 | 68 |
66 uint64_t GetRevision() const | 69 uint64_t GetRevision() const |
67 { | 70 { |
68 return revision_; | 71 return revision_; |