STIR 6.4.0
ViewgramIndices.h
Go to the documentation of this file.
1//
2//
12/*
13 Copyright (C) 2023, University College London
14 This file is part of STIR.
15
16 SPDX-License-Identifier: Apache-2.0
17
18 See STIR/LICENSE.txt for details
19*/
20
21#ifndef __stir_ViewgramIndices_h__
22#define __stir_ViewgramIndices_h__
23
24#include "stir/SegmentIndices.h"
25
26START_NAMESPACE_STIR
27
33{
34 typedef SegmentIndices base_type;
35
36public:
38 // TODOTOF remove default
39 inline ViewgramIndices();
41 inline ViewgramIndices(const int view_num, const int segment_num, const int timing_pos_num = 0);
42
44 inline int view_num() const;
45
47 inline int& view_num();
48
50
51 inline bool operator<(const ViewgramIndices& other) const;
52
54 inline bool operator==(const ViewgramIndices& other) const;
55 inline bool operator!=(const ViewgramIndices& other) const;
56
57private:
58 int _view;
59};
60
61END_NAMESPACE_STIR
62
64
65#endif
Definition of class stir::SegmentIndices.
inline implementations for class stir::ViewgramIndices
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
SegmentIndices(const int segment_num=0, const int timing_pos_num=0)
constructor segment number as arguments
Definition SegmentIndices.inl:26
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44
ViewgramIndices()
an empty constructor (sets everything to 0)
Definition ViewgramIndices.inl:25
bool operator==(const ViewgramIndices &other) const
test for equality
Definition ViewgramIndices.inl:54
int view_num() const
get view number for const objects
Definition ViewgramIndices.inl:36
bool operator<(const ViewgramIndices &other) const
comparison operator, only useful for sorting
Definition ViewgramIndices.inl:48