72 ed <<
"ERROR: " <<
visEnvName <<
" environmental variable not set!"
74 ed <<
" Set it and restart." <<
G4endl;
75 G4Exception(
"CCalVisualisable::setPath()",
"ccal007",
82 G4cerr <<
"ERROR: No file was specified from which to read Visualisation parameters"
90 <<
" to read visualisation parameters..."
101 G4cout <<
" Default visualization parameters will be used." <<
G4endl;
110 if (viewvol==
"Sensitive")
112 else if (viewvol==
"Electronics")
114 else if (viewvol==
"Support")
116 else if (viewvol==
"Absorber")
118 else if (viewvol==
"Cable")
120 else if (viewvol==
"OtherServices")
122 else if (viewvol==
"PseudoVolumes")
126 G4cerr <<
"WARNING: Unknown type of visualisable object \"" << viewvol
131 int isvisible, wireframe;
134 is >> isvisible >> r >> g >> b >> wireframe >>
jump;
143 << r <<
" " << g <<
" "<< b <<
tab
161 G4cerr <<
"ERROR: In " <<
visFile <<
". Color " << ctype <<
"="
162 << cvalue <<
" > 1" <<
G4endl;
167 G4cerr <<
"ERROR: In " <<
visFile <<
". Color " << ctype <<
"="
168 << cvalue <<
" < 0" <<
G4endl;
visParameters theParameters[TotalVisTypes]
std::ostringstream G4ExceptionDescription
double checkColorRange(double color, char type) const
void setColor(visType v, double r, double g, double b)
CCalVisualisable(G4String file)
std::ifstream & readName(std::ifstream &, G4String &)
static constexpr double g
bool openGeomFile(std::ifstream &is, const G4String &pathname, const G4String &filename)
static const char * pathName
G4GLOB_DLL std::ostream G4cerr
std::ostream & tab(std::ostream &)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::istream & jump(std::istream &)
G4GLOB_DLL std::ostream G4cout