00001 // This code implementation is the intellectual property of 00002 // the GEANT4 collaboration. 00003 // 00004 // By copying, distributing or modifying the Program (or any work 00005 // based on the Program) you indicate your acceptance of this statement, 00006 // and all its terms. 00007 // 00008 // $Id: BDSVisManager.hh,v 1.3 2007/10/05 11:40:26 malton Exp $ 00009 // GEANT4 tag $Name: $ 00010 // 00011 // 00012 00013 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00014 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00015 00016 // Example Visualization Manager implementing virtual function 00017 // RegisterGraphicsSystems. Exploits C-pre-processor variables 00018 // G4VIS_USE_DAWN, etc., which are set by the GNUmakefiles if 00019 // environment variables of the same name are set. 00020 00021 // So all you have to do is set environment variables and compile and 00022 // instantiate this in your main(). 00023 00024 // Alternatively, you can implement an empty function here and just 00025 // register the systems you want in your main(), e.g.: 00026 // G4VisManager* myVisManager = new MyVisManager; 00027 // myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem); 00028 00029 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00030 00031 #ifndef BDSVisManager_h 00032 #define BDSVisManager_h 1 00033 00034 #ifdef G4VIS_USE 00035 00036 #include "G4VisManager.hh" 00037 00038 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00039 00040 class BDSVisManager: public G4VisManager { 00041 00042 public: 00043 00044 BDSVisManager (); 00045 virtual ~BDSVisManager(); 00046 00047 private: 00048 00049 void RegisterGraphicsSystems(); 00050 void RegisterModelFactories(); 00051 00052 }; 00053 00054 #endif 00055 00056 #endif