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