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

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.

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 }
G4bool IsForceAuxEdgeVisible() const
G4double GetLineWidth() const
void SetLineStyle(LineStyle)
void SetLineWidth(G4double)
G4bool IsVisible() const
const G4Colour & GetColour() const
void SetForceSolid(G4bool=true)
LineStyle GetLineStyle() const
void SetAttValues(const std::vector< G4AttValue > *)
void(G4EzVolume::* f1_SetColor)(const G4Color &)
Definition: pyEzgeom.cc:104
const XML_Char int const XML_Char * value
Definition: expat.h:331
G4bool IsDaughtersInvisible() const
void SetVisibility(G4bool=true)
void SetAttDefs(const std::map< G4String, G4AttDef > *)
void SetDaughtersInvisible(G4bool=true)
void(G4VisAttributes::* f1_SetColour)(const G4Colour &)
const G4Color & GetColor() const
G4bool IsForceDrawingStyle() const
void(G4EzVolume::* f2_SetColor)(G4double, G4double, G4double)
Definition: pyEzgeom.cc:105
void(G4VisAttributes::* f2_SetColour)(G4double, G4double, G4double, G4double)
void SetForceAuxEdgeVisible(G4bool=true)
static const G4VisAttributes & GetInvisible()
void SetForceWireframe(G4bool=true)
ForcedDrawingStyle GetForcedDrawingStyle() const

Here is the call graph for this function:

Here is the caller graph for this function: