Loading...
Searching...
No Matches
Functions
perspective.cc File Reference

Main program of the visualization/perspective example. More...

#include "globals.hh"
#include "G4VisExecutive.hh"
#include "G4VisExtent.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4SystemOfUnits.hh"
#include "PerspectiveVisAction.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Main program of the visualization/perspective example.

Definition in file perspective.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 46 of file perspective.cc.

46 {
47
48 G4UIExecutive* ui = new G4UIExecutive(argc,argv);
49
50 G4VisManager* visManager = new G4VisExecutive;
51
52 visManager->RegisterRunDurationUserVisAction
53 ("Perspective",
55 G4VisExtent(-100*m,100*m,-100*m,100*m,-100*m,100*m));
56
57 visManager->Initialise();
58
59 G4UImanager::GetUIpointer()->ApplyCommand("/control/execute vis.mac");
60 ui->SessionStart();
61
62 delete ui;
63 delete visManager;
64}

Applications | User Support | Publications | Collaboration