6 #include <Geant4/G4Colour.hh>
7 #include <Geant4/G4LogicalVolume.hh>
8 #include <Geant4/G4Material.hh>
9 #include <Geant4/G4String.hh>
10 #include <Geant4/G4VisAttributes.hh>
33 G4LogicalVolume *logvol =
it.first;
34 if (logvol->GetVisAttributes())
39 G4VisAttributes *visatt =
new G4VisAttributes();
40 visatt->SetVisibility(
true);
41 visatt->SetForceSolid(
true);
44 if (
it.second ==
"G10" or
it.second ==
"FR4")
46 visatt->SetColour(G4Colour(0.0, .5, 0.0));
48 else if (
it.second ==
"wagon_wheel")
50 visatt->SetColour(G4Colour(.8, 0.0, 0.0));
51 visatt->SetForceLineSegmentsPerCircle(100);
53 else if (
it.second ==
"cooling_block")
55 visatt->SetColour(G4Colour(.8, .8, .8));
56 visatt->SetForceLineSegmentsPerCircle(100);
62 logvol->SetVisAttributes(visatt);