Geant4-11
Functions
pymodG4intercoms.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (G4intercoms)
 
void export_G4UIcommand ()
 
void export_G4UIcommandTree ()
 
void export_G4UImanager ()
 
void export_G4UIparameter ()
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( G4intercoms  )

Definition at line 44 of file pymodG4intercoms.cc.

45{
50}
void export_G4UIparameter()
void export_G4UIcommand()
void export_G4UImanager()
void export_G4UIcommandTree()

References export_G4UIcommand(), export_G4UIcommandTree(), export_G4UImanager(), and export_G4UIparameter().

◆ export_G4UIcommand()

void export_G4UIcommand ( )

Definition at line 62 of file pyG4UIcommand.cc.

63{
64 class_<G4UIcommand, G4UIcommand*>
65 ("G4UIcommand", "UI command")
66 .def(init<const char*, G4UImessenger*>())
67 // ---
68 .def("GetCurrentValue", &G4UIcommand::GetCurrentValue)
69 .def("IsAvailable", &G4UIcommand::IsAvailable)
70 .def("List", &G4UIcommand::List)
71 .def("GetRange", &G4UIcommand::GetRange,
72 return_value_policy<return_by_value>())
73 .def("GetGuidanceEntries", &G4UIcommand::GetGuidanceEntries)
74 .def("GetGuidanceLine", &G4UIcommand::GetGuidanceLine,
75 return_value_policy<return_by_value>())
76 .def("GetCommandPath", &G4UIcommand::GetCommandPath,
77 return_value_policy<return_by_value>())
78 .def("GetCommandName", &G4UIcommand::GetCommandName,
79 return_value_policy<return_by_value>())
80 .def("GetParameterEntries", &G4UIcommand::GetParameterEntries)
81 .def("GetParameter", &G4UIcommand::GetParameter,
82 return_value_policy<reference_existing_object>())
83 .def("GetStateList", f_GetStateList)
84 .def("GetTitle", &G4UIcommand::GetTitle)
85 ;
86}
std::size_t GetParameterEntries() const
Definition: G4UIcommand.hh:138
const G4String & GetGuidanceLine(G4int i) const
Definition: G4UIcommand.hh:132
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:139
const G4String GetTitle() const
Definition: G4UIcommand.hh:165
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136
G4bool IsAvailable()
Definition: G4UIcommand.cc:343
std::size_t GetGuidanceEntries() const
Definition: G4UIcommand.hh:128
virtual void List()
Definition: G4UIcommand.cc:410
const G4String & GetCommandName() const
Definition: G4UIcommand.hh:137
const G4String & GetRange() const
Definition: G4UIcommand.hh:127
G4String GetCurrentValue()
Definition: G4UIcommand.cc:282
list f_GetStateList(G4UIcommand *acommand)

References pyG4UIcommand::f_GetStateList(), G4UIcommand::GetCommandName(), G4UIcommand::GetCommandPath(), G4UIcommand::GetCurrentValue(), G4UIcommand::GetGuidanceEntries(), G4UIcommand::GetGuidanceLine(), G4UIcommand::GetParameter(), G4UIcommand::GetParameterEntries(), G4UIcommand::GetRange(), G4UIcommand::GetTitle(), G4UIcommand::IsAvailable(), and G4UIcommand::List().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4UIcommandTree()

void export_G4UIcommandTree ( )

Definition at line 54 of file pyG4UIcommandTree.cc.

55{
56 class_<G4UIcommandTree, G4UIcommandTree*>
57 ("G4UIcommandTree", "UI command tree")
58 // constructors
59 .def(init<const char*>())
60 // ---
61 .def("FindPath", &G4UIcommandTree::FindPath,
62 return_value_policy<reference_existing_object>())
63 .def("List", &G4UIcommandTree::List)
64 .def("ListCurrent", &G4UIcommandTree::ListCurrent)
65 .def("ListCurrentWithNum", &G4UIcommandTree::ListCurrentWithNum)
66 .def("CreateHTML", &G4UIcommandTree::CreateHTML)
67 .def("GetGuidance", &G4UIcommandTree::GetGuidance,
68 return_value_policy<reference_existing_object>())
69 .def("GetPathName", &G4UIcommandTree::GetPathName,
70 return_value_policy<return_by_value>())
71 // ---
72 .def("GetTreeEntry", &G4UIcommandTree::GetTreeEntry)
73 .def("GetCommandEntry", &G4UIcommandTree::GetCommandEntry)
74 .def("GetTree", f1_GetTree,
75 return_value_policy<reference_existing_object>())
76 .def("GetTree", f2_GetTree,
77 return_value_policy<reference_existing_object>())
78 .def("GetCommand", &G4UIcommandTree::GetCommand,
79 return_value_policy<reference_existing_object>())
80 // ---
81 .def("GetTitle", &G4UIcommandTree::GetTitle)
82 ;
83}
G4int GetCommandEntry() const
const G4UIcommand * GetGuidance() const
G4UIcommand * GetCommand(G4int i)
const G4String & GetPathName() const
G4int GetTreeEntry() const
void List() const
void ListCurrentWithNum() const
const G4String GetTitle() const
G4UIcommand * FindPath(const char *commandPath) const
void CreateHTML(G4String="")
void ListCurrent() const
G4UIcommandTree *(G4UIcommandTree::* f1_GetTree)(G4int)
G4UIcommandTree *(G4UIcommandTree::* f2_GetTree)(const char *)

References G4UIcommandTree::CreateHTML(), pyG4UIcommandTree::f1_GetTree, pyG4UIcommandTree::f2_GetTree, G4UIcommandTree::FindPath(), G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommandTree::GetGuidance(), G4UIcommandTree::GetPathName(), G4UIcommandTree::GetTitle(), G4UIcommandTree::GetTreeEntry(), G4UIcommandTree::List(), G4UIcommandTree::ListCurrent(), and G4UIcommandTree::ListCurrentWithNum().

Referenced by BOOST_PYTHON_MODULE().

◆ 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().

◆ export_G4UIparameter()

void export_G4UIparameter ( )

Definition at line 39 of file pyG4UIparameter.cc.

40{
41 class_<G4UIparameter, G4UIparameter*>
42 ("G4UIparameter", "UI parameter")
43 // constructors
44 .def(init<char>())
45 .def(init<const char*, char, G4bool>())
46 // ---
47 .def("List", &G4UIparameter::List)
48 .def("GetDefaultValue", &G4UIparameter::GetDefaultValue,
49 return_value_policy<return_by_value>())
50 .def("GetParameterType", &G4UIparameter::GetParameterType)
51 .def("GetParameterRange", &G4UIparameter::GetParameterRange,
52 return_value_policy<return_by_value>())
53 .def("GetParameterName", &G4UIparameter::GetParameterName,
54 return_value_policy<return_by_value>())
55 .def("GetParameterCandidates", &G4UIparameter::GetParameterCandidates,
56 return_value_policy<return_by_value>())
57 .def("IsOmittable", &G4UIparameter::IsOmittable)
58 .def("GetCurrentAsDefault", &G4UIparameter::GetCurrentAsDefault)
59 .def("GetParameterGuidance", &G4UIparameter::GetParameterGuidance,
60 return_value_policy<return_by_value>())
61 ;
62}
const G4String & GetParameterCandidates() const
const G4String & GetParameterGuidance() const
G4bool IsOmittable() const
const G4String & GetParameterRange() const
G4bool GetCurrentAsDefault() const
char GetParameterType() const
const G4String & GetParameterName() const
const G4String & GetDefaultValue() const

References G4UIparameter::GetCurrentAsDefault(), G4UIparameter::GetDefaultValue(), G4UIparameter::GetParameterCandidates(), G4UIparameter::GetParameterGuidance(), G4UIparameter::GetParameterName(), G4UIparameter::GetParameterRange(), G4UIparameter::GetParameterType(), G4UIparameter::IsOmittable(), and G4UIparameter::List().

Referenced by BOOST_PYTHON_MODULE().