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

Go to the source code of this file.

Namespaces

 pyG4Polyhedra
 

Functions

G4PolyhedrapyG4Polyhedra::f1_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
 
G4PolyhedrapyG4Polyhedra::f2_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 
void export_G4Polyhedra ()
 

Function Documentation

void export_G4Polyhedra ( )

Definition at line 92 of file pyG4Polyhedra.cc.

93 {
94  class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
95  ("G4Polyhedra", "Polyhedra solid class", no_init)
96  // ---
97  .def("GetStartPhi", &G4Polyhedra::GetStartPhi)
98  .def("GetEndPhi", &G4Polyhedra::GetEndPhi)
99  .def("GetNumSide", &G4Polyhedra::GetNumSide)
100  .def("GetNumRZCorner", &G4Polyhedra::GetNumRZCorner)
101  .def("IsOpen", &G4Polyhedra::IsOpen)
102  .def("IsGeneric", &G4Polyhedra::IsGeneric)
103 
104  // operators
105  .def(self_ns::str(self))
106  ;
107 
108  // Create solid
109  def("CreatePolyhedra", f1_CreatePolyhedra,
110  return_value_policy<manage_new_object>());
111  def("CreatePolyhedra", f2_CreatePolyhedra,
112  return_value_policy<manage_new_object>());
113 }
G4double GetEndPhi() const
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
G4int GetNumRZCorner() const
G4int GetNumSide() const
G4bool IsOpen() const
G4bool IsGeneric() const
G4Polyhedra * f1_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
G4double GetStartPhi() const

Here is the call graph for this function:

Here is the caller graph for this function: