/[gentoo-x86]/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch
Gentoo

Contents of /sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon May 21 04:49:12 2012 UTC (12 months ago) by heroxbd
Branch: MAIN
CVS Tags: HEAD
fix VisManager c++ signature mismatch, upstream http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1318

(Portage version: 2.1.10.57/cvs/Linux x86_64)

1 heroxbd 1.1 fix the C++ signature, upstream http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1318
2     diff --git a/source/visualization/pyG4VisManager.cc b/source/visualization/pyG4VisManager.cc
3     index 33bb0d4..bbd9e0a 100644
4     --- a/source/visualization/pyG4VisManager.cc
5     +++ b/source/visualization/pyG4VisManager.cc
6     @@ -39,7 +39,7 @@ using namespace boost::python;
7     // ====================================================================
8     // wrappers
9     // ====================================================================
10     -class PyG4VisManager : public G4VisManager {
11     +struct PyG4VisManager : G4VisManager, wrapper<G4VisManager> {
12     public:
13     PyG4VisManager() { SetVerboseLevel(quiet); }
14     ~PyG4VisManager() { }
15     @@ -62,7 +62,7 @@ void (PyG4VisManager::*f1_SetVerboseLevel)(G4int)
16     = &PyG4VisManager::SetVerboseLevel;
17     void (PyG4VisManager::*f2_SetVerboseLevel)(const G4String&)
18     = &PyG4VisManager::SetVerboseLevel;
19     - void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity)
20     +void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity)
21     = &PyG4VisManager::SetVerboseLevel;
22    
23     }
24     @@ -87,6 +87,7 @@ void export_G4VisManager()
25     .def("SetVerboseLevel", f2_SetVerboseLevel)
26     .def("SetVerboseLevel", f3_SetVerboseLevel)
27     .def("GetVerbosity", &PyG4VisManager::GetVerbosity)
28     + .staticmethod("GetVerbosity")
29     .def("Initialize", &PyG4VisManager::Initialize)
30     .def("RegisterGraphicsSystem", &PyG4VisManager::RegisterGraphicsSystem)
31     ;

  ViewVC Help
Powered by ViewVC 1.1.13