#include <G4tgrSolid.hh>
Inheritance diagram for G4tgrSolid:
Public Member Functions | |
G4tgrSolid () | |
G4tgrSolid (const std::vector< G4String > &wl) | |
virtual | ~G4tgrSolid () |
const G4String & | GetName () const |
const G4String & | GetType () const |
const std::vector< std::vector< G4double > * > | GetSolidParams () const |
virtual const G4String & | GetRelativeRotMatName () const |
virtual G4ThreeVector | GetRelativePlace () const |
Protected Attributes | |
G4String | theName |
G4String | theType |
std::vector< std::vector< G4double > * > | theSolidParams |
Friends | |
std::ostream & | operator<< (std::ostream &, const G4tgrSolid &) |
Definition at line 49 of file G4tgrSolid.hh.
G4tgrSolid::G4tgrSolid | ( | ) |
G4tgrSolid::G4tgrSolid | ( | const std::vector< G4String > & | wl | ) |
Definition at line 59 of file G4tgrSolid.cc.
References G4cout, G4endl, G4tgrVolumeMgr::GetInstance(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), G4tgrVolumeMgr::RegisterMe(), theName, and theType.
00060 { 00061 //---------- set name 00062 theName = G4tgrUtils::GetString( wl[1] ); 00063 00064 //---------- set solid type 00065 theType = G4tgrUtils::GetString( wl[2] ); 00066 00067 //---------- create only vector<double> of theSolidParams 00068 FillSolidParams( wl ); 00069 00070 G4tgrVolumeMgr::GetInstance()->RegisterMe( this ); 00071 00072 00073 #ifdef G4VERBOSE 00074 if( G4tgrMessenger::GetVerboseLevel() >= 1 ) 00075 { 00076 G4cout << " Created " << *this << G4endl; 00077 } 00078 #endif 00079 00080 }
G4tgrSolid::~G4tgrSolid | ( | ) | [virtual] |
const G4String& G4tgrSolid::GetName | ( | ) | const [inline] |
Definition at line 61 of file G4tgrSolid.hh.
References theName.
Referenced by G4tgbVolume::FindOrConstructG4Solid(), G4tgrVolumeMgr::RegisterMe(), and G4tgrVolumeMgr::UnRegisterMe().
00061 { return theName; }
G4ThreeVector G4tgrSolid::GetRelativePlace | ( | ) | const [virtual] |
Reimplemented in G4tgrSolidBoolean.
Definition at line 98 of file G4tgrSolid.cc.
00099 { 00100 return G4ThreeVector(0,0,0); // Dummy... 00101 }
const G4String & G4tgrSolid::GetRelativeRotMatName | ( | ) | const [virtual] |
Reimplemented in G4tgrSolidBoolean.
Definition at line 91 of file G4tgrSolid.cc.
References theName.
00092 { 00093 return theName; // Dummy ... 00094 }
const std::vector< std::vector< G4double > * > G4tgrSolid::GetSolidParams | ( | ) | const |
Definition at line 84 of file G4tgrSolid.cc.
References theSolidParams.
Referenced by G4tgbVolume::FindOrConstructG4Solid().
00085 { 00086 return theSolidParams; 00087 }
const G4String& G4tgrSolid::GetType | ( | void | ) | const [inline] |
Definition at line 62 of file G4tgrSolid.hh.
References theType.
Referenced by G4tgbVolume::FindOrConstructG4Solid().
00062 { return theType; }
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4tgrSolid & | sol | |||
) | [friend] |
Definition at line 173 of file G4tgrSolid.cc.
00174 { 00175 os << "G4tgrSolid= " << sol.theName 00176 << " of type " << sol.theType << " PARAMS: "; 00177 if( sol.theSolidParams.size() != 0 ) 00178 { 00179 std::vector<G4double> solpar = *(sol.theSolidParams[0]); 00180 for( size_t ii = 0; ii < solpar.size(); ii++) 00181 { 00182 os << solpar[ii] << " " ; 00183 } 00184 } 00185 os << G4endl; 00186 00187 return os; 00188 }
G4String G4tgrSolid::theName [protected] |
Definition at line 73 of file G4tgrSolid.hh.
Referenced by G4tgrSolid(), G4tgrSolidBoolean::G4tgrSolidBoolean(), GetName(), GetRelativeRotMatName(), and operator<<().
std::vector< std::vector<G4double>* > G4tgrSolid::theSolidParams [protected] |
G4String G4tgrSolid::theType [protected] |
Definition at line 75 of file G4tgrSolid.hh.
Referenced by G4tgrSolid(), G4tgrSolidBoolean::G4tgrSolidBoolean(), GetType(), and operator<<().