37 #include <boost/python.hpp>
44 using namespace boost::python;
83 CreateTubeVolume, 4, 6)
89 CreateSphereVolume, 3, 7)
106 = &G4EzVolume::SetColor;
110 using namespace pyEZgeom;
118 class_<G4EzVolume>(
"G4EzVolume",
"an easy way of geometry configuration")
119 .def(init<const G4String&>())
123 f_CreateTubeVolume())
125 f_CreateConeVolume())
127 f_CreateSphereVolume())
132 return_value_policy<reference_existing_object>())
135 return_value_policy<reference_existing_object>())
137 .def(
"PlaceIt", f1_PlaceIt,
138 f_PlaceIt()[return_value_policy<reference_existing_object>()])
140 f_PlaceIt()[return_value_policy<reference_existing_object>()])
142 f_ReplicateIt()[return_value_policy<reference_existing_object>()])
void SetWorldMaterial(G4Material *amaterial)
void ResetWorld(G4double dx, G4double dy, G4double dz)
static void Resize(G4double dx, G4double dy, G4double dz)
G4ThreeVector VoxelizeIt(G4int nx, G4int ny, G4int nz)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void CreateBoxVolume(G4Material *amaterial, G4double dx, G4double dy, G4double dz)
static void SetVisibility(G4bool qvis)
void CreateOrbVolume(G4Material *amaterial, G4double rmax)
void CreateTubeVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double dz, G4double phi0=0., G4double dphi=360 *deg)
const G4ThreeVector const G4double const
static void SetMaterial(G4Material *amaterial)
void(G4EzVolume::* f1_SetColor)(const G4Color &)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume, CreateSphereVolume, 3, 7) G4VPhysicalVolume *(G4EzVolume G4VPhysicalVolume *(G4EzVolume::* f2_PlaceIt)(const G4Transform3D &, G4int, G4EzVolume *)
void SetSensitiveDetector(G4VSensitiveDetector *asd)
const G4VSolid * GetSolid() const
void CreateSphereVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double phi0=0., G4double dphi=360.*deg, G4double theta0=0., G4double dtheta=180.*deg)
void SetWorldVisibility(G4bool qvis)
void SetSolid(G4VSolid *asolid)
void CreateConeVolume(G4Material *amaterial, G4double rmin1, G4double rmax1, G4double rmin2, G4double rmax2, G4double dz, G4double phi0=0., G4double dphi=360.*deg)
void SetVisibility(G4bool qvisible)
static G4RunManager * GetRunManager()
void ResizeWorld(G4double dx, G4double dy, G4double dz)
BOOST_PYTHON_MODULE(TestEm0)
void SetMaterial(G4Material *amaterial)
void(G4EzVolume::* f2_SetColor)(G4double, G4double, G4double)
G4VPhysicalVolume * ReplicateIt(G4EzVolume *parent, EAxis pAxis, G4int nReplicas, G4double width, G4double offset=0)
static void Reset(G4double dx, G4double dy, G4double dz)
G4Material * GetMaterial() const