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

Go to the source code of this file.

Namespaces

 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

void export_G4UImanager ( )

Definition at line 119 of file pyG4UImanager.cc.

120 {
121  class_<G4UImanager, boost::noncopyable>
122  ("G4UImanager", "UI manager class", no_init)
123  .def("GetUIpointer", &G4UImanager::GetUIpointer,
124  return_value_policy<reference_existing_object>())
125  .staticmethod("GetUIpointer")
126  // ---
127  .def("GetCurrentValues", &G4UImanager::GetCurrentValues)
128  .def("ExecuteMacroFile", &G4UImanager::ExecuteMacroFile)
129  .def("ApplyCommand", f1_ApplyCommand)
130  .def("ApplyCommand", f2_ApplyCommand)
131  .def("CreateHTML", &G4UImanager::CreateHTML, f_CreateHTML())
132  .def("SetMacroSearchPath", &G4UImanager::SetMacroSearchPath)
133  .def("GetMacroSearchPath", &G4UImanager::GetMacroSearchPath,
134  return_value_policy<return_by_value>())
135  // ---
136  .def("SetPauseAtBeginOfEvent", &G4UImanager::SetPauseAtBeginOfEvent)
137  .def("GetPauseAtBeginOfEvent", &G4UImanager::GetPauseAtBeginOfEvent)
138  .def("SetPauseAtEndOfEvent", &G4UImanager::SetPauseAtEndOfEvent)
139  .def("GetPauseAtEndOfEvent", &G4UImanager::GetPauseAtEndOfEvent)
140  .def("SetVerboseLevel", &G4UImanager::SetVerboseLevel)
141  .def("GetVerboseLevel", &G4UImanager::GetVerboseLevel)
142  // ---
143  .def("GetTree", &G4UImanager::GetTree,
144  return_value_policy<reference_existing_object>())
145  ;
146 
147  // ---
148  def("ApplyUICommand", ApplyUICommand_1);
149  def("ApplyUICommand", ApplyUICommand_2);
150 
151 }
void SetMacroSearchPath(const G4String &path)
Definition: G4UImanager.hh:243
void ExecuteMacroFile(const char *fileName)
Definition: G4UImanager.cc:293
G4int(G4UImanager::* f2_ApplyCommand)(const G4String &)
G4int GetVerboseLevel() const
Definition: G4UImanager.hh:227
void SetVerboseLevel(G4int val)
Definition: G4UImanager.hh:225
G4int ApplyUICommand_1(const G4String &cmdstr)
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4bool GetPauseAtBeginOfEvent() const
Definition: G4UImanager.hh:194
G4bool GetPauseAtEndOfEvent() const
Definition: G4UImanager.hh:198
G4String GetCurrentValues(const char *aCommand)
Definition: G4UImanager.cc:171
G4int ApplyUICommand_2(const std::string &cmdstr)
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:206
void SetPauseAtEndOfEvent(G4bool vl)
Definition: G4UImanager.hh:196
const G4String & GetMacroSearchPath() const
Definition: G4UImanager.hh:245
void SetPauseAtBeginOfEvent(G4bool vl)
Definition: G4UImanager.hh:192
void CreateHTML(const char *dir="/")
Definition: G4UImanager.cc:656
G4int(G4UImanager::* f1_ApplyCommand)(const char *)

Here is the call graph for this function:

Here is the caller graph for this function: