LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 67 of file pyG4VisAttributes.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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