STIR  6.2.0
ProjMatrixElemsForOneDenselValue.h
Go to the documentation of this file.
1 //
2 //
12 /*
13  Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
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_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
22 #define __stir_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
23 
24 #include "stir/Bin.h"
25 
26 START_NAMESPACE_STIR
27 
42 {
43 public:
44  explicit inline ProjMatrixElemsForOneDenselValue(const Bin&);
45 
47 
51  inline ProjMatrixElemsForOneDenselValue& operator*=(const float d);
53  inline ProjMatrixElemsForOneDenselValue& operator+=(const float d);
55  inline ProjMatrixElemsForOneDenselValue& operator/=(const float d);
56 
57  // TODO
58  inline float get_value() const { return get_bin_value(); }
59  inline void set_value(const float v) { set_bin_value(v); }
60 
62 
64 
67  static inline bool coordinates_equal(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
68 
70  static inline bool coordinates_less(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
71 
73  friend inline bool operator==(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
74 
76  friend inline bool operator<(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
77 };
78 
79 END_NAMESPACE_STIR
80 
82 
83 #endif // __ProjMatrixElemsForOneDenselValue_H__
Stores voxel coordinates and the value of the matrix element.
Definition: ProjMatrixElemsForOneDenselValue.h:41
A class for storing coordinates and value of a single projection bin.
Definition: Bin.h:48
Declaration of class stir::Bin.
Inline implementations for class stir::ProjMatrixElemsForOneDenselValue.