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>())
G4UIcommandTree * GetTree() const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void export_G4UImanager()
void CreateHTML(const char *dir="/")
G4int ApplyCommand(const char *aCommand)
void SetMacroSearchPath(const G4String &path)
G4int ApplyUICommand_1(const G4String &cmdstr)
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
void SetPauseAtBeginOfEvent(G4bool vl)
G4bool GetPauseAtEndOfEvent() const
G4String GetCurrentValues(const char *aCommand)
const G4String & GetMacroSearchPath() const
G4int ApplyUICommand_2(const std::string &cmdstr)
G4int(G4UImanager::* f1_ApplyCommand)(const char *)
const G4ThreeVector const G4double const
G4bool GetPauseAtBeginOfEvent() const
void SetPauseAtEndOfEvent(G4bool vl)
G4int GetVerboseLevel() const
G4GLOB_DLL std::ostream G4cout
void ExecuteMacroFile(const char *fileName)
G4int(G4UImanager::* f2_ApplyCommand)(const G4String &)