Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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//
27// Jane Tinslay September 2006
28//
29// Command utilities
30//
31#ifndef G4MODELCOMMANDUTILS_HH
32#define G4MODELCOMMANDUTILS_HH
33
34#include "G4String.hh"
35#include "G4ModelCommandsT.hh"
36#include "G4UImessenger.hh"
37#include "G4VisTrajContext.hh"
38
40
41 void AddContextMsgrs(G4VisTrajContext* context, std::vector<G4UImessenger*>& messengers,
42 const G4String& placement)
43 {
44 messengers.push_back(new G4ModelCmdCreateContextDir<G4VisTrajContext>(context, placement));
45 messengers.push_back(new G4ModelCmdSetDrawLine<G4VisTrajContext>(context, placement));
46 messengers.push_back(new G4ModelCmdSetLineVisible<G4VisTrajContext>(context, placement));
47 messengers.push_back(new G4ModelCmdSetLineColour<G4VisTrajContext>(context, placement));
48 messengers.push_back(new G4ModelCmdSetLineWidth<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)