37 #include "G4VisExecutive.hh" 38 #include "G4VisExtent.hh" 39 #include "G4UImanager.hh" 40 #include "G4UIExecutive.hh" 41 #include "G4SystemOfUnits.hh" 43 #include "StandaloneVisAction.hh" 47 int main(
int argc,
char** argv) {
49 G4VisManager* visManager =
new G4VisExecutive;
50 visManager->RegisterRunDurationUserVisAction
51 (
"A standalone example - 3 boxes, 2 with boolean subtracted cutout",
52 new StandaloneVisAction,
53 G4VisExtent(-10*m,10*m,-10*m,10*m,-10*m,10*m));
54 visManager->Initialize ();
56 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
57 G4UImanager* UImanager = G4UImanager::GetUIpointer();
58 UImanager->ApplyCommand (
"/control/execute standalone.mac");
int main(int argc, char **argv)