17 #ifndef __stir_Polaris_MT_File__ 18 #define __stir_Polaris_MT_File__ 28 #ifdef BOOST_NO_STDC_NAMESPACE 76 unsigned int frame_num;
77 unsigned int rand_num;
79 Quaternion<float> quat;
82 unsigned int out_of_FOV;
85 typedef std::vector<Record>::const_iterator const_iterator;
92 Record operator[](
unsigned int n)
const;
95 const_iterator
begin()
const {
return vector_of_records.begin(); }
96 const_iterator end()
const {
return vector_of_records.end(); }
97 unsigned long num_samples()
const {
return vector_of_records.size(); }
101 const_iterator end_all_tags()
const {
return vector_of_tags.end(); }
102 unsigned long num_tags()
const {
return vector_of_tags.size(); }
105 std::time_t get_start_time_in_secs_since_1970();
108 std::time_t start_time_in_secs_since_1970;
110 std::vector<Record> vector_of_records;
112 std::vector<Record> vector_of_tags;
114 void read_Peter_Bloomfield_mt_file(
const std::string& mt_filename, std::istream& mt_stream,
const char*
const first_line);
115 void read_NDI_Toolviewer_mt_file(
const std::string& mt_filename, std::istream& mt_stream,
const char*
const first_line);
Declaration of class stir::Quaternion.
Declaration of class stir::Succeeded.
const_iterator begin() const
iterators that go through complete records
Definition: Polaris_MT_File.h:95
a class for parsing .mt files output by the Polaris software
Definition: Polaris_MT_File.h:69
const_iterator begin_all_tags() const
iterators that go through all tags recorded by the Polaris
Definition: Polaris_MT_File.h:100
defines the stir::CartesianCoordinate3D<coordT> class