STIR  6.2.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 
26 START_NAMESPACE_STIR
27 
33 {
34  typedef SegmentIndices base_type;
35 
36 public:
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 
57 private:
58  int _view;
59 };
60 
61 END_NAMESPACE_STIR
62 
63 #include "stir/ViewgramIndices.inl"
64 
65 #endif
A very simple class to store segment numbers and any other indices that define a segment.
Definition: SegmentIndices.h:33
Definition of class stir::SegmentIndices.
inline implementations for class stir::ViewgramIndices
A very simple class to store all dincies to get a (2D) Viewgram.
Definition: ViewgramIndices.h:32