36 #include "G4VisExecutive.hh" 37 #include "G4VisExtent.hh" 38 #include "G4UImanager.hh" 39 #include "G4UIExecutive.hh" 40 #include "G4SystemOfUnits.hh" 42 #include "PerspectiveVisAction.hh" 46 int main(
int argc,
char** argv) {
48 G4UIExecutive* ui =
new G4UIExecutive(argc,argv);
50 G4VisManager* visManager =
new G4VisExecutive;
52 visManager->RegisterRunDurationUserVisAction
54 new PerspectiveVisAction,
55 G4VisExtent(-100*m,100*m,-100*m,100*m,-100*m,100*m));
57 visManager->Initialise();
59 G4UImanager::GetUIpointer()->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)