GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSBox.hh
Go to the documentation of this file.
1 #ifndef GUARD_GGEMS_GEOMETRIES_GGEMSBOX_HH
2 #define GUARD_GGEMS_GEOMETRIES_GGEMSBOX_HH
3 
4 // ************************************************************************
5 // * This file is part of GGEMS. *
6 // * *
7 // * GGEMS is free software: you can redistribute it and/or modify *
8 // * it under the terms of the GNU General Public License as published by *
9 // * the Free Software Foundation, either version 3 of the License, or *
10 // * (at your option) any later version. *
11 // * *
12 // * GGEMS is distributed in the hope that it will be useful, *
13 // * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 // * GNU General Public License for more details. *
16 // * *
17 // * You should have received a copy of the GNU General Public License *
18 // * along with GGEMS. If not, see <https://www.gnu.org/licenses/>. *
19 // * *
20 // ************************************************************************
21 
35 
40 class GGEMS_EXPORT GGEMSBox : public GGEMSVolume
41 {
42  public:
50  GGEMSBox(GGfloat const& width, GGfloat const& height, GGfloat const& depth, std::string const& unit = "mm");
51 
55  ~GGEMSBox(void);
56 
62  GGEMSBox(GGEMSBox const& box) = delete;
63 
69  GGEMSBox& operator=(GGEMSBox const& box) = delete;
70 
76  GGEMSBox(GGEMSBox const&& box) = delete;
77 
83  GGEMSBox& operator=(GGEMSBox const&& box) = delete;
84 
89  void Initialize(void) override;
90 
95  void Draw(void) override;
96 
97  private:
101 };
102 
112 extern "C" GGEMS_EXPORT GGEMSBox* create_box(GGfloat const width, GGfloat const height, GGfloat const depth, char const* unit = "mm");
113 
119 extern "C" GGEMS_EXPORT void delete_box(GGEMSBox* box);
120 
130 extern "C" GGEMS_EXPORT void set_position_box(GGEMSBox* box, GGfloat const pos_x, GGfloat const pos_y, GGfloat const pos_z, char const* unit = "mm");
131 
138 extern "C" GGEMS_EXPORT void set_material_box(GGEMSBox* box, char const* material);
139 
146 extern "C" GGEMS_EXPORT void set_label_value_box(GGEMSBox* box, GGfloat const label_value);
147 
153 extern "C" GGEMS_EXPORT void initialize_box(GGEMSBox* box);
154 
160 extern "C" GGEMS_EXPORT void draw_box(GGEMSBox* box);
161 
162 #endif // End of GUARD_GGEMS_GEOMETRY_GGEMSBOX_HH
GGEMSVolume
Mother class handle volume.
Definition: GGEMSVolume.hh:41
GGEMSBox::width_
GGfloat width_
Definition: GGEMSBox.hh:99
set_label_value_box
void set_label_value_box(GGEMSBox *box, GGfloat const label_value)
Set the label value in box.
Definition: GGEMSBox.cc:194
GGEMSVolume.hh
Mother class handle solid volume.
GGEMSBox
Class GGEMSBox inheriting from GGEMSVolume handling Box solid.
Definition: GGEMSBox.hh:41
draw_box
void draw_box(GGEMSBox *box)
Draw analytical volume in voxelized phantom.
Definition: GGEMSBox.cc:212
create_box
GGEMSBox * create_box(GGfloat const width, GGfloat const height, GGfloat const depth, char const *unit="mm")
Create instance of GGEMSBox.
Definition: GGEMSBox.cc:155
GGEMSBox::GGEMSBox
GGEMSBox(GGEMSBox const &box)=delete
Avoid copy of the class by reference.
set_material_box
void set_material_box(GGEMSBox *box, char const *material)
Set the material of the box.
Definition: GGEMSBox.cc:185
GGEMSBox::height_
GGfloat height_
Definition: GGEMSBox.hh:98
GGEMSBox::GGEMSBox
GGEMSBox(GGEMSBox const &&box)=delete
Avoid copy of the class by rvalue reference.
delete_box
void delete_box(GGEMSBox *box)
Delete instance of GGEMSBox.
Definition: GGEMSBox.cc:164
GGEMSBox::operator=
GGEMSBox & operator=(GGEMSBox const &box)=delete
Avoid assignement of the class by reference.
GGEMSBox::depth_
GGfloat depth_
Definition: GGEMSBox.hh:100
GGEMSVolume::Draw
virtual void Draw(void)=0
Draw analytical volume in voxelized phantom.
GGEMSBox::operator=
GGEMSBox & operator=(GGEMSBox const &&box)=delete
Avoid copy of the class by rvalue reference.
initialize_box
void initialize_box(GGEMSBox *box)
Initialize the solid and store it in Phantom creator manager.
Definition: GGEMSBox.cc:203
GGEMSVolume::Initialize
virtual void Initialize(void)=0
Initialize the solid and store it in Phantom creator manager.
set_position_box
void set_position_box(GGEMSBox *box, GGfloat const pos_x, GGfloat const pos_y, GGfloat const pos_z, char const *unit="mm")
Set the position of the box.
Definition: GGEMSBox.cc:176
GGfloat
#define GGfloat
Definition: GGEMSTypes.hh:273