G4HepRepMessenger.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 #ifndef G4HepRepMessenger_HH
00030 #define G4HepRepMessenger_HH 1
00031 
00032 #include "G4UImessenger.hh"
00033 #include "G4UIdirectory.hh"
00034 #include "G4UIcmdWithABool.hh"
00035 #include "G4UIcmdWithAString.hh"
00036 #include "G4UIcmdWithADouble.hh"
00037 #include "G4UIcmdWith3VectorAndUnit.hh"
00038 #include "G4UIcommand.hh"
00039 #include "G4ThreeVector.hh"
00040 
00041 class G4HepRepMessenger : public G4UImessenger {
00042     
00043     public:
00044                 static G4HepRepMessenger* GetInstance();  // Singleton constructor.
00045         virtual ~G4HepRepMessenger();
00046 
00047         virtual G4String GetCurrentValue(G4UIcommand * command);
00048         virtual void SetNewValue(G4UIcommand * command, G4String newValue);
00049         
00050         // Used by HepRepFile
00051         virtual G4String getFileDir();
00052         virtual G4String getFileName();
00053         virtual G4bool getOverwrite();
00054         virtual G4bool getCullInvisibles();
00055                 virtual G4bool renderCylAsPolygons();
00056                 virtual G4double getScale();
00057                 virtual G4ThreeVector getCenter();
00058         
00059         // Used by HepRepXML
00060         virtual G4String getEventNumberSuffix();
00061         virtual G4bool appendGeometry();
00062         virtual G4bool addPointAttributes();
00063         virtual G4bool useSolids();
00064         virtual G4bool writeInvisibles();
00065 
00066     private:            
00067                 G4HepRepMessenger();  // Private constructor.
00068                 static G4HepRepMessenger* fpInstance;
00069         
00070         G4UIdirectory* heprepDirectory;
00071         
00072                 G4String fileDir;
00073                 G4UIcmdWithAString* setFileDirCommand;
00074         
00075                 G4String fileName;
00076                 G4UIcmdWithAString* setFileNameCommand;
00077         
00078                 G4bool overwrite;
00079                 G4UIcmdWithABool* setOverwriteCommand;
00080         
00081                 G4bool cullInvisibles;
00082                 G4UIcmdWithABool* setCullInvisiblesCommand;
00083         
00084                 G4bool cylAsPolygons;
00085                 G4UIcmdWithABool* renderCylAsPolygonsCommand;
00086         
00087                 G4double scale;
00088                 G4UIcmdWithADouble* setScaleCommand;
00089         
00090                 G4ThreeVector center;
00091                 G4UIcmdWith3VectorAndUnit* setCenterCommand;
00092         
00093         G4String suffix;
00094         G4UIcmdWithAString* setEventNumberSuffixCommand;
00095         
00096         G4bool geometry;
00097         G4UIcmdWithABool* appendGeometryCommand;
00098 
00099         G4bool pointAttributes;
00100         G4UIcmdWithABool* addPointAttributesCommand;
00101 
00102         G4bool solids;
00103         G4UIcmdWithABool* useSolidsCommand;
00104         
00105         G4bool invisibles;
00106         G4UIcmdWithABool* writeInvisiblesCommand;
00107 };
00108 
00109 #endif

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