Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -23,21 +23,16 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// class G4GDMLWriteDefine
|
||||
// G4GDMLWriteDefine
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// GDML writer class for positionings and transformations.
|
||||
|
||||
// History:
|
||||
// - Created. Zoltan Torzsok, November 2007
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
#ifndef _G4GDMLWRITEDEFINE_INCLUDED_
|
||||
#define _G4GDMLWRITEDEFINE_INCLUDED_
|
||||
// Author: Zoltan Torzsok, November 2007
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4GDMLWRITEDEFINE_HH
|
||||
#define G4GDMLWRITEDEFINE_HH 1
|
||||
|
||||
#include "G4Types.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
@@ -47,27 +42,38 @@
|
||||
|
||||
class G4GDMLWriteDefine : public G4GDMLWrite
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4ThreeVector GetAngles(const G4RotationMatrix&);
|
||||
void ScaleWrite(xercesc::DOMElement* element,
|
||||
const G4String& name, const G4ThreeVector& scl)
|
||||
{ Scale_vectorWrite(element,"scale",name,scl); }
|
||||
void RotationWrite(xercesc::DOMElement* element,
|
||||
const G4String& name, const G4ThreeVector& rot)
|
||||
{ Rotation_vectorWrite(element,"rotation",name,rot); }
|
||||
void PositionWrite(xercesc::DOMElement* element,
|
||||
const G4String& name, const G4ThreeVector& pos)
|
||||
{ Position_vectorWrite(element,"position",name,pos); }
|
||||
void FirstrotationWrite(xercesc::DOMElement* element,
|
||||
const G4String& name, const G4ThreeVector& rot)
|
||||
{ Rotation_vectorWrite(element,"firstrotation",name,rot); }
|
||||
void FirstpositionWrite(xercesc::DOMElement* element,
|
||||
const G4String& name, const G4ThreeVector& pos)
|
||||
{ Position_vectorWrite(element,"firstposition",name,pos); }
|
||||
void ScaleWrite(xercesc::DOMElement* element, const G4String& name,
|
||||
const G4ThreeVector& scl)
|
||||
{
|
||||
Scale_vectorWrite(element, "scale", name, scl);
|
||||
}
|
||||
void RotationWrite(xercesc::DOMElement* element, const G4String& name,
|
||||
const G4ThreeVector& rot)
|
||||
{
|
||||
Rotation_vectorWrite(element, "rotation", name, rot);
|
||||
}
|
||||
void PositionWrite(xercesc::DOMElement* element, const G4String& name,
|
||||
const G4ThreeVector& pos)
|
||||
{
|
||||
Position_vectorWrite(element, "position", name, pos);
|
||||
}
|
||||
void FirstrotationWrite(xercesc::DOMElement* element, const G4String& name,
|
||||
const G4ThreeVector& rot)
|
||||
{
|
||||
Rotation_vectorWrite(element, "firstrotation", name, rot);
|
||||
}
|
||||
void FirstpositionWrite(xercesc::DOMElement* element, const G4String& name,
|
||||
const G4ThreeVector& pos)
|
||||
{
|
||||
Position_vectorWrite(element, "firstposition", name, pos);
|
||||
}
|
||||
void AddPosition(const G4String& name, const G4ThreeVector& pos)
|
||||
{ Position_vectorWrite(defineElement,"position",name,pos); }
|
||||
{
|
||||
Position_vectorWrite(defineElement, "position", name, pos);
|
||||
}
|
||||
|
||||
virtual void DefineWrite(xercesc::DOMElement*);
|
||||
|
||||
@@ -77,7 +83,7 @@ class G4GDMLWriteDefine : public G4GDMLWrite
|
||||
virtual ~G4GDMLWriteDefine();
|
||||
|
||||
void Scale_vectorWrite(xercesc::DOMElement*, const G4String&,
|
||||
const G4String&, const G4ThreeVector&);
|
||||
const G4String&, const G4ThreeVector&);
|
||||
void Rotation_vectorWrite(xercesc::DOMElement*, const G4String&,
|
||||
const G4String&, const G4ThreeVector&);
|
||||
void Position_vectorWrite(xercesc::DOMElement*, const G4String&,
|
||||
@@ -88,9 +94,8 @@ class G4GDMLWriteDefine : public G4GDMLWrite
|
||||
static const G4double kRelativePrecision;
|
||||
static const G4double kAngularPrecision;
|
||||
static const G4double kLinearPrecision;
|
||||
|
||||
xercesc::DOMElement* defineElement;
|
||||
|
||||
xercesc::DOMElement* defineElement = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user