32 #include <boost/python.hpp> 33 #include "G4AttDef.hh" 34 #include "G4VisAttributes.hh" 45 &G4VisAttributes::SetColor;
47 void(G4VisAttributes::*
f2_SetColor)(G4double, G4double, G4double, G4double)=
48 &G4VisAttributes::SetColor;
54 &G4VisAttributes::SetColour;
56 void(G4VisAttributes::*
f2_SetColour)(G4double, G4double, G4double, G4double)=
57 &G4VisAttributes::SetColour;
70 scope in_G4VisAttributes=
71 class_<G4VisAttributes, G4VisAttributes*>
72 (
"G4VisAttributes",
"visualization attributes")
75 .def(init<const G4Colour&>())
76 .def(init<G4bool, const G4Colour&>())
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)
84 .def(
"GetColour", &G4VisAttributes::GetColour,
85 return_internal_reference<>())
86 .def(
"GetColor", &G4VisAttributes::GetColor,
87 return_internal_reference<>())
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)
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)
108 .def(self_ns::str(
self))
114 enum_<G4VisAttributes::LineStyle>(
"LineStyle")
115 .
value(
"unbroken", G4VisAttributes::unbroken)
116 .value(
"dashed", G4VisAttributes::dashed)
117 .value(
"dotted", G4VisAttributes::dotted)
121 enum_<G4VisAttributes::ForcedDrawingStyle>(
"ForcedDrawingStyle")
122 .
value(
"wireframe", G4VisAttributes::wireframe)
123 .value(
"solid", G4VisAttributes::solid)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
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 &)
std::string value(boost::any const &)
void export_G4VisAttributes()
h_2 SetLineStyle(kDashed)