20 #ifndef __stir_Shape_DiscretisedShape3D_H__ 21 #define __stir_Shape_DiscretisedShape3D_H__ 30 template <
int num_dimensions,
typename elemT>
31 class DiscretisedDensity;
80 error(
"DiscretisedShape3D::operator== not implemented. Sorry");
91 error(
"TODO: DiscretisedShape3D::scale not implemented. Sorry.");
131 Shape3D* clone()
const override;
140 int get_label_index()
const;
142 void set_label_index(
int label_index);
146 shared_ptr<DiscretisedDensity<3, float>> density_sptr;
153 void set_defaults()
override;
155 void initialise_keymap()
override;
161 bool post_processing()
override;
163 std::string filename;
This class is used to represent voxelised densities on a cuboid grid (3D).
Definition: FBP3DRPReconstruction.h:43
Inline-implementations of class stir::DiscretisedShape3D.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
bool operator==(const Shape3D &) const override
Compare shapes.
Definition: DiscretisedShape3D.h:78
The base class for all 3 dimensional shapes.
Definition: Shape3D.h:65
Declaration of stir::error()
Declaration of class stir::Shape3D.
static const char *const registered_name
Name which will be used when parsing a Shape3D object.
Definition: DiscretisedShape3D.h:56
void scale(const CartesianCoordinate3D< float > &scale3D) override
Scale shape.
Definition: DiscretisedShape3D.h:89
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
Declaration of class stir::RegisteredParsingObject.
A class for shapes that have been discretised as a volume.
Definition: DiscretisedShape3D.h:52