Geant4-11
Namespaces | Functions | Variables
pyG4VPhysicalVolume.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
#include "G4VPVParameterisation.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4VPhysicalVolume
 

Functions

void export_G4VPhysicalVolume ()
 

Variables

const G4RotationMatrix *(G4VPhysicalVolume::* pyG4VPhysicalVolume::f1_GetRotation )() const = &G4VPhysicalVolume::GetRotation
 
G4RotationMatrix *(G4VPhysicalVolume::* pyG4VPhysicalVolume::f2_GetRotation )() = &G4VPhysicalVolume::GetRotation
 

Function Documentation

◆ export_G4VPhysicalVolume()

void export_G4VPhysicalVolume ( )

Definition at line 57 of file pyG4VPhysicalVolume.cc.

58{
59 class_<G4VPhysicalVolume, G4VPhysicalVolume*, boost::noncopyable>
60 ("G4VPhysicalVolume", "physical volume class", no_init)
61 // ---
62 .def("SetTranslation", &G4VPhysicalVolume::SetTranslation)
63 .def("GetTranslation", &G4VPhysicalVolume::GetTranslation,
64 return_value_policy<return_by_value>())
65 .def("GetObjectTranslation", &G4VPhysicalVolume::GetObjectTranslation)
66 .def("GetFrameTranslation", &G4VPhysicalVolume::GetObjectTranslation)
67 // ---
68 .def("SetRotation", &G4VPhysicalVolume::SetRotation)
69 .def("GetRotation", f1_GetRotation,
70 return_internal_reference<>())
71 .def("GetRotation", f2_GetRotation,
72 return_internal_reference<>())
73 .def("GetObjectRotationValue", &G4VPhysicalVolume::GetObjectRotationValue)
74 .def("GetFrameRotation", &G4VPhysicalVolume::GetFrameRotation,
75 return_internal_reference<>())
76 // ---
77 .def("SetLogicalVolume", &G4VPhysicalVolume::SetLogicalVolume)
78 .def("SetMotherLogical", &G4VPhysicalVolume::SetMotherLogical)
79 .def("GetLogicalVolume", &G4VPhysicalVolume::GetLogicalVolume,
80 return_internal_reference<>())
81 .def("GetMotherLogical", &G4VPhysicalVolume::GetMotherLogical,
82 return_internal_reference<>())
83 // ---
84 .def("SetName", &G4VPhysicalVolume::SetName)
85 .def("GetName", &G4VPhysicalVolume::GetName,
86 return_value_policy<return_by_value>())
87 .def("SetCopyNo", &G4VPhysicalVolume::SetCopyNo)
88 .def("GetCopyNo", &G4VPhysicalVolume::GetCopyNo)
89 // ---
90 .def("IsMany", &G4VPhysicalVolume::IsMany)
91 .def("IsReplicated", &G4VPhysicalVolume::IsReplicated)
92 .def("IsParameterised", &G4VPhysicalVolume::IsParameterised)
93 .def("GetMultiplicity", &G4VPhysicalVolume::GetMultiplicity)
94 .def("GetParameterisation", &G4VPhysicalVolume::GetParameterisation,
95 return_value_policy<reference_existing_object>())
96 ;
97}
G4LogicalVolume * GetMotherLogical() const
virtual G4bool IsReplicated() const =0
void SetLogicalVolume(G4LogicalVolume *pLogical)
virtual void SetCopyNo(G4int CopyNo)=0
const G4ThreeVector GetTranslation() const
G4LogicalVolume * GetLogicalVolume() const
G4RotationMatrix GetObjectRotationValue() const
virtual G4int GetMultiplicity() const
const G4RotationMatrix * GetFrameRotation() const
virtual G4int GetCopyNo() const =0
const G4String & GetName() const
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4bool IsMany() const =0
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)
G4ThreeVector GetObjectTranslation() const
virtual G4bool IsParameterised() const =0
void SetMotherLogical(G4LogicalVolume *pMother)
void SetName(const G4String &pName)
G4RotationMatrix *(G4VPhysicalVolume::* f2_GetRotation)()
const G4RotationMatrix *(G4VPhysicalVolume::* f1_GetRotation)() const

References pyG4VPhysicalVolume::f1_GetRotation, pyG4VPhysicalVolume::f2_GetRotation, G4VPhysicalVolume::GetCopyNo(), G4VPhysicalVolume::GetFrameRotation(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4VPhysicalVolume::GetMultiplicity(), G4VPhysicalVolume::GetName(), G4VPhysicalVolume::GetObjectRotationValue(), G4VPhysicalVolume::GetObjectTranslation(), G4VPhysicalVolume::GetParameterisation(), G4VPhysicalVolume::GetTranslation(), G4VPhysicalVolume::IsMany(), G4VPhysicalVolume::IsParameterised(), G4VPhysicalVolume::IsReplicated(), G4VPhysicalVolume::SetCopyNo(), G4VPhysicalVolume::SetLogicalVolume(), G4VPhysicalVolume::SetMotherLogical(), G4VPhysicalVolume::SetName(), G4VPhysicalVolume::SetRotation(), and G4VPhysicalVolume::SetTranslation().

Referenced by BOOST_PYTHON_MODULE().