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

VGM implementation for Root Boolean solid. More...

#include <BooleanSolid.h>

Inheritance diagram for RootGM::BooleanSolid:

Public Member Functions

 BooleanSolid (const std::string &name, VGM::BooleanType boolType, VGM::ISolid *solidA, VGM::ISolid *solidB, TGeoMatrix *displacementB)
 
 BooleanSolid (TGeoCompositeShape *compositeShape)
 
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 TGeoShape * GetConstituentSolid (int index, TGeoCompositeShape *compositeShape)
 

Protected Member Functions

 BooleanSolid ()
 
 BooleanSolid (const BooleanSolid &rhs)
 

Detailed Description

VGM implementation for Root Boolean solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 33 of file BooleanSolid.h.

Constructor & Destructor Documentation

◆ BooleanSolid() [1/4]

RootGM::BooleanSolid::BooleanSolid ( const std::string & name,
VGM::BooleanType boolType,
VGM::ISolid * solidA,
VGM::ISolid * solidB,
TGeoMatrix * displacementB )

Standard constructor to define Boolean solids via constituents

Parameters
boolTypetype of Boolean operation (kIntersection, kSubtraction, kUnion)
solidA,solidBconstituent solids
displacementBthe Root 3D transformation that defines the displacement of the solidB with respect to solidA

Definition at line 38 of file BooleanSolid.cxx.

◆ BooleanSolid() [2/4]

RootGM::BooleanSolid::BooleanSolid ( TGeoCompositeShape * compositeShape)

Standard constructor to define Boolean solid via Root object

Definition at line 117 of file BooleanSolid.cxx.

◆ ~BooleanSolid()

RootGM::BooleanSolid::~BooleanSolid ( )
virtual

Definition at line 143 of file BooleanSolid.cxx.

◆ BooleanSolid() [3/4]

RootGM::BooleanSolid::BooleanSolid ( )
protected

Protected default constructor

Definition at line 129 of file BooleanSolid.cxx.

◆ BooleanSolid() [4/4]

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

Protected copy constructor

Definition at line 136 of file BooleanSolid.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::IBooleanSolid.

Definition at line 153 of file BooleanSolid.cxx.

◆ BoolType()

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

Return the Boolean type of this solid.

Implements VGM::IBooleanSolid.

Definition at line 162 of file BooleanSolid.cxx.

◆ ConstituentSolidA()

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

Return the first constituent solid.

Implements VGM::IBooleanSolid.

Definition at line 182 of file BooleanSolid.cxx.

◆ ConstituentSolidB()

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

Return the second constituent solid.

Implements VGM::IBooleanSolid.

Definition at line 196 of file BooleanSolid.cxx.

◆ Displacement()

VGM::Transform RootGM::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 210 of file BooleanSolid.cxx.

◆ ToBeReflected()

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

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

Implements VGM::IBooleanSolid.

Definition at line 69 of file BooleanSolid.h.

◆ GetConstituentSolid()

TGeoShape * RootGM::BooleanSolid::GetConstituentSolid ( int index,
TGeoCompositeShape * compositeShape )
static

Return the constituent shape specified by index

Definition at line 279 of file BooleanSolid.cxx.


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