Geant4-11
Namespaces | Functions | Variables
pyG4UImanager.cc File Reference
#include <boost/python.hpp>
#include "G4UImanager.hh"
#include "G4UIcommandTree.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4UImanager
 

Functions

G4int pyG4UImanager::ApplyUICommand_1 (const G4String &cmdstr)
 
G4int pyG4UImanager::ApplyUICommand_2 (const std::string &cmdstr)
 
void export_G4UImanager ()
 

Variables

G4int(G4UImanager::* pyG4UImanager::f1_ApplyCommand )(const char *) = &G4UImanager::ApplyCommand
 
G4int(G4UImanager::* pyG4UImanager::f2_ApplyCommand )(const G4String &)
 

Function Documentation

◆ export_G4UImanager()

void export_G4UImanager ( )

Definition at line 118 of file pyG4UImanager.cc.

119{
120 class_<G4UImanager, boost::noncopyable>
121 ("G4UImanager", "UI manager class", no_init)
122 .def("GetUIpointer", &G4UImanager::GetUIpointer,
123 return_value_policy<reference_existing_object>())
124 .staticmethod("GetUIpointer")
125 // ---
126 .def("GetCurrentValues", &G4UImanager::GetCurrentValues)
127 .def("ExecuteMacroFile", &G4UImanager::ExecuteMacroFile)
128 .def("ApplyCommand", f1_ApplyCommand)
129 .def("ApplyCommand", f2_ApplyCommand)
130 .def("CreateHTML", &G4UImanager::CreateHTML, f_CreateHTML())
131 .def("SetMacroSearchPath", &G4UImanager::SetMacroSearchPath)
132 .def("GetMacroSearchPath", &G4UImanager::GetMacroSearchPath,
133 return_value_policy<return_by_value>())
134 // ---
135 .def("SetPauseAtBeginOfEvent", &G4UImanager::SetPauseAtBeginOfEvent)
136 .def("GetPauseAtBeginOfEvent", &G4UImanager::GetPauseAtBeginOfEvent)
137 .def("SetPauseAtEndOfEvent", &G4UImanager::SetPauseAtEndOfEvent)
138 .def("GetPauseAtEndOfEvent", &G4UImanager::GetPauseAtEndOfEvent)
139 .def("SetVerboseLevel", &G4UImanager::SetVerboseLevel)
140 .def("GetVerboseLevel", &G4UImanager::GetVerboseLevel)
141 // ---
142 .def("GetTree", &G4UImanager::GetTree,
143 return_value_policy<reference_existing_object>())
144 ;
145
146 // ---
147 def("ApplyUICommand", ApplyUICommand_1);
148 def("ApplyUICommand", ApplyUICommand_2);
149
150}
const G4String & GetMacroSearchPath() const
Definition: G4UImanager.hh:215
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
void CreateHTML(const char *dir="/")
Definition: G4UImanager.cc:772
G4bool GetPauseAtBeginOfEvent() const
Definition: G4UImanager.hh:178
void ExecuteMacroFile(const char *fileName)
Definition: G4UImanager.cc:303
void SetMacroSearchPath(const G4String &path)
Definition: G4UImanager.hh:214
G4int GetVerboseLevel() const
Definition: G4UImanager.hh:200
G4bool GetPauseAtEndOfEvent() const
Definition: G4UImanager.hh:180
void SetPauseAtBeginOfEvent(G4bool vl)
Definition: G4UImanager.hh:177
G4String GetCurrentValues(const char *aCommand)
Definition: G4UImanager.cc:164
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
void SetPauseAtEndOfEvent(G4bool vl)
Definition: G4UImanager.hh:179
void SetVerboseLevel(G4int val)
Definition: G4UImanager.hh:199
G4int(G4UImanager::* f2_ApplyCommand)(const G4String &)
G4int ApplyUICommand_1(const G4String &cmdstr)
G4int(G4UImanager::* f1_ApplyCommand)(const char *)
G4int ApplyUICommand_2(const std::string &cmdstr)

References pyG4UImanager::ApplyUICommand_1(), pyG4UImanager::ApplyUICommand_2(), G4UImanager::CreateHTML(), G4UImanager::ExecuteMacroFile(), pyG4UImanager::f1_ApplyCommand, pyG4UImanager::f2_ApplyCommand, G4UImanager::GetCurrentValues(), G4UImanager::GetMacroSearchPath(), G4UImanager::GetPauseAtBeginOfEvent(), G4UImanager::GetPauseAtEndOfEvent(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), G4UImanager::GetVerboseLevel(), G4UImanager::SetMacroSearchPath(), G4UImanager::SetPauseAtBeginOfEvent(), G4UImanager::SetPauseAtEndOfEvent(), and G4UImanager::SetVerboseLevel().

Referenced by BOOST_PYTHON_MODULE().