LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 41 of file pyG4Colour.cc.

Referenced by BOOST_PYTHON_MODULE().

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