18 #ifndef __stir_TimeFrameDefinitions_H__ 19 #define __stir_TimeFrameDefinitions_H__ 70 TimeFrameDefinitions(
const std::vector<double>& start_times,
const std::vector<double>& durations);
77 double get_start_time(
unsigned int frame_num)
const;
78 double get_end_time(
unsigned int frame_num)
const;
79 double get_duration(
unsigned int frame_num)
const;
83 double get_start_time()
const;
85 double get_end_time()
const;
88 unsigned int get_num_frames()
const;
90 unsigned int get_num_time_frames()
const;
95 unsigned int get_time_frame_num(
const double start_time,
const double end_time)
const;
101 void set_time_frame(
const int frame_num,
const double start,
const double end);
107 std::vector<std::pair<double, double>> frame_times;
108 void read_fdef_file(
const std::string& filename);
Class used for storing time frame durations.
Definition: TimeFrameDefinitions.h:38
basic configuration include file
void set_num_time_frames(int num_time_frames)
Set number of time frames.
Definition: TimeFrameDefinitions.h:98