STIR 6.4.0
ExamInfo.inl
Go to the documentation of this file.
1/*
2 Copyright (C) 2016, 2020, University College London
3 This file is part of STIR.
4
5 SPDX-License-Identifier: Apache-2.0
6
7 See STIR/LICENSE.txt for details
8*/
16
17START_NAMESPACE_STIR
18
19ExamInfo*
21{
22 return static_cast<ExamInfo*>(new ExamInfo(*this));
23}
24
25shared_ptr<ExamInfo>
27{
28 shared_ptr<ExamInfo> sptr(this->clone());
29 return sptr;
30}
31
32void
34{
35 low_energy_thres = new_val;
36}
37
38void
40{
41 up_energy_thres = new_val;
42}
43
44void
46{
47 calibration_factor = cal_val;
48}
49
50void
52{
53 radionuclide = arg;
54}
55
56float
58{
59 return low_energy_thres;
60}
61
62float
64{
65 return up_energy_thres;
66}
67
68float
70{
71 return this->calibration_factor;
72}
73
76{
77 return radionuclide;
78}
79
80void
82{
83 this->up_energy_thres = other.up_energy_thres;
84 this->low_energy_thres = other.low_energy_thres;
85}
86
87END_NAMESPACE_STIR
float get_low_energy_thres() const
Get the low energy boundary.
Definition ExamInfo.inl:57
float get_calibration_factor() const
Get the calibration factor.
Definition ExamInfo.inl:69
void set_energy_information_from(const ExamInfo &)
Copy energy information from another ExamInfo.
Definition ExamInfo.inl:81
ExamInfo(const ImagingModality modality=ImagingModality::Unknown)
Default constructor.
Definition ExamInfo.h:51
float get_high_energy_thres() const
Get the high energy boundary.
Definition ExamInfo.inl:63
shared_ptr< ExamInfo > create_shared_clone() const
Like clone() but return a shared_ptr.
Definition ExamInfo.inl:26
Radionuclide get_radionuclide() const
Get the radionuclide name.
Definition ExamInfo.inl:75
ExamInfo * clone() const
Standard trick for a 'virtual copy-constructor'.
Definition ExamInfo.inl:20
void set_radionuclide(const Radionuclide &arg)
Set the radionuclide.
Definition ExamInfo.inl:51
void set_high_energy_thres(float new_val)
Set the high energy boundary.
Definition ExamInfo.inl:39
void set_low_energy_thres(float new_val)
Set the low energy boundary.
Definition ExamInfo.inl:33
void set_calibration_factor(const float cal_val)
Set the Calibration factor.
Definition ExamInfo.inl:45
A class for storing radionuclide information.
Definition Radionuclide.h:34