Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomPhantomParameterisationColour Class Reference

Class inherited from G4PhantomParameterisation to provide different. More...

#include <DicomPhantomParameterisationColour.hh>

Inheritance diagram for DicomPhantomParameterisationColour:
Collaboration diagram for DicomPhantomParameterisationColour:

Public Member Functions

 DicomPhantomParameterisationColour ()
 
 ~DicomPhantomParameterisationColour ()
 
virtual G4MaterialComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
 
- Public Member Functions inherited from G4PhantomParameterisation
 G4PhantomParameterisation ()
 
 ~G4PhantomParameterisation ()
 
virtual void ComputeTransformation (const G4int, G4VPhysicalVolume *) const
 
virtual G4VSolidComputeSolid (const G4int, G4VPhysicalVolume *)
 
void ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 
void BuildContainerSolid (G4VPhysicalVolume *pPhysicalVol)
 
void BuildContainerSolid (G4VSolid *pMotherSolid)
 
virtual G4int GetReplicaNo (const G4ThreeVector &localPoint, const G4ThreeVector &localDir)
 
void SetMaterials (std::vector< G4Material * > &mates)
 
void SetMaterialIndices (size_t *matInd)
 
void SetVoxelDimensions (G4double halfx, G4double halfy, G4double halfz)
 
void SetNoVoxel (size_t nx, size_t ny, size_t nz)
 
G4double GetVoxelHalfX () const
 
G4double GetVoxelHalfY () const
 
G4double GetVoxelHalfZ () const
 
size_t GetNoVoxelX () const
 
size_t GetNoVoxelY () const
 
size_t GetNoVoxelZ () const
 
size_t GetNoVoxel () const
 
std::vector< G4Material * > GetMaterials () const
 
size_t * GetMaterialIndices () const
 
G4VSolidGetContainerSolid () const
 
G4ThreeVector GetTranslation (const G4int copyNo) const
 
G4bool SkipEqualMaterials () const
 
void SetSkipEqualMaterials (G4bool skip)
 
size_t GetMaterialIndex (size_t nx, size_t ny, size_t nz) const
 
size_t GetMaterialIndex (size_t copyNo) const
 
G4MaterialGetMaterial (size_t nx, size_t ny, size_t nz) const
 
G4MaterialGetMaterial (size_t copyNo) const
 
void CheckVoxelsFillContainer (G4double contX, G4double contY, G4double contZ) const
 
- Public Member Functions inherited from G4VPVParameterisation
 G4VPVParameterisation ()
 
virtual ~G4VPVParameterisation ()
 
virtual G4bool IsNested () const
 
virtual G4VVolumeMaterialScannerGetMaterialScanner ()
 

Additional Inherited Members

- Protected Attributes inherited from G4PhantomParameterisation
G4double fVoxelHalfX
 
G4double fVoxelHalfY
 
G4double fVoxelHalfZ
 
size_t fNoVoxelX
 
size_t fNoVoxelY
 
size_t fNoVoxelZ
 
size_t fNoVoxelXY
 
size_t fNoVoxel
 
std::vector< G4Material * > fMaterials
 
size_t * fMaterialIndices
 
G4VSolidfContainerSolid
 
G4double fContainerWallX
 
G4double fContainerWallY
 
G4double fContainerWallZ
 
G4double kCarTolerance
 
G4bool bSkipEqualMaterials
 

Detailed Description

Class inherited from G4PhantomParameterisation to provide different.

History:

  • Created. 5 December 2007
    Author
    P. Arce

Definition at line 49 of file DicomPhantomParameterisationColour.hh.

Constructor & Destructor Documentation

DicomPhantomParameterisationColour::DicomPhantomParameterisationColour ( )

Definition at line 40 of file DicomPhantomParameterisationColour.cc.

42 {
43  ReadColourData();
44  SetSkipEqualMaterials(false);
45 }
void SetSkipEqualMaterials(G4bool skip)

Here is the call graph for this function:

DicomPhantomParameterisationColour::~DicomPhantomParameterisationColour ( )

Definition at line 48 of file DicomPhantomParameterisationColour.cc.

49 {
50 }

Member Function Documentation

G4Material * DicomPhantomParameterisationColour::ComputeMaterial ( const G4int  repNo,
G4VPhysicalVolume currentVol,
const G4VTouchable parentTouch = 0 
)
virtual

Reimplemented from G4PhantomParameterisation.

Definition at line 79 of file DicomPhantomParameterisationColour.cc.

80 {
81  G4Material* mate = G4PhantomParameterisation::ComputeMaterial( copyNo, physVol, 0 );
82  if( physVol ) {
83  G4String mateName = mate->GetName();
84  std::string::size_type iuu = mateName.find("__");
85  if( iuu != std::string::npos ) {
86  mateName = mateName.substr( 0, iuu );
87  }
88  std::map<G4String,G4VisAttributes*>::const_iterator ite =
89  fColours.find(mateName);
90  if( ite != fColours.end() ){
91  physVol->GetLogicalVolume()->SetVisAttributes( (*ite).second );
92  } else {
93  physVol->GetLogicalVolume()->SetVisAttributes(
94  (*(fColours.begin()) ).second );
95  // set it as unseen
96  }
97  }
98 
99  return mate;
100 }
const G4String & GetName() const
Definition: G4Material.hh:178
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)

Here is the call graph for this function:


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