G4GMocrenMessenger.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 //
00029 // Created:  Mar. 31, 2009  Akinori Kimura  
00030 //
00031 // UI command definition for gMocren-file driver.
00032 //
00033 #ifndef G4GMOCRENMESSENGER_HH
00034 #define G4GMOCRENMESSENGER_HH 1
00035 
00036 #include "G4UImessenger.hh"
00037 #include <vector>
00038 
00039 class G4UIdirectory;
00040 class G4UIcmdWithABool;
00041 class G4UIcmdWithAString;
00042 class G4UIcommand;
00043 class G4UIcmdWithoutParameter;
00044 
00045 
00046 class G4GMocrenMessenger : public G4UImessenger {
00047     
00048 public:
00049   G4GMocrenMessenger();
00050   virtual ~G4GMocrenMessenger();
00051 
00052   virtual G4String GetCurrentValue(G4UIcommand * command);
00053   virtual void SetNewValue(G4UIcommand * command, G4String newValue);
00054         
00055   virtual G4String getEventNumberSuffix();
00056   virtual G4bool appendGeometry();
00057   virtual G4bool addPointAttributes();
00058   virtual G4bool useSolids();
00059   virtual G4bool writeInvisibles();
00060   virtual G4String getVolumeName();
00061   virtual std::vector<G4String> getHitNames();
00062   virtual G4String getScoringMeshName();
00063   virtual std::vector<G4String> getHitScorerNames();
00064   virtual void list();
00065   virtual void getNoVoxels(G4int & nx, G4int & ny, G4int & nz) const;
00066   virtual G4bool getDrawVolumeGrid() {return kDrawVolumeGrid;}
00067 
00068 private:            
00069   G4UIdirectory* kgMocrenDirectory;
00070         
00071   G4String suffix;
00072   G4UIcmdWithAString* setEventNumberSuffixCommand;
00073         
00074   G4bool geometry;
00075   G4UIcmdWithABool* appendGeometryCommand;
00076 
00077   G4bool pointAttributes;
00078   G4UIcmdWithABool* addPointAttributesCommand;
00079 
00080   G4bool solids;
00081   G4UIcmdWithABool* useSolidsCommand;
00082 
00083   G4bool invisibles;
00084   G4UIcmdWithABool* writeInvisiblesCommand;
00085 
00086   G4String kgMocrenVolumeName;
00087   G4UIcmdWithAString* kSetgMocrenVolumeNameCommand;
00088 
00089   std::vector<G4String> kgMocrenHitNames;
00090   G4UIcmdWithAString* kAddgMocrenHitNameCommand;
00091   G4UIcmdWithoutParameter * kResetgMocrenHitNameCommand;
00092 
00093   G4String kgMocrenScoringMeshName;
00094   G4UIcmdWithAString * kSetgMocrenScoringMeshNameCommand;
00095 
00096   std::vector<G4String> kgMocrenHitScorerNames;
00097   G4UIcmdWithAString * kAddgMocrenHitScorerNameCommand;
00098   G4UIcmdWithoutParameter * kResetgMocrenHitScorerNameCommand;
00099 
00100   G4int kgMocrenNoVoxels[3];
00101   G4UIcommand * kSetgMocrenNoVoxelsCommand;
00102 
00103   G4UIcmdWithoutParameter * kListgMocrenCommand;
00104 
00105   G4bool kDrawVolumeGrid;
00106   G4UIcmdWithABool* kDrawVolumeGridCommand;
00107 };
00108 
00109 #endif

Generated on Mon May 27 17:48:23 2013 for Geant4 by  doxygen 1.4.7