31 #include <boost/python.hpp> 32 #include "G4Colour.hh" 42 class_<G4Colour> (
"G4Color",
"color class", no_init)
45 .def(init<G4double>())
46 .def(init<G4double, G4double>())
47 .def(init<G4double, G4double, G4double>())
48 .def(init<G4double, G4double, G4double, G4double>())
49 .def(init<G4ThreeVector>())
51 .def(
"GetRed", &G4Colour::GetRed)
52 .def(
"GetGreen", &G4Colour::GetGreen)
53 .def(
"GetBlue", &G4Colour::GetBlue)
54 .def(
"GetAlpha", &G4Colour::GetAlpha)
56 .def(self_ns::str(
self))