Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Box.cc File Reference
#include <boost/python.hpp>
#include "G4Box.hh"
Include dependency graph for pyG4Box.cc:

Go to the source code of this file.

Namespaces

 pyG4Box
 

Functions

G4BoxpyG4Box::CreateBox (const G4String &name, G4double pX, G4double pY, G4double pZ)
 
void export_G4Box ()
 

Function Documentation

void export_G4Box ( )

Definition at line 55 of file pyG4Box.cc.

56 {
57  class_<G4Box, G4Box*, bases<G4VSolid> >
58  ("G4Box", "box solid class", no_init)
59  // constructors
60  .def(init<const G4String&, G4double, G4double, G4double>())
61  // ---
62  .def("GetXHalfLength", &G4Box::GetXHalfLength)
63  .def("GetYHalfLength", &G4Box::GetYHalfLength)
64  .def("GetZHalfLength", &G4Box::GetZHalfLength)
65  .def("SetXHalfLength", &G4Box::SetXHalfLength)
66  .def("SetYHalfLength", &G4Box::SetYHalfLength)
67  .def("SetZHalfLength", &G4Box::SetZHalfLength)
68  // operators
69  .def(self_ns::str(self))
70  ;
71 
72  // Create solid
73  def("CreateBox", CreateBox, return_value_policy<manage_new_object>());
74 
75 }
G4double GetXHalfLength() const
void SetZHalfLength(G4double dz)
Definition: G4Box.cc:174
G4double GetZHalfLength() const
G4double GetYHalfLength() const
void SetYHalfLength(G4double dy)
Definition: G4Box.cc:154
void SetXHalfLength(G4double dx)
Definition: G4Box.cc:134
G4Box * CreateBox(const G4String &name, G4double pX, G4double pY, G4double pZ)
Definition: pyG4Box.cc:42

Here is the call graph for this function:

Here is the caller graph for this function: