Import Geant4 11.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2025-06-26 09:17:29 +02:00
parent 20a218bbe1
commit a499fb82e9
1941 changed files with 203285 additions and 95593 deletions
@@ -75,6 +75,16 @@ public:
m_session.to_render(this);
}
bool window_size(unsigned int& a_w,unsigned int& a_h) {
a_w = parent::width();
a_h = parent::height();
return true;
}
void render_area_size(unsigned int& a_w,unsigned int& a_h) {
a_w = parent::width();
a_h = parent::height();
}
void set_device_interactor(sg::device_interactor*) {}
public:
+19
View File
@@ -477,6 +477,7 @@ public:
}
}
}
size_t num = m_cols.size();
if(!num) {
a_out << "tools::rcsv::ntuple::initialize :"
@@ -664,9 +665,27 @@ public:
a_out << "tools::rcsv::ntuple::initialize(booking) :"
<< " zero columns."
<< std::endl;
m_sep = 0;
m_sz = 0;
m_rows = -1;
m_hippo = false;
return false;
}
{tools_vforcit(column_binding,a_bd.columns(),it) {
if(!find_named<read::icol>(m_cols,(*it).name())) {
a_out << "tools::rcsv::ntuple::initialize :"
<< " error : for column binding with name " << sout((*it).name()) << ", no ntuple column found."
<< std::endl;
safe_clear<read::icol>(m_cols);
m_sep = 0;
m_sz = 0;
m_rows = -1;
m_hippo = false;
return false;
}
}}
//a_out << "tools::rroot::ntuple::initialize :"
// << " number of columns " << num << "."
// << std::endl;
+3 -1
View File
@@ -705,8 +705,10 @@ public:
{tools_vforcit(column_binding,a_bd.columns(),it) {
if(!find_named<read::icol>(m_cols,(*it).name())) {
a_out << "tools::rroot::ntuple::initialize :"
<< " warning : for column binding with name " << sout((*it).name()) << ", no ntuple column found."
<< " error : for column binding with name " << sout((*it).name()) << ", no ntuple column found."
<< std::endl;
safe_clear<read::icol>(m_cols);
return false;
}
}}
+68 -51
View File
@@ -104,8 +104,44 @@ protected:
unsigned int m_h;
};
class mouse_down_event : public event {
class position_modifiers {
public:
position_modifiers(int a_x,int a_y,bool a_shift_modifier,bool a_control_modifier)
:m_x(a_x)
,m_y(a_y)
,m_shift_modifier(a_shift_modifier)
,m_control_modifier(a_control_modifier)
{}
virtual ~position_modifiers(){}
public:
position_modifiers(const position_modifiers& a_from)
:m_x(a_from.m_x)
,m_y(a_from.m_y)
,m_shift_modifier(a_from.m_shift_modifier)
,m_control_modifier(a_from.m_control_modifier)
{}
position_modifiers& operator=(const position_modifiers& a_from){
m_x = a_from.m_x;
m_y = a_from.m_y;
m_shift_modifier = a_from.m_shift_modifier;
m_control_modifier = a_from.m_control_modifier;
return *this;
}
public:
int x() const {return m_x;}
int y() const {return m_y;}
bool shift_modifier() const {return m_shift_modifier;}
bool control_modifier() const {return m_control_modifier;}
protected:
int m_x;
int m_y;
bool m_shift_modifier;
bool m_control_modifier;
};
class mouse_down_event : public event, public position_modifiers {
typedef event parent;
typedef position_modifiers parent_pos_mod;
public:
#ifdef TOOLS_SG_EVENT_ID_CAST
static cid id_class() {return parent::id_class()+2;}
@@ -122,33 +158,25 @@ public:
#endif
virtual event* copy() const {return new mouse_down_event(*this);}
public:
mouse_down_event(int a_x,int a_y) //signed because of wall.
:m_x(a_x)
,m_y(a_y)
mouse_down_event(int a_x,int a_y,bool a_shift_modifier,bool a_control_modifier)
:parent_pos_mod(a_x,a_y,a_shift_modifier,a_control_modifier)
{}
virtual ~mouse_down_event(){}
public:
mouse_down_event(const mouse_down_event& a_from)
:event(a_from)
,m_x(a_from.m_x)
,m_y(a_from.m_y)
:parent(a_from)
,parent_pos_mod(a_from)
{}
mouse_down_event& operator=(const mouse_down_event& a_from){
event::operator=(a_from);
m_x = a_from.m_x;
m_y = a_from.m_y;
parent::operator=(a_from);
parent_pos_mod::operator=(a_from);
return *this;
}
public:
int x() const {return m_x;}
int y() const {return m_y;}
protected:
int m_x;
int m_y;
};
class mouse_up_event : public event {
class mouse_up_event : public event, public position_modifiers {
typedef event parent;
typedef position_modifiers parent_pos_mod;
public:
#ifdef TOOLS_SG_EVENT_ID_CAST
static cid id_class() {return parent::id_class()+3;}
@@ -165,33 +193,25 @@ public:
#endif
virtual event* copy() const {return new mouse_up_event(*this);}
public:
mouse_up_event(int a_x,int a_y) //signed because of wall.
:m_x(a_x)
,m_y(a_y)
mouse_up_event(int a_x,int a_y,bool a_shift_modifier,bool a_control_modifier)
:parent_pos_mod(a_x,a_y,a_shift_modifier,a_control_modifier)
{}
virtual ~mouse_up_event(){}
public:
mouse_up_event(const mouse_up_event& a_from)
:event(a_from)
,m_x(a_from.m_x)
,m_y(a_from.m_y)
:parent(a_from)
,parent_pos_mod(a_from)
{}
mouse_up_event& operator=(const mouse_up_event& a_from){
event::operator=(a_from);
m_x = a_from.m_x;
m_y = a_from.m_y;
parent::operator=(a_from);
parent_pos_mod::operator=(a_from);
return *this;
}
public:
int x() const {return m_x;}
int y() const {return m_y;}
protected:
int m_x;
int m_y;
};
class mouse_move_event : public event {
class mouse_move_event : public event, public position_modifiers {
typedef event parent;
typedef position_modifiers parent_pos_mod;
public:
#ifdef TOOLS_SG_EVENT_ID_CAST
static cid id_class() {return parent::id_class()+4;}
@@ -208,11 +228,10 @@ public:
#endif
virtual event* copy() const {return new mouse_move_event(*this);}
public:
mouse_move_event(int a_x,int a_y, //signed because of wall.
mouse_move_event(int a_x,int a_y,bool a_shift_modifier,bool a_control_modifier,
int a_ox,int a_oy,
bool a_touch) //for sliders.
:m_x(a_x)
,m_y(a_y)
:parent_pos_mod(a_x,a_y,a_shift_modifier,a_control_modifier)
,m_ox(a_ox)
,m_oy(a_oy)
,m_touch(a_touch)
@@ -220,17 +239,15 @@ public:
virtual ~mouse_move_event(){}
public:
mouse_move_event(const mouse_move_event& a_from)
:event(a_from)
,m_x(a_from.m_x)
,m_y(a_from.m_y)
:parent(a_from)
,parent_pos_mod(a_from)
,m_ox(a_from.m_ox)
,m_oy(a_from.m_oy)
,m_touch(a_from.m_touch)
{}
mouse_move_event& operator=(const mouse_move_event& a_from){
event::operator=(a_from);
m_x = a_from.m_x;
m_y = a_from.m_y;
parent::operator=(a_from);
parent_pos_mod::operator=(a_from);
m_ox = a_from.m_ox;
m_oy = a_from.m_oy;
@@ -239,14 +256,10 @@ public:
return *this;
}
public:
int x() const {return m_x;}
int y() const {return m_y;}
int ox() const {return m_ox;}
int oy() const {return m_oy;}
bool is_touch() const {return m_touch;}
protected:
int m_x;
int m_y;
int m_ox;
int m_oy; //+ = up.
// etc :
@@ -385,8 +398,9 @@ protected:
key_code m_key;
};
class wheel_rotate_event : public event {
class wheel_rotate_event : public event, public position_modifiers {
typedef event parent;
typedef position_modifiers parent_pos_mod;
public:
#ifdef TOOLS_SG_EVENT_ID_CAST
static cid id_class() {return parent::id_class()+8;}
@@ -403,17 +417,20 @@ public:
#endif
virtual event* copy() const {return new wheel_rotate_event(*this);}
public:
wheel_rotate_event(int a_angle)
:m_angle(a_angle)
wheel_rotate_event(int a_angle,int a_x,int a_y,bool a_shift_modifier,bool a_control_modifier)
:parent_pos_mod(a_x,a_y,a_shift_modifier,a_control_modifier)
,m_angle(a_angle)
{}
virtual ~wheel_rotate_event(){}
public:
wheel_rotate_event(const wheel_rotate_event& a_from)
:event(a_from)
:parent(a_from)
,parent_pos_mod(a_from)
,m_angle(a_from.m_angle)
{}
wheel_rotate_event& operator=(const wheel_rotate_event& a_from){
event::operator=(a_from);
parent::operator=(a_from);
parent_pos_mod::operator=(a_from);
m_angle = a_from.m_angle;
return *this;
}
+5 -5
View File
@@ -5,13 +5,13 @@
#define tools_version
#define TOOLS_MAJOR_VERSION 6
#define TOOLS_MINOR_VERSION 3
#define TOOLS_PATCH_VERSION 3
#define TOOLS_VERSION "6.3.3"
#define TOOLS_VERSION_VRP "v6r3p3"
#define TOOLS_MINOR_VERSION 5
#define TOOLS_PATCH_VERSION 1
#define TOOLS_VERSION "6.5.1"
#define TOOLS_VERSION_VRP "v6r5p1"
namespace tools {
inline unsigned int version() {return 60303;}
inline unsigned int version() {return 60501;}
}
#endif