LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4Colour.cc File Reference
#include <boost/python.hpp>
#include "G4Colour.hh"
#include "G4Color.hh"

Go to the source code of this file.

Functions

void export_G4Colour ()
 

Function Documentation

void export_G4Colour ( )

Definition at line 40 of file pyG4Colour.cc.

Referenced by BOOST_PYTHON_MODULE().

41 {
42  class_<G4Colour> ("G4Color", "color class", no_init)
43  // constructors
44  .def(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>())
50  // ---
51  .def("GetRed", &G4Colour::GetRed)
52  .def("GetGreen", &G4Colour::GetGreen)
53  .def("GetBlue", &G4Colour::GetBlue)
54  .def("GetAlpha", &G4Colour::GetAlpha)
55  // operators
56  .def(self_ns::str(self))
57  .def(self != self)
58  ;
59 
60  //class_<G4Color> ("G4Color", "color class", no_init)
61  // // constructors
62  // .def(init<>())
63  // .def(init<G4double>())
64  // .def(init<G4double, G4double>())
65  // .def(init<G4double, G4double, G4double>())
66  // .def(init<G4double, G4double, G4double, G4double>())
67  // .def(init<G4ThreeVector>())
68  // // ---
69  // .def("GetRed", &G4Colour::GetRed)
70  // .def("GetGreen", &G4Colour::GetGreen)
71  // .def("GetBlue", &G4Colour::GetBlue)
72  // .def("GetAlpha", &G4Colour::GetAlpha)
73  // // operators
74  // .def(self_ns::str(self))
75  // .def(self != self)
76  // ;
77 }