Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4VGMMessenger Class Reference

Messenger class that defines commands for VGM XML Exporter. More...

#include <TG4VGMMessenger.h>

Inheritance diagram for TG4VGMMessenger:

Public Member Functions

 TG4VGMMessenger (const G4String &xmlFormat, const G4String &userGeometry)
 
virtual ~TG4VGMMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 

Private Member Functions

 TG4VGMMessenger ()
 Not implemented.
 
 TG4VGMMessenger (const TG4VGMMessenger &right)
 Not implemented.
 
TG4VGMMessengeroperator= (const TG4VGMMessenger &right)
 Not implemented.
 
void CreateVGMExporter ()
 

Private Attributes

G4String fGeometryInput
 The geometry input type (Root/Geant4)
 
G4String fXmlFormat
 The XML format.
 
VGM::IFactory * fImportFactory
 VGM factory for import.
 
Geant4GM::Factory * fG4Factory
 Geant4 VGM Factory.
 
RootGM::Factory * fRootFactory
 Root VGM Factory.
 
XmlVGM::VExporter * fXmlVGMExporter
 associated class
 
G4UIcmdWithAString * fGenerateXMLCmd
 command: /vgm/generateXXX
 
G4UIcmdWithAnInteger * fSetXMLNumWidthCmd
 command: /vgm/setXMLNumWidth
 
G4UIcmdWithAnInteger * fSetXMLNumPrecisionCmd
 command: /vgm/setXMLNumPrecision
 
G4UIcmdWithABool * fSetAssembliesInNamesCmd
 command: /xml/setAssembliesInNames
 
G4UIcmdWithAString * fSetNameSeparatorCmd
 command: /xml/setNameSeparator
 

Static Private Attributes

static G4UIdirectory * fgDirectory = 0
 command directory
 
static G4UIcmdWithoutParameter * fgGenerateRootCmd = 0
 command: /xml/generateRoot
 
static G4int fgCounter = 0
 instances counter
 

Detailed Description

Messenger class that defines commands for VGM XML Exporter.

Implements commands:

  • /vgm/generateRoot
  • /vgm/generateAGDD [lvName]
  • /vgm/generateGDML [lvName]
  • /vgm/setAssembliesInNames bool
  • /vgm/setNameSeparator bool
Author
I. Hrivnacova; IPN, Orsay

Definition at line 47 of file TG4VGMMessenger.h.

Constructor & Destructor Documentation

◆ TG4VGMMessenger() [1/3]

TG4VGMMessenger::TG4VGMMessenger ( const G4String & xmlFormat,
const G4String & userGeometry )

Standard constructor

Definition at line 39 of file TG4VGMMessenger.cxx.

◆ ~TG4VGMMessenger()

TG4VGMMessenger::~TG4VGMMessenger ( )
virtual

Destructor

Definition at line 118 of file TG4VGMMessenger.cxx.

◆ TG4VGMMessenger() [2/3]

TG4VGMMessenger::TG4VGMMessenger ( )
private

Not implemented.

◆ TG4VGMMessenger() [3/3]

TG4VGMMessenger::TG4VGMMessenger ( const TG4VGMMessenger & right)
private

Not implemented.

Member Function Documentation

◆ SetNewValue()

void TG4VGMMessenger::SetNewValue ( G4UIcommand * command,
G4String newValues )
virtual

Applies command to the associated object.

Definition at line 162 of file TG4VGMMessenger.cxx.

◆ operator=()

TG4VGMMessenger & TG4VGMMessenger::operator= ( const TG4VGMMessenger & right)
private

Not implemented.

◆ CreateVGMExporter()

void TG4VGMMessenger::CreateVGMExporter ( )
private

Create VGM exporter if it does not yet exist

Definition at line 143 of file TG4VGMMessenger.cxx.

Referenced by SetNewValue().

Member Data Documentation

◆ fgDirectory

G4UIdirectory * TG4VGMMessenger::fgDirectory = 0
staticprivate

command directory

Definition at line 68 of file TG4VGMMessenger.h.

Referenced by TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fgGenerateRootCmd

G4UIcmdWithoutParameter * TG4VGMMessenger::fgGenerateRootCmd = 0
staticprivate

command: /xml/generateRoot

Definition at line 71 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fgCounter

G4int TG4VGMMessenger::fgCounter = 0
staticprivate

instances counter

Definition at line 74 of file TG4VGMMessenger.h.

Referenced by TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fGeometryInput

G4String TG4VGMMessenger::fGeometryInput
private

The geometry input type (Root/Geant4)

Definition at line 80 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), and TG4VGMMessenger().

◆ fXmlFormat

G4String TG4VGMMessenger::fXmlFormat
private

The XML format.

Definition at line 81 of file TG4VGMMessenger.h.

Referenced by CreateVGMExporter().

◆ fImportFactory

VGM::IFactory* TG4VGMMessenger::fImportFactory
private

VGM factory for import.

Definition at line 82 of file TG4VGMMessenger.h.

Referenced by CreateVGMExporter(), and SetNewValue().

◆ fG4Factory

Geant4GM::Factory* TG4VGMMessenger::fG4Factory
private

Geant4 VGM Factory.

Definition at line 83 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), and ~TG4VGMMessenger().

◆ fRootFactory

RootGM::Factory* TG4VGMMessenger::fRootFactory
private

Root VGM Factory.

Definition at line 84 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), and ~TG4VGMMessenger().

◆ fXmlVGMExporter

XmlVGM::VExporter* TG4VGMMessenger::fXmlVGMExporter
private

associated class

Definition at line 85 of file TG4VGMMessenger.h.

Referenced by CreateVGMExporter(), SetNewValue(), and ~TG4VGMMessenger().

◆ fGenerateXMLCmd

G4UIcmdWithAString* TG4VGMMessenger::fGenerateXMLCmd
private

command: /vgm/generateXXX

Definition at line 86 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fSetXMLNumWidthCmd

G4UIcmdWithAnInteger* TG4VGMMessenger::fSetXMLNumWidthCmd
private

command: /vgm/setXMLNumWidth

Definition at line 87 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fSetXMLNumPrecisionCmd

G4UIcmdWithAnInteger* TG4VGMMessenger::fSetXMLNumPrecisionCmd
private

command: /vgm/setXMLNumPrecision

Definition at line 89 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fSetAssembliesInNamesCmd

G4UIcmdWithABool* TG4VGMMessenger::fSetAssembliesInNamesCmd
private

command: /xml/setAssembliesInNames

Definition at line 91 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().

◆ fSetNameSeparatorCmd

G4UIcmdWithAString* TG4VGMMessenger::fSetNameSeparatorCmd
private

command: /xml/setNameSeparator

Definition at line 92 of file TG4VGMMessenger.h.

Referenced by SetNewValue(), TG4VGMMessenger(), and ~TG4VGMMessenger().


The documentation for this class was generated from the following files: