36#include <boost/python.hpp>
43using namespace boost::python;
82 CreateTubeVolume, 4, 6)
88 CreateSphereVolume, 3, 7)
105 = &G4EzVolume::SetColor;
117 class_<G4EzVolume>(
"G4EzVolume",
"an easy way of geometry configuration")
118 .def(init<const G4String&>())
122 f_CreateTubeVolume())
124 f_CreateConeVolume())
126 f_CreateSphereVolume())
131 return_value_policy<reference_existing_object>())
134 return_value_policy<reference_existing_object>())
136 .def(
"PlaceIt", f1_PlaceIt,
137 f_PlaceIt()[return_value_policy<reference_existing_object>()])
139 f_PlaceIt()[return_value_policy<reference_existing_object>()])
141 f_ReplicateIt()[return_value_policy<reference_existing_object>()])
void CreateSphereVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double phi0=0., G4double dphi=360.*deg, G4double theta0=0., G4double dtheta=180.*deg)
void CreateConeVolume(G4Material *amaterial, G4double rmin1, G4double rmax1, G4double rmin2, G4double rmax2, G4double dz, G4double phi0=0., G4double dphi=360.*deg)
const G4VSolid * GetSolid() const
void SetSolid(G4VSolid *asolid)
G4Material * GetMaterial() const
void SetMaterial(G4Material *amaterial)
void CreateTubeVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double dz, G4double phi0=0., G4double dphi=360 *deg)
void CreateOrbVolume(G4Material *amaterial, G4double rmax)
void SetSensitiveDetector(G4VSensitiveDetector *asd)
G4VPhysicalVolume * ReplicateIt(G4EzVolume *parent, EAxis pAxis, G4int nReplicas, G4double width, G4double offset=0)
void CreateBoxVolume(G4Material *amaterial, G4double dx, G4double dy, G4double dz)
G4ThreeVector VoxelizeIt(G4int nx, G4int ny, G4int nz)
void SetVisibility(G4bool qvisible)
static void SetVisibility(G4bool qvis)
static void Resize(G4double dx, G4double dy, G4double dz)
static void SetMaterial(G4Material *amaterial)
static void Reset(G4double dx, G4double dy, G4double dz)
static G4RunManager * GetRunManager()
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume, CreateSphereVolume, 3, 7) G4VPhysicalVolume *(G4EzVolume G4VPhysicalVolume *(G4EzVolume::* f2_PlaceIt)(const G4Transform3D &, G4int, G4EzVolume *)
void ResizeWorld(G4double dx, G4double dy, G4double dz)
void(G4EzVolume::* f1_SetColor)(const G4Color &)
void ResetWorld(G4double dx, G4double dy, G4double dz)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void SetWorldVisibility(G4bool qvis)
void SetWorldMaterial(G4Material *amaterial)
void(G4EzVolume::* f2_SetColor)(G4double, G4double, G4double)
BOOST_PYTHON_MODULE(_ezgeom)