19#ifndef __stir_ExamInfo_H__
20#define __stir_ExamInfo_H__
52 : imaging_modality(modality),
53 start_time_in_secs_since_1970(0.),
54 calibration_factor(-1.F),
55 low_energy_thres(-1.F),
60 std::string originating_system;
72 const TimeFrameDefinitions& get_time_frame_definitions()
const {
return time_frame_definitions; }
73 TimeFrameDefinitions& get_time_frame_definitions() {
return time_frame_definitions; }
75 double start_time_in_secs_since_1970;
80 inline float get_low_energy_thres()
const;
82 inline float get_high_energy_thres()
const;
84 inline float get_calibration_factor()
const;
86 inline Radionuclide get_radionuclide()
const;
92 inline void set_low_energy_thres(
float new_val);
94 inline void set_high_energy_thres(
float new_val);
97 inline void set_calibration_factor(
const float cal_val);
99 inline void set_radionuclide(
const Radionuclide& arg);
101 inline void set_energy_information_from(
const ExamInfo&);
104 inline bool has_energy_information()
const {
return (low_energy_thres > 0.f) && (up_energy_thres > 0.f); }
107 inline ExamInfo* clone()
const;
109 inline shared_ptr<ExamInfo> create_shared_clone()
const;
111 void set_time_frame_definitions(
const TimeFrameDefinitions& new_time_frame_definitions)
113 time_frame_definitions = new_time_frame_definitions;
117 bool operator==(
const ExamInfo& p1)
const;
124 std::string parameter_info()
const;
127 float calibration_factor;
137 float low_energy_thres;
146 float up_energy_thres;
This file declares the class stir::ExamInfo.
Declaration of class stir::ImagingModality.
Declaration of class stir::PatientPosition.
Declaration of class stir::Radionuclide.
Declaration of class stir::TimeFrameDefinitions.
ExamInfo(const ImagingModality modality=ImagingModality::Unknown)
Default constructor.
Definition ExamInfo.h:51
shared_ptr< ExamInfo > create_shared_clone()
Clone and create shared_ptr of the copy.
Definition ExamInfo.h:120
Class for encoding the modality.
Definition ImagingModality.h:35
Definition PatientPosition.h:29
A class for storing radionuclide information.
Definition Radionuclide.h:34
Class used for storing time frame durations.
Definition TimeFrameDefinitions.h:39
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...