Geant4-11
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
G4SurfaceProperty Class Reference

#include <G4SurfaceProperty.hh>

Inheritance diagram for G4SurfaceProperty:
G4OpticalSurface

Public Member Functions

 G4SurfaceProperty ()
 
 G4SurfaceProperty (const G4String &name, G4SurfaceType type=x_ray)
 
const G4StringGetName () const
 
const G4SurfaceTypeGetType () const
 
void SetName (const G4String &name)
 
virtual void SetType (const G4SurfaceType &type)
 
virtual ~G4SurfaceProperty ()
 

Static Public Member Functions

static void CleanSurfacePropertyTable ()
 
static void DumpTableInfo ()
 
static size_t GetNumberOfSurfaceProperties ()
 
static const G4SurfacePropertyTableGetSurfacePropertyTable ()
 

Protected Attributes

G4String theName
 
G4SurfaceType theType
 

Static Protected Attributes

static G4SurfacePropertyTable theSurfacePropertyTable
 

Detailed Description

Definition at line 71 of file G4SurfaceProperty.hh.

Constructor & Destructor Documentation

◆ G4SurfaceProperty() [1/2]

G4SurfaceProperty::G4SurfaceProperty ( const G4String name,
G4SurfaceType  type = x_ray 
)

Definition at line 51 of file G4SurfaceProperty.cc.

52 : theName(name)
53 , theType(type)
54{
55 theSurfacePropertyTable.push_back(this);
56}
G4SurfaceType theType
static G4SurfacePropertyTable theSurfacePropertyTable
const char * name(G4int ptype)

References theSurfacePropertyTable.

◆ G4SurfaceProperty() [2/2]

G4SurfaceProperty::G4SurfaceProperty ( )

Definition at line 58 of file G4SurfaceProperty.cc.

59 : theName("Dielectric")
61{
62 theSurfacePropertyTable.push_back(this);
63}
@ dielectric_metal

References theSurfacePropertyTable.

◆ ~G4SurfaceProperty()

G4SurfaceProperty::~G4SurfaceProperty ( )
virtual

Definition at line 65 of file G4SurfaceProperty.cc.

65{}

Member Function Documentation

◆ CleanSurfacePropertyTable()

void G4SurfaceProperty::CleanSurfacePropertyTable ( )
static

Definition at line 93 of file G4SurfaceProperty.cc.

94{
96 G4SurfacePropertyTable::iterator pos;
97 for(pos = theSurfacePropertyTable.begin();
99 {
100 if(*pos)
101 delete *pos;
102 }
105}
static const G4double pos
static void DumpTableInfo()

References DumpTableInfo(), pos, and theSurfacePropertyTable.

◆ DumpTableInfo()

void G4SurfaceProperty::DumpTableInfo ( )
static

Definition at line 78 of file G4SurfaceProperty.cc.

79{
80 G4cout << "***** Surface Property Table : Nb of Surface Properties = "
81 << GetNumberOfSurfaceProperties() << " *****" << G4endl;
82
83 for(size_t i = 0; i < theSurfacePropertyTable.size(); i++)
84 {
85 G4SurfaceProperty* pSurfaceProperty = theSurfacePropertyTable[i];
86 G4cout << pSurfaceProperty->GetName() << " : " << G4endl
87 << " Surface Property type = " << pSurfaceProperty->GetType()
88 << G4endl;
89 }
90 G4cout << G4endl;
91}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
static size_t GetNumberOfSurfaceProperties()
const G4SurfaceType & GetType() const

References G4cout, G4endl, GetName(), GetNumberOfSurfaceProperties(), GetType(), and theSurfacePropertyTable.

Referenced by CleanSurfacePropertyTable().

◆ GetName()

const G4String & G4SurfaceProperty::GetName ( ) const
inline

◆ GetNumberOfSurfaceProperties()

size_t G4SurfaceProperty::GetNumberOfSurfaceProperties ( )
static

Definition at line 72 of file G4SurfaceProperty.cc.

73{
74 return theSurfacePropertyTable.size();
75}

References theSurfacePropertyTable.

Referenced by DumpTableInfo().

◆ GetSurfacePropertyTable()

const G4SurfacePropertyTable * G4SurfaceProperty::GetSurfacePropertyTable ( )
static

Definition at line 67 of file G4SurfaceProperty.cc.

68{
70}

References theSurfacePropertyTable.

Referenced by G4GDMLReadSolids::GetSurfaceProperty().

◆ GetType()

const G4SurfaceType & G4SurfaceProperty::GetType ( ) const
inline

◆ SetName()

void G4SurfaceProperty::SetName ( const G4String name)
inline

Definition at line 82 of file G4SurfaceProperty.hh.

82{ theName = name; }

References G4InuclParticleNames::name(), and theName.

◆ SetType()

virtual void G4SurfaceProperty::SetType ( const G4SurfaceType type)
inlinevirtual

Reimplemented in G4OpticalSurface.

Definition at line 87 of file G4SurfaceProperty.hh.

87{ theType = type; }

References theType.

Field Documentation

◆ theName

G4String G4SurfaceProperty::theName
protected

◆ theSurfacePropertyTable

G4SurfacePropertyTable G4SurfaceProperty::theSurfacePropertyTable
staticprotected

◆ theType

G4SurfaceType G4SurfaceProperty::theType
protected

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