VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::BooleanSolid Class Reference

VGM implementation for Geant4 Boolean solid. More...

#include <BooleanSolid.h>

Inheritance diagram for Geant4GM::BooleanSolid:

Public Member Functions

 BooleanSolid (const std::string &name, VGM::BooleanType boolType, VGM::ISolid *solidA, VGM::ISolid *solidB, CLHEP::HepRotation *rotation, const CLHEP::Hep3Vector &translation)
 
 BooleanSolid (G4BooleanSolid *booleanSolid, G4ReflectedSolid *reflectedBoolean)
 
virtual ~BooleanSolid ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual VGM::BooleanType BoolType () const
 Return the Boolean type of this solid.
 
virtual VGM::ISolidConstituentSolidA () const
 Return the first constituent solid.
 
virtual VGM::ISolidConstituentSolidB () const
 Return the second constituent solid.
 
virtual VGM::Transform Displacement () const
 Return the 3D displacement of the second constituent solid with respect to the first one.
 
virtual bool ToBeReflected () const
 Return true if the solid has to be first reflected before being placed.
 
- Public Member Functions inherited from BaseVGM::VBooleanSolid
 VBooleanSolid ()
 
virtual ~VBooleanSolid ()
 
virtual VGM::SolidType Type () const
 Return the type of this solid.
 
virtual std::ostream & Put (std::ostream &out) const
 Put the printing of the solid parameters in the out stream.
 
- Public Member Functions inherited from VGM::IBooleanSolid
virtual ~IBooleanSolid ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Static Public Member Functions

static G4VSolid * GetConstituentSolid (int index, G4BooleanSolid *booleanSolid)
 

Protected Member Functions

 BooleanSolid ()
 
 BooleanSolid (const BooleanSolid &rhs)
 

Detailed Description

VGM implementation for Geant4 Boolean solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 36 of file BooleanSolid.h.

Constructor & Destructor Documentation

◆ BooleanSolid() [1/4]

Geant4GM::BooleanSolid::BooleanSolid ( const std::string & name,
VGM::BooleanType boolType,
VGM::ISolid * solidA,
VGM::ISolid * solidB,
CLHEP::HepRotation * rotation,
const CLHEP::Hep3Vector & translation )

Standard constructor to define Boolean solids via constituents

Parameters
boolTypetype of Boolean operation (kIntersection, kSubtraction, kUnion)
solidA,solidBconstituent solids
rotation,translationthe CLHEP rotation and translation of the solidB with respect to solidA

Definition at line 32 of file BooleanSolid.cxx.

◆ BooleanSolid() [2/4]

Geant4GM::BooleanSolid::BooleanSolid ( G4BooleanSolid * booleanSolid,
G4ReflectedSolid * reflectedBoolean )

Standard constructor to define Boolean solid via G4 object

Definition at line 81 of file BooleanSolid.cxx.

◆ ~BooleanSolid()

Geant4GM::BooleanSolid::~BooleanSolid ( )
virtual

Definition at line 114 of file BooleanSolid.cxx.

◆ BooleanSolid() [3/4]

Geant4GM::BooleanSolid::BooleanSolid ( )
protected

Protected default constructor

Definition at line 100 of file BooleanSolid.cxx.

◆ BooleanSolid() [4/4]

Geant4GM::BooleanSolid::BooleanSolid ( const BooleanSolid & rhs)
protected

Protected copy constructor

Definition at line 107 of file BooleanSolid.cxx.

Member Function Documentation

◆ Name()

std::string Geant4GM::BooleanSolid::Name ( ) const
virtual

Return the name of this solid.

Implements VGM::IBooleanSolid.

Definition at line 138 of file BooleanSolid.cxx.

◆ BoolType()

VGM::BooleanType Geant4GM::BooleanSolid::BoolType ( ) const
virtual

Return the Boolean type of this solid.

Implements VGM::IBooleanSolid.

Definition at line 147 of file BooleanSolid.cxx.

◆ ConstituentSolidA()

VGM::ISolid * Geant4GM::BooleanSolid::ConstituentSolidA ( ) const
virtual

Return the first constituent solid.

Implements VGM::IBooleanSolid.

Definition at line 164 of file BooleanSolid.cxx.

◆ ConstituentSolidB()

VGM::ISolid * Geant4GM::BooleanSolid::ConstituentSolidB ( ) const
virtual

Return the second constituent solid.

Implements VGM::IBooleanSolid.

Definition at line 176 of file BooleanSolid.cxx.

◆ Displacement()

VGM::Transform Geant4GM::BooleanSolid::Displacement ( ) const
virtual

Return the 3D displacement of the second constituent solid with respect to the first one.

Implements VGM::IBooleanSolid.

Definition at line 189 of file BooleanSolid.cxx.

◆ ToBeReflected()

bool Geant4GM::BooleanSolid::ToBeReflected ( ) const
inlinevirtual

Return true if the solid has to be first reflected before being placed.

Implements VGM::IBooleanSolid.

Definition at line 71 of file BooleanSolid.h.

◆ GetConstituentSolid()

G4VSolid * Geant4GM::BooleanSolid::GetConstituentSolid ( int index,
G4BooleanSolid * booleanSolid )
static

Definition at line 205 of file BooleanSolid.cxx.


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