STIR 6.5.0
stir::SinogramIndices Class Reference

A very simple class to store all dincies to get a (2D) Sinogram. More...

#include "stir/SinogramIndices.h"

Inheritance diagram for stir::SinogramIndices:

Public Member Functions

 SinogramIndices ()
 an empty constructor (sets everything to 0)
 SinogramIndices (const int axial_pos_num, const int segment_num, const int timing_pos_num)
 constructor specifying indices
 SinogramIndices (const Bin &)
 constructor from Bin
int axial_pos_num () const
 get view number for const objects
int & axial_pos_num ()
 get reference to view number
bool operator< (const SinogramIndices &other) const
 comparison operator, only useful for sorting
bool operator== (const SinogramIndices &other) const
 test for equality
bool operator!= (const SinogramIndices &other) const
Public Member Functions inherited from stir::SegmentIndices
 SegmentIndices (const int segment_num=0, const int timing_pos_num=0)
 constructor segment number as arguments
int segment_num () const
 get segment number for const objects
int & segment_num ()
 get reference to segment number
int timing_pos_num () const
 get TOF index for const objects
int & timing_pos_num ()
 get reference to TOF index
bool operator< (const SegmentIndices &other) const
 comparison operator, only useful for sorting
bool operator== (const SegmentIndices &other) const
 test for equality
bool operator!= (const SegmentIndices &other) const

Detailed Description

A very simple class to store all dincies to get a (2D) Sinogram.

Constructor & Destructor Documentation

◆ SinogramIndices() [1/3]

stir::SinogramIndices::SinogramIndices ( )
inline

an empty constructor (sets everything to 0)

References stir::SegmentIndices::SegmentIndices(), and SinogramIndices().

Referenced by operator<(), operator==(), and SinogramIndices().

◆ SinogramIndices() [2/3]

stir::SinogramIndices::SinogramIndices ( const int axial_pos_num,
const int segment_num,
const int timing_pos_num )
inline

◆ SinogramIndices() [3/3]

stir::SinogramIndices::SinogramIndices ( const Bin & bin)
inline

constructor from Bin

References axial_pos_num(), and stir::SegmentIndices::SegmentIndices().

Member Function Documentation

◆ axial_pos_num()

int stir::SinogramIndices::axial_pos_num ( ) const
inline

◆ operator<()

bool stir::SinogramIndices::operator< ( const SinogramIndices & other) const
inline

comparison operator, only useful for sorting

order : (0,1) < (0,-1) < (1,1) ...

References stir::SegmentIndices::operator<(), and SinogramIndices().

◆ operator==()

bool stir::SinogramIndices::operator== ( const SinogramIndices & other) const
inline

test for equality

References stir::SegmentIndices::operator==(), and SinogramIndices().


The documentation for this class was generated from the following files: