Geant4_10
G4ModelCommandUtils.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4ModelCommandUtils.hh 66373 2012-12-18 09:41:34Z gcosmo $
27 //
28 // Jane Tinslay September 2006
29 //
30 // Command utilities
31 //
32 #ifndef G4MODELCOMMANDUTILS_HH
33 #define G4MODELCOMMANDUTILS_HH
34 
35 #include "G4String.hh"
36 #include "G4ModelCommandsT.hh"
37 #include "G4UImessenger.hh"
38 #include "G4VisTrajContext.hh"
39 
40 namespace G4ModelCommandUtils {
41 
42  void AddContextMsgrs(G4VisTrajContext* context, std::vector<G4UImessenger*>& messengers,
43  const G4String& placement)
44  {
45  messengers.push_back(new G4ModelCmdCreateContextDir<G4VisTrajContext>(context, placement));
46  messengers.push_back(new G4ModelCmdSetDrawLine<G4VisTrajContext>(context, placement));
47  messengers.push_back(new G4ModelCmdSetLineVisible<G4VisTrajContext>(context, placement));
48  messengers.push_back(new G4ModelCmdSetLineColour<G4VisTrajContext>(context, placement));
49 
50  messengers.push_back(new G4ModelCmdSetDrawStepPts<G4VisTrajContext>(context, placement));
51  messengers.push_back(new G4ModelCmdSetStepPtsVisible<G4VisTrajContext>(context, placement));
52  messengers.push_back(new G4ModelCmdSetStepPtsColour<G4VisTrajContext>(context, placement));
53  messengers.push_back(new G4ModelCmdSetStepPtsSize<G4VisTrajContext>(context, placement));
54  messengers.push_back(new G4ModelCmdSetStepPtsSizeType<G4VisTrajContext>(context, placement));
55  messengers.push_back(new G4ModelCmdSetStepPtsType<G4VisTrajContext>(context, placement));
56  messengers.push_back(new G4ModelCmdSetStepPtsFillStyle<G4VisTrajContext>(context, placement));
57 
58  messengers.push_back(new G4ModelCmdSetDrawAuxPts<G4VisTrajContext>(context, placement));
59  messengers.push_back(new G4ModelCmdSetAuxPtsVisible<G4VisTrajContext>(context, placement));
60  messengers.push_back(new G4ModelCmdSetAuxPtsColour<G4VisTrajContext>(context, placement));
61  messengers.push_back(new G4ModelCmdSetAuxPtsSize<G4VisTrajContext>(context, placement));
62  messengers.push_back(new G4ModelCmdSetAuxPtsSizeType<G4VisTrajContext>(context, placement));
63  messengers.push_back(new G4ModelCmdSetAuxPtsType<G4VisTrajContext>(context, placement));
64  messengers.push_back(new G4ModelCmdSetAuxPtsFillStyle<G4VisTrajContext>(context, placement));
65 
66  messengers.push_back(new G4ModelCmdSetTimeSliceInterval<G4VisTrajContext>(context, placement));
67  }
68 }
69 
70 #endif
void AddContextMsgrs(G4VisTrajContext *context, std::vector< G4UImessenger * > &messengers, const G4String &placement)
const XML_Char * context
Definition: expat.h:434