Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
standalone.cc File Reference

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

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

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Main program of the visualization/standalone example.

Definition in file standalone.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file standalone.cc.

References G4UImanager::ApplyCommand(), G4UImanager::GetUIpointer(), G4VisManager::Initialize(), python.hepunit::m, G4VisManager::RegisterRunDurationUserVisAction(), and G4UIExecutive::SessionStart().

47  {
48 
49  G4VisManager* visManager = new G4VisExecutive;
51  ("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
53  G4VisExtent(-10*m,10*m,-10*m,10*m,-10*m,10*m));
54  visManager->Initialize ();
55 
56  G4UIExecutive* ui = new G4UIExecutive(argc, argv);
58  UImanager->ApplyCommand ("/control/execute standalone.mac");
59  ui->SessionStart();
60 
61  delete ui;
62  delete visManager;
63 }
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
void Initialize()
void RegisterRunDurationUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:419