STIR  6.2.0
Public Member Functions | List of all members
stir::ViewgramIndices Class Reference

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

#include "stir/ViewgramIndices.h"

Inheritance diagram for stir::ViewgramIndices:
Inheritance graph
[legend]

Public Member Functions

 ViewgramIndices ()
 an empty constructor (sets everything to 0)
 
 ViewgramIndices (const int view_num, const int segment_num, const int timing_pos_num=0)
 constructor taking view and segment number as arguments
 
int view_num () const
 get view number for const objects
 
int & view_num ()
 get reference to view number
 
bool operator< (const ViewgramIndices &other) const
 comparison operator, only useful for sorting More...
 
bool operator== (const ViewgramIndices &other) const
 test for equality
 
bool operator!= (const ViewgramIndices &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 More...
 
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) Viewgram.

Member Function Documentation

◆ operator<()

bool stir::ViewgramIndices::operator< ( const ViewgramIndices other) const
inline

comparison operator, only useful for sorting

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


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