20#ifndef __stir_Shape_Box3D_h__
21#define __stir_Shape_Box3D_h__
94 void set_defaults()
override;
95 void initialise_keymap()
override;
96 bool post_processing()
override;
Declaration of class stir::RegisteredParsingObject.
Declaration of class stir::Shape3DWithOrientation.
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
static const char *const registered_name
Name which will be used when parsing a Shape3D object.
Definition Box3D.h:53
float length_z
Length in z-direction if the shape is not rotated.
Definition Box3D.h:91
bool is_inside_shape(const CartesianCoordinate3D< float > &coord) const override
determine if a point is inside the shape or not (up to floating point errors)
Definition Box3D.cxx:112
bool operator==(const Box3D &) const
Compare boxes.
Definition Box3D.cxx:148
float get_geometric_volume() const override
Compute approximate volume.
Definition Box3D.cxx:125
Shape3D * clone() const override
Allocate a new Shape3D object which is a copy of the current one.
Definition Box3D.cxx:142
float length_y
Length in y-direction if the shape is not rotated.
Definition Box3D.h:89
float length_x
Length in x-direction if the shape is not rotated.
Definition Box3D.h:87
a templated class for 3-dimensional coordinates.
Definition CartesianCoordinate3D.h:53
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
The base class for all 3 dimensional shapes.
Definition Shape3D.h:66
Array< 2, elemT > diagonal_matrix(const unsigned dimension, const elemT value)
construct a diagonal matrix with all elements on the diagonal equal
Definition MatrixFunction.inl:182