comparison OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 1924:f4050908c6bc

display of overlays
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Mar 2022 12:24:35 +0100
parents ed4831e08961
children 990f396484b1
comparison
equal deleted inserted replaced
1923:f4cdcba8c32a 1924:f4050908c6bc
73 73
74 Data data_; 74 Data data_;
75 std::unique_ptr<Orthanc::DicomMap> tags_; 75 std::unique_ptr<Orthanc::DicomMap> tags_;
76 std::unique_ptr<Orthanc::DicomImageInformation> imageInformation_; // Lazy evaluation 76 std::unique_ptr<Orthanc::DicomImageInformation> imageInformation_; // Lazy evaluation
77 77
78 void ApplyRescaleAndDoseScaling(Orthanc::ImageAccessor& image,
79 bool useDouble) const;
80
81 public: 78 public:
82 explicit DicomInstanceParameters(const DicomInstanceParameters& other) : 79 explicit DicomInstanceParameters(const DicomInstanceParameters& other) :
83 data_(other.data_), 80 data_(other.data_),
84 tags_(other.tags_->Clone()) 81 tags_(other.tags_->Clone())
85 { 82 {
229 double GetDoseGridScaling() const 226 double GetDoseGridScaling() const
230 { 227 {
231 return data_.doseGridScaling_; 228 return data_.doseGridScaling_;
232 } 229 }
233 230
231 void ApplyRescaleAndDoseScaling(Orthanc::ImageAccessor& image,
232 bool useDouble) const;
233
234 double ApplyRescale(double value) const; 234 double ApplyRescale(double value) const;
235 235
236 // Required for RT-DOSE 236 // Required for RT-DOSE
237 bool ComputeRegularSpacing(double& target) const; 237 bool ComputeRegularSpacing(double& target) const;
238 238