62 G4String path = getenv(
"DICOM_PATH");
63 G4String colourFile = path+
"/ColourMap.dat";
66 G4String colourFile =
"ColourMap.dat";
69 std::ifstream
fin(colourFile.c_str());
72 G4double cred, cgreen, cblue, copacity;
74 for(
G4int ii = 0; ii < nMate; ii++ ){
75 fin >> mateName >> cred >> cgreen >> cblue >> copacity;
76 G4Colour colour( cred, cgreen, cblue, copacity );
91 std::string::size_type iuu = mateName.find(
"__");
92 if( iuu != std::string::npos ) {
93 mateName = mateName.substr( 0, iuu );
95 std::map<G4String,G4VisAttributes*>::const_iterator ite =
G4LogicalVolume * GetLogicalVolume() const
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
~DicomPhantomParameterisationColour()
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
const G4String & GetName() const
void SetSkipEqualMaterials(G4bool skip)
Definition of the DicomPhantomParameterisationColour class.
void SetVisAttributes(const G4VisAttributes *pVA)
void SetVisibility(G4bool=true)
G4GLOB_DLL std::ostream G4cout
std::map< G4String, G4VisAttributes * > fColours
DicomPhantomParameterisationColour()