62 G4String colourFile =
"ColourMap.dat";
63 std::ifstream fin(colourFile.c_str());
66 G4double cred, cgreen, cblue, copacity;
68 for(
G4int ii = 0; ii < nMate; ii++ ){
69 fin >> mateName >> cred >> cgreen >> cblue >> copacity;
70 G4Colour colour( cred, cgreen, cblue, copacity );
85 std::string::size_type iuu = mateName.find(
"__");
86 if( iuu != std::string::npos ) {
87 mateName = mateName.substr( 0, iuu );
89 std::map<G4String,G4VisAttributes*>::const_iterator ite =
std::map< G4String, G4VisAttributes * > fColours
const G4String & GetName() const
void SetVisibility(G4bool)
DicomPhantomParameterisationColour()
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
Definition of the DicomPhantomParameterisationColour class.
~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)