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