Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
pyG4Polycone.cc File Reference
#include <boost/python.hpp>
#include "G4Polycone.hh"

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.

References pyG4Polycone::f1_CreatePolycone(), pyG4Polycone::f2_CreatePolycone(), G4Polycone::GetEndPhi(), G4Polycone::GetNumRZCorner(), G4Polycone::GetStartPhi(), and G4Polycone::IsOpen().

Referenced by BOOST_PYTHON_MODULE().

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("IsGeneric", &G4Polycone::IsGeneric)
100  .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
101 
102  // operators
103  .def(self_ns::str(self))
104  ;
105 
106  // Create solid
107  def("CreatePolycone", f1_CreatePolycone,
108  return_value_policy<manage_new_object>());
109  def("CreatePolycone", f2_CreatePolycone,
110  return_value_policy<manage_new_object>());
111 
112 }
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