Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Colour.cc File Reference
#include <boost/python.hpp>
#include "G4Colour.hh"
#include "G4Color.hh"
Include dependency graph for pyG4Colour.cc:

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.

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 }
G4double GetAlpha() const
Definition: G4Colour.hh:142
G4double GetBlue() const
Definition: G4Colour.hh:141
G4double GetRed() const
Definition: G4Colour.hh:139
G4double GetGreen() const
Definition: G4Colour.hh:140

Here is the call graph for this function:

Here is the caller graph for this function: