STIR  6.2.0
Public Member Functions | Public Attributes | Protected Attributes | List of all members
stir::ExamInfo Class Reference

a class for storing information about 1 exam (or scan) More...

#include "stir/ExamInfo.h"

Public Member Functions

 ExamInfo (const ImagingModality modality=ImagingModality::Unknown)
 Default constructor. More...
 
const TimeFrameDefinitionsget_time_frame_definitions () const
 
TimeFrameDefinitionsget_time_frame_definitions ()
 
bool has_energy_information () const
 
ExamInfoclone () const
 Standard trick for a 'virtual copy-constructor'.
 
shared_ptr< ExamInfocreate_shared_clone () const
 Like clone() but return a shared_ptr.
 
void set_time_frame_definitions (const TimeFrameDefinitions &new_time_frame_definitions)
 
bool operator== (const ExamInfo &p1) const
 Warning: the operator == does not check that originating system is consistent!
 
shared_ptr< ExamInfocreate_shared_clone ()
 Clone and create shared_ptr of the copy.
 
std::string parameter_info () const
 Return a string with info on parameters. More...
 
Functions that return info related on the acquisition settings
float get_low_energy_thres () const
 Get the low energy boundary.
 
float get_high_energy_thres () const
 Get the high energy boundary.
 
float get_calibration_factor () const
 Get the calibration factor.
 
Radionuclide get_radionuclide () const
 Get the radionuclide name.
 
Functions that set values related on the acquisition settings
void set_low_energy_thres (float new_val)
 Set the low energy boundary.
 
void set_high_energy_thres (float new_val)
 Set the high energy boundary.
 
void set_calibration_factor (const float cal_val)
 Set the Calibration factor.
 
void set_radionuclide (const Radionuclide &arg)
 Set the radionuclide.
 
void set_energy_information_from (const ExamInfo &)
 Copy energy information from another ExamInfo.
 

Public Attributes

std::string originating_system
 
ImagingModality imaging_modality
 
PatientPosition patient_position
 
TimeFrameDefinitions time_frame_definitions
 
Radionuclide radionuclide
 
double start_time_in_secs_since_1970
 

Protected Attributes

float calibration_factor
 

Detailed Description

a class for storing information about 1 exam (or scan)

Todo:
this is very incomplete at the moment. Things like bed positions, gating, isotopes etc etc are all missing
Todo:
This should be an abtract registered object, in order to serve as a complete base function for every input data type.

Constructor & Destructor Documentation

◆ ExamInfo()

stir::ExamInfo::ExamInfo ( const ImagingModality  modality = ImagingModality::Unknown)
inlineexplicit

Default constructor.

Most fields take their default values (which might be invalid). start_time_in_secs_since_1970 is set to zero, energy window info to -1, to indicate that it is not initialised.

Member Function Documentation

◆ parameter_info()

std::string stir::ExamInfo::parameter_info ( ) const

Return a string with info on parameters.

the returned string is not intended for parsing.

References stir::secs_since_Unix_epoch_to_Interfile_datetime().

Referenced by stir::BinNormalisation::check().


The documentation for this class was generated from the following files: