Implements a G4VNestedParameterisation.
More...
#include <DicomNestedPhantomParameterisation.hh>
|
| DicomNestedPhantomParameterisation (const G4ThreeVector &voxelSize, std::vector< G4Material *> &mat, G4int fnZ_=0, G4int fnY_=0, G4int fnX_=0) |
|
| ~DicomNestedPhantomParameterisation () |
|
G4Material * | ComputeMaterial (G4VPhysicalVolume *currentVol, const G4int repNo, const G4VTouchable *parentTouch) |
|
G4int | GetNumberOfMaterials () const |
|
G4Material * | GetMaterial (G4int idx) const |
|
unsigned int | GetMaterialIndex (unsigned int nx, unsigned int ny, unsigned int nz) const |
|
unsigned int | GetMaterialIndex (unsigned int copyNo) const |
|
void | SetMaterialIndices (size_t *matInd) |
|
void | SetNoVoxel (unsigned int nx, unsigned int ny, unsigned int nz) |
|
void | ComputeTransformation (const G4int no, G4VPhysicalVolume *currentPV) const |
|
void | ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const |
|
| G4VNestedParameterisation () |
|
virtual | ~G4VNestedParameterisation () |
|
virtual G4VSolid * | ComputeSolid (const G4int no, G4VPhysicalVolume *thisVol) |
|
G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0) |
|
virtual G4bool | IsNested () const |
|
virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
|
| G4VPVParameterisation () |
|
virtual | ~G4VPVParameterisation () |
|
| G4VVolumeMaterialScanner () |
|
virtual | ~G4VVolumeMaterialScanner () |
|
|
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 (G4Sphere &, const G4int, const G4VPhysicalVolume *) const |
|
void | ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const |
|
void | ComputeDimensions (G4Orb &, 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 (G4Tubs &, const G4int, const G4VPhysicalVolume *) const |
|
void | ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const |
|
void | ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const |
|
void | ReadColourData () |
|
◆ DicomNestedPhantomParameterisation()
◆ ~DicomNestedPhantomParameterisation()
DicomNestedPhantomParameterisation::~DicomNestedPhantomParameterisation |
( |
| ) |
|
◆ ComputeDimensions() [1/13]
◆ ComputeDimensions() [2/13]
◆ ComputeDimensions() [3/13]
◆ ComputeDimensions() [4/13]
◆ ComputeDimensions() [5/13]
◆ ComputeDimensions() [6/13]
◆ ComputeDimensions() [7/13]
◆ ComputeDimensions() [8/13]
◆ ComputeDimensions() [9/13]
◆ ComputeDimensions() [10/13]
◆ ComputeDimensions() [11/13]
◆ ComputeDimensions() [12/13]
◆ ComputeDimensions() [13/13]
◆ ComputeMaterial()
Implements G4VNestedParameterisation.
Definition at line 122 of file DicomNestedPhantomParameterisation.cc.
144 std::string::size_type iuu = mateName.find(
"__");
145 if( iuu != std::string::npos ) {
146 mateName = mateName.substr( 0, iuu );
150 physVol->GetLogicalVolume()->
151 SetVisAttributes(
fColours.find(mateName)->second);
153 physVol->GetLogicalVolume()->
154 SetVisAttributes(
fColours.begin()->second);
static G4VVisManager * GetConcreteInstance()
unsigned int GetMaterialIndex(unsigned int nx, unsigned int ny, unsigned int nz) const
virtual G4int GetReplicaNumber(G4int depth=0) const
std::map< G4String, G4VisAttributes * > fColours
std::vector< G4Material * > fMaterials
◆ ComputeTransformation()
void DicomNestedPhantomParameterisation::ComputeTransformation |
( |
const G4int |
no, |
|
|
G4VPhysicalVolume * |
currentPV |
|
) |
| const |
|
virtual |
◆ GetMaterial()
G4Material * DicomNestedPhantomParameterisation::GetMaterial |
( |
G4int |
idx | ) |
const |
|
virtual |
◆ GetMaterialIndex() [1/2]
unsigned int DicomNestedPhantomParameterisation::GetMaterialIndex |
( |
unsigned int |
nx, |
|
|
unsigned int |
ny, |
|
|
unsigned int |
nz |
|
) |
| const |
◆ GetMaterialIndex() [2/2]
unsigned int DicomNestedPhantomParameterisation::GetMaterialIndex |
( |
unsigned int |
copyNo | ) |
const |
◆ GetNumberOfMaterials()
G4int DicomNestedPhantomParameterisation::GetNumberOfMaterials |
( |
| ) |
const |
|
virtual |
◆ ReadColourData()
void DicomNestedPhantomParameterisation::ReadColourData |
( |
| ) |
|
|
private |
Definition at line 65 of file DicomNestedPhantomParameterisation.cc.
96 G4String colourFile =
"ColourMap.dat";
97 std::ifstream
fin(colourFile.c_str());
100 G4double cred, cgreen, cblue, copacity;
102 for(
G4int ii = 0; ii < nMate; ii++ ){
103 fin >> mateName >> cred >> cgreen >> cblue >> copacity;
104 G4Colour colour( cred, cgreen, cblue, copacity );
void SetVisibility(G4bool)
std::map< G4String, G4VisAttributes * > fColours
◆ SetMaterialIndices()
void DicomNestedPhantomParameterisation::SetMaterialIndices |
( |
size_t * |
matInd | ) |
|
|
inline |
◆ SetNoVoxel()
void DicomNestedPhantomParameterisation::SetNoVoxel |
( |
unsigned int |
nx, |
|
|
unsigned int |
ny, |
|
|
unsigned int |
nz |
|
) |
| |
◆ fColours
◆ fdX
G4double DicomNestedPhantomParameterisation::fdX |
|
private |
◆ fdY
G4double DicomNestedPhantomParameterisation::fdY |
|
private |
◆ fdZ
G4double DicomNestedPhantomParameterisation::fdZ |
|
private |
◆ fMaterialIndices
size_t* DicomNestedPhantomParameterisation::fMaterialIndices |
|
private |
◆ fMaterials
std::vector<G4Material*> DicomNestedPhantomParameterisation::fMaterials |
|
private |
◆ fnX
G4int DicomNestedPhantomParameterisation::fnX |
|
private |
◆ fnY
G4int DicomNestedPhantomParameterisation::fnY |
|
private |
◆ fnZ
G4int DicomNestedPhantomParameterisation::fnZ |
|
private |
◆ fpZ
std::vector<G4double> DicomNestedPhantomParameterisation::fpZ |
|
private |
The documentation for this class was generated from the following files: