STIR 6.5.0
CListModeDataBasedOnCoordinateMap.h
Go to the documentation of this file.
1/*
2 Copyright 2026, University Medical Center Groningen
3 Copyright 2020 Positrigo AG, Zurich
4
5 SPDX-License-Identifier: Apache-2.0
6 See STIR/LICENSE.txt for details
7
8 */
9
19
20#ifndef __stir_listmode_CListModeDataBasedOnCoordinateMap_H__
21#define __stir_listmode_CListModeDataBasedOnCoordinateMap_H__
22
23#include <string>
24#include <vector>
25
28#include "stir/shared_ptr.h"
29
30// #include "stir/listmode/CListRecordSAFIR.h"
31
32START_NAMESPACE_STIR
33
34class CListModeDataBasedOnCoordinateMap : public CListModeData
35{
36public:
37 std::string get_name() const override;
38
39 // virtual shared_ptr<InputStreamWithRecords<CListRecord, bool>> get_current_lm_file() = 0;
40
41 SavedPosition save_get_position() override = 0;
42
43 Succeeded set_get_position(const SavedPosition& pos) override = 0;
44
45protected:
46 std::string listmode_filename;
47
48 mutable std::vector<unsigned int> saved_get_positions;
49 virtual Succeeded open_lm_file() const = 0;
50
51 shared_ptr<DetectorCoordinateMap> map;
52};
53
54END_NAMESPACE_STIR
55
56#endif
Declaration of class stir::CListModeData.
Declaration of class stir::DetectorCoordinateMap.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...