LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4VisAttributes.cc File Reference
#include <boost/python.hpp>
#include "G4AttDef.hh"
#include "G4VisAttributes.hh"

Go to the source code of this file.

Namespaces

 pyG4VisAttributes
 

Functions

void export_G4VisAttributes ()
 

Variables

void(G4VisAttributes::* pyG4VisAttributes::f1_SetColor )(const G4Color &)
 
void(G4VisAttributes::* pyG4VisAttributes::f2_SetColor )(G4double, G4double, G4double, G4double)
 
void(G4VisAttributes::* pyG4VisAttributes::f1_SetColour )(const G4Colour &)
 
void(G4VisAttributes::* pyG4VisAttributes::f2_SetColour )(G4double, G4double, G4double, G4double)
 

Function Documentation

void export_G4VisAttributes ( )

Definition at line 68 of file pyG4VisAttributes.cc.

References pyG4VisAttributes::f1_SetColor, pyG4VisAttributes::f1_SetColour, pyG4VisAttributes::f2_SetColor, pyG4VisAttributes::f2_SetColour, SetLineStyle(), SetLineWidth(), and fhicl::detail::atom::value().

Referenced by BOOST_PYTHON_MODULE().

69 {
70  scope in_G4VisAttributes=
71  class_<G4VisAttributes, G4VisAttributes*>
72  ("G4VisAttributes", "visualization attributes")
73  // constructors
74  .def(init<G4bool>())
75  .def(init<const G4Colour&>())
76  .def(init<G4bool, const G4Colour&>())
77  // ---
78  .def("GetInvisible", &G4VisAttributes::GetInvisible,
79  return_value_policy<reference_existing_object>())
80  .staticmethod("GetInvisible")
81  .def("IsVisible", &G4VisAttributes::IsVisible)
82  .def("IsDaughtersInvisible", &G4VisAttributes::IsDaughtersInvisible)
83  // ---
84  .def("GetColour", &G4VisAttributes::GetColour,
85  return_internal_reference<>())
86  .def("GetColor", &G4VisAttributes::GetColor,
87  return_internal_reference<>())
88  // ---
89  .def("GetLineStyle", &G4VisAttributes::GetLineStyle)
90  .def("GetLineWidth", &G4VisAttributes::GetLineWidth)
91  .def("IsForceDrawingStyle", &G4VisAttributes::IsForceDrawingStyle)
92  .def("GetForcedDrawingStyle", &G4VisAttributes::GetForcedDrawingStyle)
93  .def("IsForceAuxEdgeVisible", &G4VisAttributes::IsForceAuxEdgeVisible)
94  .def("SetVisibility", &G4VisAttributes::SetVisibility)
95  .def("SetDaughtersInvisible", &G4VisAttributes::SetDaughtersInvisible)
96  .def("SetColor", f1_SetColor)
97  .def("SetColour", f1_SetColour)
98  .def("SetColor", f2_SetColor, f_SetColor())
99  .def("SetColour", f2_SetColour, f_SetColour())
100  .def("SetLineStyle", &G4VisAttributes::SetLineStyle)
101  .def("SetLineWidth", &G4VisAttributes::SetLineWidth)
102  .def("SetForceWireframe", &G4VisAttributes::SetForceWireframe)
103  .def("SetForceSolid", &G4VisAttributes::SetForceSolid)
104  .def("SetForceAuxEdgeVisible", &G4VisAttributes::SetForceAuxEdgeVisible)
105  .def("SetAttValues", &G4VisAttributes::SetAttValues)
106  .def("SetAttDefs", &G4VisAttributes::SetAttDefs)
107  // operators
108  .def(self_ns::str(self))
109  .def(self == self)
110  .def(self != self)
111  ;
112 
113  // enum LineStyle
114  enum_<G4VisAttributes::LineStyle>("LineStyle")
115  .value("unbroken", G4VisAttributes::unbroken)
116  .value("dashed", G4VisAttributes::dashed)
117  .value("dotted", G4VisAttributes::dotted)
118  ;
119 
120  // enum ForcedDrawingStyle
121  enum_<G4VisAttributes::ForcedDrawingStyle>("ForcedDrawingStyle")
122  .value("wireframe", G4VisAttributes::wireframe)
123  .value("solid", G4VisAttributes::solid)
124  ;
125 
126 }
void(G4VisAttributes::* f1_SetColor)(const G4Color &)
gr1 SetLineWidth(1)
void(G4VisAttributes::* f2_SetColor)(G4double, G4double, G4double, G4double)
void(G4VisAttributes::* f2_SetColour)(G4double, G4double, G4double, G4double)
void(G4VisAttributes::* f1_SetColour)(const G4Colour &)
std::string value(boost::any const &)
h_2 SetLineStyle(kDashed)