Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
-20
View File
@@ -8,8 +8,6 @@
#include <vector>
#include <ostream>
//#define TOOLS_SG_GSTOS_DEBUG
namespace tools {
namespace sg {
@@ -30,20 +28,11 @@ protected:
unsigned int get_tex_id(std::ostream& a_out,render_manager& a_mgr,const img_byte& a_img,bool a_NEAREST) {
unsigned int _id = _find(&a_mgr);
if(_id && !a_mgr.is_gsto_id_valid(_id)){
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_tex_id : " << _id << " not valid." << std::endl;
#endif
clean_gstos(&a_mgr);
_id = 0;
}
if(!_id) {
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_tex_id : create_texture ... " << std::endl;
#endif
_id = a_mgr.create_texture(a_img,a_NEAREST);
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_tex_id : create_texture : _id " << _id << "." << std::endl;
#endif
if(!_id) {
a_out << "tools::sg::gstos::get_tex_id :"
<< " render_manager.create_texture() failed."
@@ -60,20 +49,11 @@ protected:
unsigned int get_gsto_id(std::ostream& a_out,render_manager& a_mgr){
unsigned int _id = _find(&a_mgr);
if(_id && !a_mgr.is_gsto_id_valid(_id)){
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_gsto_id : " << _id << " not valid." << std::endl;
#endif
clean_gstos(&a_mgr);
_id = 0;
}
if(!_id) {
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_gsto_id : create_gsto ..." << std::endl;
#endif
_id = create_gsto(a_out,a_mgr);
#ifdef TOOLS_SG_GSTOS_DEBUG
a_out << "debug : tools::sg::gstos::get_gsto_id : create_gsto : _id " << _id << "." << std::endl;
#endif
if(!_id) {
// could be ok if there is no graphical data to load.
//a_out << "tools::sg::gstos::get_gsto_id :"