STIR  6.2.0
Public Member Functions | Protected Types | List of all members
stir::CartesianCoordinate3D< coordT > Class Template Reference

a templated class for 3-dimensional coordinates. More...

#include "stir/CartesianCoordinate3D.h"

Inheritance diagram for stir::CartesianCoordinate3D< coordT >:
Inheritance graph
[legend]

Public Member Functions

 CartesianCoordinate3D (const coordT &, const coordT &, const coordT &)
 
 CartesianCoordinate3D (const BasicCoordinate< 3, coordT > &c)
 
CartesianCoordinate3Doperator= (const BasicCoordinate< 3, coordT > &c)
 
CartesianCoordinate3Doperator= (const coordT &c)
 
coordT & z ()
 
coordT z () const
 
coordT & y ()
 
coordT y () const
 
coordT & x ()
 
coordT x () const
 
- Public Member Functions inherited from stir::Coordinate3D< coordT >
 Coordinate3D (const coordT &, const coordT &, const coordT &)
 
 Coordinate3D (const BasicCoordinate< 3, coordT > &c)
 
Coordinate3Doperator= (const BasicCoordinate< 3, coordT > &c)
 
- Public Member Functions inherited from stir::BasicCoordinate< 3, coordT >
 BasicCoordinate ()
 default constructor. NO initialisation
 
 BasicCoordinate (const coordT &)
 constructor that sets all elements equal to value.
 
 BasicCoordinate (const BasicCoordinate< num_dimensions, coordT2 > &c)
 constructor from different type of coordT More...
 
BasicCoordinateoperator= (const BasicCoordinate &c)
 assignment
 
bool operator== (const BasicCoordinate &c) const
 comparison
 
bool operator< (const BasicCoordinate &c) const
 less-than (using lexical ordering)
 
coordT & operator[] (const int d)
 Return value at index t (which is 1-based)
 
coordT const & operator[] (const int d) const
 Return value at index t (which is 1-based) if the BasicCoordinate object is const. More...
 
coordT & at (const int d)
 Return value at index t (which is 1-based), but with range checking (throws std::out_of_range)
 
coordT const & at (const int d) const
 Return value at index t (which is 1-based) if the BasicCoordinate object is const, but with range checking (throws std::out_of_range)
 
bool empty () const
 
BasicCoordinateoperator+= (const BasicCoordinate &c)
 
BasicCoordinateoperator+= (const coordT &a)
 
BasicCoordinateoperator-= (const BasicCoordinate &c)
 
BasicCoordinateoperator-= (const coordT &a)
 
BasicCoordinateoperator*= (const BasicCoordinate &c)
 
BasicCoordinateoperator*= (const coordT &a)
 
BasicCoordinateoperator/= (const BasicCoordinate &c)
 
BasicCoordinateoperator/= (const coordT &a)
 
BasicCoordinate operator+ (const BasicCoordinate &c) const
 
BasicCoordinate operator- (const BasicCoordinate &c) const
 
BasicCoordinate operator* (const BasicCoordinate &c) const
 
BasicCoordinate operator/ (const BasicCoordinate &c) const
 
BasicCoordinate operator+ (const coordT &a) const
 
BasicCoordinate operator- (const coordT &a) const
 
BasicCoordinate operator- () const
 
BasicCoordinate operator* (const coordT &a) const
 
BasicCoordinate operator/ (const coordT &a) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void fill (const coordT &)
 fill elements with value
 

Protected Types

typedef Coordinate3D< coordT > base_type
 
typedef base_type::base_type basebase_type
 
- Protected Types inherited from stir::Coordinate3D< coordT >
typedef BasicCoordinate< 3, coordT > base_type
 

Additional Inherited Members

- Public Types inherited from stir::BasicCoordinate< 3, coordT >
typedef std::random_access_iterator_tag iterator_category
 
typedef coordT value_type
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef value_type * iterator
 
typedef value_type * pointer
 
typedef const value_type * const_iterator
 
typedef std::ptrdiff_t difference_type
 
typedef std::size_t size_type
 
- Static Public Member Functions inherited from stir::BasicCoordinate< 3, coordT >
static int get_min_index ()
 
static int get_max_index ()
 
static unsigned size ()
 

Detailed Description

template<class coordT>
class stir::CartesianCoordinate3D< coordT >

a templated class for 3-dimensional coordinates.

It is derived from Coordinate3D<coordT>. The only new methods are z(),y(),x(), corresponding resp. to operator[](1), operator[](2), operator[](3)

Warning
The constructor uses the order CartesianCoordinate3D<coordT>(z,y,x)

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