BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
BDSScreenFrame Class Referenceabstract

A frame for the vacuum window in e.g. BDSMultilayerScreen. More...

#include <BDSScreenFrame.hh>

Inheritance diagram for BDSScreenFrame:
Inheritance graph
Collaboration diagram for BDSScreenFrame:
Collaboration graph

Public Member Functions

 BDSScreenFrame (G4String name, G4ThreeVector size, G4TwoVector windowSize, G4TwoVector windowOffset, G4Material *material)
 
virtual void Build ()=0
 Build method to construct geometry.
 
G4LogicalVolume * LogVol () const
 Accessor.
 

Protected Member Functions

virtual void SetVisAtts ()
 Set the visual attributes to member logVol.
 
void SetDefaultVisAtts ()
 Construct default visualisation attribute for light transparent grey.
 
void SetVisAtts (G4LogicalVolume *logVolIn, G4VisAttributes *visAttsIn=nullptr)
 

Protected Attributes

G4String name
 
G4ThreeVector size
 
G4TwoVector windowSize
 
G4TwoVector windowOffset
 
G4Material * material
 
G4LogicalVolume * logVol
 
G4bool checkOverlaps
 Cache of checking overlaps from global constants.
 
G4VisAttributes * visAtt
 

Detailed Description

A frame for the vacuum window in e.g. BDSMultilayerScreen.

This is a virtual class and the derived class must implement Build() that ultimately sets the member logVol.

Author
Lawrence Deacon.

Definition at line 40 of file BDSScreenFrame.hh.

Constructor & Destructor Documentation

◆ BDSScreenFrame()

BDSScreenFrame::BDSScreenFrame ( G4String  name,
G4ThreeVector  size,
G4TwoVector  windowSize,
G4TwoVector  windowOffset,
G4Material *  material 
)

Definition at line 26 of file BDSScreenFrame.cc.

◆ ~BDSScreenFrame()

BDSScreenFrame::~BDSScreenFrame ( )
virtual

Definition at line 42 of file BDSScreenFrame.cc.

Member Function Documentation

◆ Build()

virtual void BDSScreenFrame::Build ( )
pure virtual

Build method to construct geometry.

Implemented in BDSScreenFrameRectangular.

◆ LogVol()

G4LogicalVolume * BDSScreenFrame::LogVol ( ) const
inline

Accessor.

Definition at line 55 of file BDSScreenFrame.hh.

◆ SetDefaultVisAtts()

void BDSScreenFrame::SetDefaultVisAtts ( )
protected

Construct default visualisation attribute for light transparent grey.

Definition at line 48 of file BDSScreenFrame.cc.

References BDSColours::Instance().

Here is the call graph for this function:

◆ SetVisAtts() [1/2]

void BDSScreenFrame::SetVisAtts ( )
protectedvirtual

Set the visual attributes to member logVol.

Reimplemented in BDSScreenFrameRectangular.

Definition at line 67 of file BDSScreenFrame.cc.

References SetVisAtts().

Referenced by SetVisAtts(), and BDSScreenFrameRectangular::SetVisAtts().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetVisAtts() [2/2]

void BDSScreenFrame::SetVisAtts ( G4LogicalVolume *  logVolIn,
G4VisAttributes *  visAttsIn = nullptr 
)
protected

Attach visualisation attributes to logical volume if they exist and if not use the default.

Definition at line 55 of file BDSScreenFrame.cc.

Field Documentation

◆ checkOverlaps

G4bool BDSScreenFrame::checkOverlaps
protected

Cache of checking overlaps from global constants.

Definition at line 75 of file BDSScreenFrame.hh.

Referenced by BDSScreenFrameRectangular::Place().

◆ logVol

G4LogicalVolume* BDSScreenFrame::logVol
protected

Definition at line 74 of file BDSScreenFrame.hh.

◆ material

G4Material* BDSScreenFrame::material
protected

Definition at line 73 of file BDSScreenFrame.hh.

◆ name

G4String BDSScreenFrame::name
protected

Definition at line 69 of file BDSScreenFrame.hh.

◆ size

G4ThreeVector BDSScreenFrame::size
protected

Definition at line 70 of file BDSScreenFrame.hh.

◆ visAtt

G4VisAttributes* BDSScreenFrame::visAtt
protected

Definition at line 76 of file BDSScreenFrame.hh.

◆ windowOffset

G4TwoVector BDSScreenFrame::windowOffset
protected

Definition at line 72 of file BDSScreenFrame.hh.

◆ windowSize

G4TwoVector BDSScreenFrame::windowSize
protected

Definition at line 71 of file BDSScreenFrame.hh.


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