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 // 00027 // $Id$ 00028 // 00029 // (HISTORY) 00030 // 03-Sep-2007 T.Aso Command definitions are introduced. 00031 // 01-Nov-2007 M.Asai Class is splitted into two. 00032 // 18-Feb-2008 T.Aso Command for cylindrical scorer. 00033 // 18-Feb-2008 T.Aso Command for color chart display. 00034 00035 00036 #ifndef G4ScoringMessenger_h 00037 #define G4ScoringMessenger_h 1 00038 00039 #include "G4UImessenger.hh" 00040 00041 #include <vector> 00042 #include "G4String.hh" 00043 00044 class G4ScoringManager; 00045 class G4VScoringMesh; 00046 class G4UIdirectory; 00047 class G4UIcmdWithoutParameter; 00048 class G4UIcmdWithAString; 00049 class G4UIcmdWithABool; 00050 class G4UIcmdWithAnInteger; 00051 class G4UIcmdWithADoubleAndUnit; 00052 class G4UIcmdWith3VectorAndUnit; 00053 class G4UIcommand; 00054 00055 typedef std::vector<G4String> G4TokenVec; 00056 00057 // class description: 00058 // 00059 // This is a concrete class of G4UImessenger which handles the commands for 00060 // G4ScoringManager. 00061 // 00062 00063 class G4ScoringMessenger: public G4UImessenger 00064 { 00065 00066 public: 00067 G4ScoringMessenger(G4ScoringManager * SManager); 00068 00069 ~G4ScoringMessenger(); 00070 00071 void SetNewValue(G4UIcommand * command,G4String newValues); 00072 00073 G4String GetCurrentValue(G4UIcommand * command); 00074 00075 00076 protected: 00077 00078 void FillTokenVec(G4String newValues,G4TokenVec& token); 00079 00080 void MeshBinCommand(G4VScoringMesh* mesh, G4TokenVec& token); 00081 00082 private: 00083 00084 G4ScoringManager* fSMan; 00085 G4UIdirectory* scoreDir; 00086 G4UIcmdWithoutParameter* listCmd; 00087 G4UIcmdWithoutParameter* dumpCmd; 00088 G4UIcmdWithAnInteger* verboseCmd; 00089 // 00090 G4UIdirectory* meshCreateDir; 00091 G4UIcmdWithAString* meshBoxCreateCmd; 00092 G4UIcmdWithAString* meshCylinderCreateCmd; 00093 // G4UIcmdWithAString* meshSphereCreateCmd; 00094 // 00095 // Mesh commands 00096 G4UIdirectory* meshDir; 00097 G4UIcmdWithAString* meshOpnCmd; 00098 // 00099 G4UIcmdWithoutParameter* meshClsCmd; 00100 // G4UIcmdWithABool* meshActCmd; 00101 // 00102 // Size commands 00103 G4UIcmdWith3VectorAndUnit* mBoxSizeCmd; 00104 G4UIcommand* mCylinderSizeCmd; 00105 // G4UIcmdWith3VectorAndUnit* mSphereSizeCmd; 00106 // 00107 // Division command 00108 G4UIcommand* mBinCmd; 00109 // 00110 // Placement command 00111 G4UIdirectory* mTransDir; 00112 G4UIcmdWithoutParameter* mTResetCmd; 00113 G4UIcmdWith3VectorAndUnit* mTXyzCmd; 00114 G4UIdirectory* mRotDir; 00115 G4UIcmdWithoutParameter* mRResetCmd; 00116 G4UIcmdWithADoubleAndUnit* mRotXCmd; 00117 G4UIcmdWithADoubleAndUnit* mRotYCmd; 00118 G4UIcmdWithADoubleAndUnit* mRotZCmd; 00119 // 00120 // Draw Command 00121 G4UIcommand * drawCmd; 00122 G4UIcommand * drawColumnCmd; 00123 G4UIdirectory * colorMapDir; 00124 G4UIcmdWithoutParameter * listColorMapCmd; 00125 G4UIcmdWithAString * floatMinMaxCmd; 00126 G4UIcommand * colorMapMinMaxCmd; 00127 G4UIcommand * chartCmd; 00128 // 00129 // Dump scoring result to file 00130 G4UIcommand * dumpQtyToFileCmd; 00131 G4UIcommand * dumpAllQtsToFileCmd; 00132 // 00133 00134 }; 00135 00136 00137 00138 00139 #endif 00140