00001 // 00002 // ******************************************************************** 00003 // * DISCLAIMER * 00004 // * * 00005 // * The following disclaimer summarizes all the specific disclaimers * 00006 // * of contributors to this software. The specific disclaimers,which * 00007 // * govern, are listed with their locations in: * 00008 // * http://cern.ch/geant4/license * 00009 // * * 00010 // * Neither the authors of this software system, nor their employing * 00011 // * institutes,nor the agencies providing financial support for this * 00012 // * work make any representation or warranty, express or implied, * 00013 // * regarding this software system or assume any liability for its * 00014 // * use. * 00015 // * * 00016 // * This code implementation is the intellectual property of the * 00017 // * GEANT4 collaboration. * 00018 // * By copying, distributing or modifying the Program (or any work * 00019 // * based on the Program) you indicate your acceptance of this * 00020 // * statement, and all its terms. * 00021 // ******************************************************************** 00022 // 00023 // 00024 // $Id: BesVisManager.hh,v 1.4 2015/03/17 05:50:57 sunss Exp $ 00025 // GEANT4 tag $Name: BesSim-00-01-24 $ 00026 // 00027 // 00028 00029 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00030 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00031 00032 // Example Visualization Manager implementing virtual function 00033 // RegisterGraphicsSystems. Exploits C-pre-processor variables 00034 // G4VIS_USE_DAWN, etc., which are set by the GNUmakefiles if 00035 // environment variables of the same name are set. 00036 00037 // So all you have to do is set environment variables and compile and 00038 // instantiate this in your main(). 00039 00040 // Alternatively, you can implement an empty function here and just 00041 // register the systems you want in your main(), e.g.: 00042 // G4VisManager* myVisManager = new MyVisManager; 00043 // myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem); 00044 00045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00046 00047 #ifndef BesVisManager_h 00048 #define BesVisManager_h 1 00049 00050 #ifdef G4VIS_USE 00051 00052 #include "G4VisManager.hh" 00053 00054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00055 00056 class BesVisManager: public G4VisManager { 00057 00058 public: 00059 00060 BesVisManager (); 00061 00062 private: 00063 00064 void RegisterGraphicsSystems (); 00065 00066 }; 00067 00068 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00069 00070 #endif 00071 00072 #endif 00073 00074 00075 00076 00077 00078 00079 00080 00081