Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4VGMMessenger.h
Go to the documentation of this file.
1#ifndef TG4_VGM_MESSENGER_H
2#define TG4_VGM_MESSENGER_H
3
4#ifdef USE_VGM
5
6//------------------------------------------------
7// The Geant4 Virtual Monte Carlo package
8// Copyright (C) 2007 - 2014 Ivana Hrivnacova
9// All rights reserved.
10//
11// For the licensing terms see geant4_vmc/LICENSE.
12// Contact: root-vmc@cern.ch
13//-------------------------------------------------
14
19
20#include <Geant4GM/volumes/Factory.h>
21#include <RootGM/volumes/Factory.h>
22#include <VGM/volumes/IFactory.h>
23#include <XmlVGM/VExporter.h>
24
25#include <G4UImessenger.hh>
26#include <globals.hh>
27
28class G4UIcommand;
29class G4UIdirectory;
30class G4UIcmdWithAString;
31class G4UIcmdWithAnInteger;
32class G4UIcmdWithABool;
33class G4UIcmdWithoutParameter;
34
46
48{
49 public:
50 TG4VGMMessenger(const G4String& xmlFormat, const G4String& userGeometry);
51 virtual ~TG4VGMMessenger();
52
53 // methods
54 virtual void SetNewValue(G4UIcommand* command, G4String newValues);
55
56 private:
63
64 //
65 // static data members
66
68 static G4UIdirectory* fgDirectory;
69
71 static G4UIcmdWithoutParameter* fgGenerateRootCmd;
72
74 static G4int fgCounter;
75
76 // methods
77 void CreateVGMExporter();
78
79 // data members
80 G4String fGeometryInput;
81 G4String fXmlFormat;
82 VGM::IFactory* fImportFactory;
83 Geant4GM::Factory* fG4Factory;
84 RootGM::Factory* fRootFactory;
85 XmlVGM::VExporter* fXmlVGMExporter;
86 G4UIcmdWithAString* fGenerateXMLCmd;
87 G4UIcmdWithAnInteger* fSetXMLNumWidthCmd;
88 G4UIcmdWithAnInteger*
90 G4UIcmdWithABool*
92 G4UIcmdWithAString* fSetNameSeparatorCmd;
93};
94
95#endif // TG4_XML_VGM_MESSENGER_H
96
97#endif // USE_VGM
Messenger class that defines commands for VGM XML Exporter.
TG4VGMMessenger()
Not implemented.
G4UIcmdWithABool * fSetAssembliesInNamesCmd
command: /xml/setAssembliesInNames
G4UIcmdWithAString * fSetNameSeparatorCmd
command: /xml/setNameSeparator
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
static G4UIdirectory * fgDirectory
command directory
Geant4GM::Factory * fG4Factory
Geant4 VGM Factory.
G4UIcmdWithAnInteger * fSetXMLNumPrecisionCmd
command: /vgm/setXMLNumPrecision
XmlVGM::VExporter * fXmlVGMExporter
associated class
G4UIcmdWithAString * fGenerateXMLCmd
command: /vgm/generateXXX
static G4UIcmdWithoutParameter * fgGenerateRootCmd
command: /xml/generateRoot
TG4VGMMessenger & operator=(const TG4VGMMessenger &right)
Not implemented.
G4String fGeometryInput
The geometry input type (Root/Geant4)
TG4VGMMessenger(const TG4VGMMessenger &right)
Not implemented.
RootGM::Factory * fRootFactory
Root VGM Factory.
G4String fXmlFormat
The XML format.
VGM::IFactory * fImportFactory
VGM factory for import.
G4UIcmdWithAnInteger * fSetXMLNumWidthCmd
command: /vgm/setXMLNumWidth
static G4int fgCounter
instances counter