source: trunk/source/visualization/modeling/include/G4ModelCommandUtils.hh@ 1347

Last change on this file since 1347 was 1346, checked in by garnier, 15 years ago

before tag

File size: 3.9 KB
Line 
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,v 1.3 2009/02/24 12:00:56 allison Exp $
27// GEANT4 tag $Name: $
28//
29// Jane Tinslay September 2006
30//
31// Command utilities
32//
33#ifndef G4MODELCOMMANDUTILS_HH
34#define G4MODELCOMMANDUTILS_HH
35
36#include "G4String.hh"
37#include "G4ModelCommandsT.hh"
38#include "G4UImessenger.hh"
39#include "G4VisTrajContext.hh"
40
41namespace G4ModelCommandUtils {
42
43 void AddContextMsgrs(G4VisTrajContext* context, std::vector<G4UImessenger*>& messengers,
44 const G4String& placement)
45 {
46 messengers.push_back(new G4ModelCmdCreateContextDir<G4VisTrajContext>(context, placement));
47 messengers.push_back(new G4ModelCmdSetDrawLine<G4VisTrajContext>(context, placement));
48 messengers.push_back(new G4ModelCmdSetLineVisible<G4VisTrajContext>(context, placement));
49 messengers.push_back(new G4ModelCmdSetLineColour<G4VisTrajContext>(context, placement));
50
51 messengers.push_back(new G4ModelCmdSetDrawStepPts<G4VisTrajContext>(context, placement));
52 messengers.push_back(new G4ModelCmdSetStepPtsVisible<G4VisTrajContext>(context, placement));
53 messengers.push_back(new G4ModelCmdSetStepPtsColour<G4VisTrajContext>(context, placement));
54 messengers.push_back(new G4ModelCmdSetStepPtsSize<G4VisTrajContext>(context, placement));
55 messengers.push_back(new G4ModelCmdSetStepPtsSizeType<G4VisTrajContext>(context, placement));
56 messengers.push_back(new G4ModelCmdSetStepPtsType<G4VisTrajContext>(context, placement));
57 messengers.push_back(new G4ModelCmdSetStepPtsFillStyle<G4VisTrajContext>(context, placement));
58
59 messengers.push_back(new G4ModelCmdSetDrawAuxPts<G4VisTrajContext>(context, placement));
60 messengers.push_back(new G4ModelCmdSetAuxPtsVisible<G4VisTrajContext>(context, placement));
61 messengers.push_back(new G4ModelCmdSetAuxPtsColour<G4VisTrajContext>(context, placement));
62 messengers.push_back(new G4ModelCmdSetAuxPtsSize<G4VisTrajContext>(context, placement));
63 messengers.push_back(new G4ModelCmdSetAuxPtsSizeType<G4VisTrajContext>(context, placement));
64 messengers.push_back(new G4ModelCmdSetAuxPtsType<G4VisTrajContext>(context, placement));
65 messengers.push_back(new G4ModelCmdSetAuxPtsFillStyle<G4VisTrajContext>(context, placement));
66
67 messengers.push_back(new G4ModelCmdSetTimeSliceInterval<G4VisTrajContext>(context, placement));
68 }
69}
70
71#endif
Note: See TracBrowser for help on using the repository browser.