61 G4String colourFile =
"ColourMap.dat";
62 std::ifstream fin(colourFile.c_str());
65 G4double cred, cgreen, cblue, copacity;
67 for(
G4int ii = 0; ii < nMate; ii++ ){
68 fin >> mateName >> cred >> cgreen >> cblue >> copacity;
69 G4Colour colour( cred, cgreen, cblue, copacity );
84 std::string::size_type iuu = mateName.find(
"__");
85 if( iuu != std::string::npos ) {
86 mateName = mateName.substr( 0, iuu );
88 std::map<G4String,G4VisAttributes*>::const_iterator ite =
std::map< G4String, G4VisAttributes * > fColours
const G4String & GetName() const
DicomPhantomParameterisationColour()
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
Definition of the DicomPhantomParameterisationColour class.
void SetVisibility(G4bool=true)
~DicomPhantomParameterisationColour()
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
G4LogicalVolume * GetLogicalVolume() const
void SetVisAttributes(const G4VisAttributes *pVA)
void SetSkipEqualMaterials(G4bool skip)