Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4Box.cc,v 1.4 2006/06/29 15:31:50 gunter Exp $
|
||||
// $Name: geant4-09-00 $
|
||||
// $Id: pyG4Box.cc,v 1.6 2007/07/12 10:01:53 kmura Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// ====================================================================
|
||||
// pyG4Box.cc
|
||||
//
|
||||
@@ -35,6 +35,21 @@
|
||||
|
||||
using namespace boost::python;
|
||||
|
||||
// ====================================================================
|
||||
// wrappers
|
||||
// ====================================================================
|
||||
namespace pyG4Box {
|
||||
|
||||
G4Box* CreateBox(const G4String& name, G4double pX, G4double pY,
|
||||
G4double pZ)
|
||||
{
|
||||
return new G4Box(name, pX, pY, pZ);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
using namespace pyG4Box;
|
||||
|
||||
// ====================================================================
|
||||
// module definition
|
||||
// ====================================================================
|
||||
@@ -51,9 +66,12 @@ void export_G4Box()
|
||||
.def("SetXHalfLength", &G4Box::SetXHalfLength)
|
||||
.def("SetYHalfLength", &G4Box::SetYHalfLength)
|
||||
.def("SetZHalfLength", &G4Box::SetZHalfLength)
|
||||
.def("GetCubicVolume", &G4Box::GetCubicVolume)
|
||||
// operators
|
||||
.def(self_ns::str(self))
|
||||
;
|
||||
|
||||
// Create solid
|
||||
def("CreateBox", CreateBox, return_value_policy<manage_new_object>());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user