35 #include <boost/python.hpp>
39 using namespace boost::python;
44 namespace pyG4UImanager {
60 G4int returnVal= UImgr-> ApplyCommand(cmdstr);
63 G4int paramIndex= returnVal % 100;
64 G4int commandStatus= returnVal - paramIndex;
66 switch(commandStatus) {
71 G4cout <<
"command <" << UImgr-> SolveAlias(cmdstr)
72 <<
"> not found" <<
G4endl;
76 G4cout <<
"illegal application state -- command refused"
84 G4cout <<
"Parameter is out of candidate list (index "
90 G4cout <<
"Parameter is wrong type and/or is not omittable (index "
91 << paramIndex <<
")" <<
G4endl;
98 G4cout <<
"command refused (" << commandStatus <<
")" <<
G4endl;
114 using namespace pyG4UImanager;
121 class_<G4UImanager, boost::noncopyable>
122 (
"G4UImanager",
"UI manager class", no_init)
124 return_value_policy<reference_existing_object>())
125 .staticmethod(
"GetUIpointer")
134 return_value_policy<return_by_value>())
144 return_value_policy<reference_existing_object>())
void SetMacroSearchPath(const G4String &path)
void ExecuteMacroFile(const char *fileName)
G4int(G4UImanager::* f2_ApplyCommand)(const G4String &)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int val)
G4int ApplyUICommand_1(const G4String &cmdstr)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
void export_G4UImanager()
G4bool GetPauseAtBeginOfEvent() const
G4bool GetPauseAtEndOfEvent() const
G4String GetCurrentValues(const char *aCommand)
G4int ApplyUICommand_2(const std::string &cmdstr)
G4UIcommandTree * GetTree() const
void SetPauseAtEndOfEvent(G4bool vl)
const G4String & GetMacroSearchPath() const
void SetPauseAtBeginOfEvent(G4bool vl)
void CreateHTML(const char *dir="/")
G4int(G4UImanager::* f1_ApplyCommand)(const char *)
G4int ApplyCommand(const char *aCommand)