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

Go to the source code of this file.

Namespaces

 pyG4Polycone
 

Functions

G4PolyconepyG4Polycone::f1_CreatePolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
 
G4PolyconepyG4Polycone::f2_CreatePolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 
void export_G4Polycone ()
 

Function Documentation

void export_G4Polycone ( )

Definition at line 91 of file pyG4Polycone.cc.

92 {
93  class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
94  ("G4Polycone", "Polycone solid class", no_init)
95  // ---
96  .def("GetStartPhi", &G4Polycone::GetStartPhi)
97  .def("GetEndPhi", &G4Polycone::GetEndPhi)
98  .def("IsOpen", &G4Polycone::IsOpen)
99  .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
100 
101  // operators
102  .def(self_ns::str(self))
103  ;
104 
105  // Create solid
106  def("CreatePolycone", f1_CreatePolycone,
107  return_value_policy<manage_new_object>());
108  def("CreatePolycone", f2_CreatePolycone,
109  return_value_policy<manage_new_object>());
110 
111 }
G4bool IsOpen() const
G4Polycone * f2_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
Definition: pyG4Polycone.cc:65
G4int GetNumRZCorner() const
G4double GetEndPhi() const
G4Polycone * f1_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
Definition: pyG4Polycone.cc:44
G4double GetStartPhi() const

Here is the call graph for this function:

Here is the caller graph for this function: