#include <boost/python.hpp>
#include "G4Colour.hh"
#include "G4Color.hh"
Go to the source code of this file.
Definition at line 41 of file pyG4Colour.cc.
Referenced by BOOST_PYTHON_MODULE().
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))