GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSSphere Class Reference

Class GGEMSSphere inheriting from GGEMSVolume handling Sphere solid. More...

#include "GGEMSSphere.hh"

Inheritance diagram for GGEMSSphere:
Inheritance graph
Collaboration diagram for GGEMSSphere:
Collaboration graph

Public Member Functions

 GGEMSSphere (GGfloat const &radius, std::string const &unit="mm")
 GGEMSSphere constructor. More...
 
 ~GGEMSSphere (void)
 GGEMSSphere destructor. More...
 
 GGEMSSphere (GGEMSSphere const &sphere)=delete
 Avoid copy of the class by reference. More...
 
GGEMSSphereoperator= (GGEMSSphere const &sphere)=delete
 Avoid assignement of the class by reference. More...
 
 GGEMSSphere (GGEMSSphere const &&sphere)=delete
 Avoid copy of the class by rvalue reference. More...
 
GGEMSSphereoperator= (GGEMSSphere const &&sphere)=delete
 Avoid copy of the class by rvalue reference. More...
 
void Initialize (void) override
 Initialize the solid and store it in Phantom creator manager. More...
 
void Draw (void) override
 Draw analytical volume in voxelized phantom. More...
 
- Public Member Functions inherited from GGEMSVolume
 GGEMSVolume (void)
 GGEMSVolume constructor. More...
 
virtual ~GGEMSVolume (void)
 GGEMSVolume destructor. More...
 
 GGEMSVolume (GGEMSVolume const &volume)=delete
 Avoid copy of the class by reference. More...
 
GGEMSVolumeoperator= (GGEMSVolume const &volume)=delete
 Avoid assignement of the class by reference. More...
 
 GGEMSVolume (GGEMSVolume const &&volume)=delete
 Avoid copy of the class by rvalue reference. More...
 
GGEMSVolumeoperator= (GGEMSVolume const &&volume)=delete
 Avoid copy of the class by rvalue reference. More...
 
void SetLabelValue (GGfloat const &label_value)
 Set the label value. More...
 
void SetPosition (GGfloat const &pos_x, GGfloat const &pos_y, GGfloat const &pos_z, std::string const &unit="mm")
 Set the solid phantom position. More...
 
void SetMaterial (std::string const &material)
 set the material, Air by default More...
 

Private Attributes

GGfloat radius_
 

Additional Inherited Members

- Protected Attributes inherited from GGEMSVolume
GGfloat label_value_
 
GGfloat3 positions_
 
cl::Kernel ** kernel_draw_volume_
 

Detailed Description

Class GGEMSSphere inheriting from GGEMSVolume handling Sphere solid.

Definition at line 40 of file GGEMSSphere.hh.

Constructor & Destructor Documentation

◆ GGEMSSphere() [1/3]

GGEMSSphere::GGEMSSphere ( GGfloat const &  radius,
std::string const &  unit = "mm" 
)

GGEMSSphere constructor.

Parameters
radius- Radius of the sphere
unit- Unit of distance

Definition at line 39 of file GGEMSSphere.cc.

◆ ~GGEMSSphere()

GGEMSSphere::~GGEMSSphere ( void  )

GGEMSSphere destructor.

Definition at line 53 of file GGEMSSphere.cc.

◆ GGEMSSphere() [2/3]

GGEMSSphere::GGEMSSphere ( GGEMSSphere const &  sphere)
delete

Avoid copy of the class by reference.

Parameters
sphere- reference on the sphere solid volume

◆ GGEMSSphere() [3/3]

GGEMSSphere::GGEMSSphere ( GGEMSSphere const &&  sphere)
delete

Avoid copy of the class by rvalue reference.

Parameters
sphere- rvalue reference on the sphere solid volume

Member Function Documentation

◆ Draw()

void GGEMSSphere::Draw ( void  )
overridevirtual

Draw analytical volume in voxelized phantom.

Implements GGEMSVolume.

Definition at line 87 of file GGEMSSphere.cc.

◆ Initialize()

void GGEMSSphere::Initialize ( void  )
overridevirtual

Initialize the solid and store it in Phantom creator manager.

Implements GGEMSVolume.

Definition at line 64 of file GGEMSSphere.cc.

◆ operator=() [1/2]

GGEMSSphere & GGEMSSphere::operator= ( GGEMSSphere const &&  sphere)
delete

Avoid copy of the class by rvalue reference.

Parameters
sphere- rvalue reference on the sphere solid volume

◆ operator=() [2/2]

GGEMSSphere & GGEMSSphere::operator= ( GGEMSSphere const &  sphere)
delete

Avoid assignement of the class by reference.

Parameters
sphere- reference on the sphere solid volume

Member Data Documentation

◆ radius_

GGfloat GGEMSSphere::radius_
private

Radius of the sphere

Definition at line 96 of file GGEMSSphere.hh.


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