#include <CCalVisualisable.hh>
Definition at line 39 of file CCalVisualisable.hh.
 
| Enumerator | 
|---|
| Sensitive  | 
 | 
| Electronics  | 
 | 
| Support  | 
 | 
| Cable  | 
 | 
| Absorber  | 
 | 
| OtherServices  | 
 | 
| PseudoVolumes  | 
 | 
| TotalVisTypes  | 
 | 
| Undefined  | 
 | 
Definition at line 43 of file CCalVisualisable.hh.
 
 
      
        
          | CCalVisualisable::CCalVisualisable  | 
          ( | 
          G4String  | 
          file | ) | 
           | 
        
      
 
 
  
  
      
        
          | virtual CCalVisualisable::~CCalVisualisable  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | double CCalVisualisable::colorBlue  | 
          ( | 
          visType  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | double CCalVisualisable::colorGreen  | 
          ( | 
          visType  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | double CCalVisualisable::colorRed  | 
          ( | 
          visType  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool CCalVisualisable::isVisible  | 
          ( | 
          visType  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool CCalVisualisable::isWireFrame  | 
          ( | 
          visType  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | bool CCalVisualisable::readFile  | 
          ( | 
          G4String  | 
          file | ) | 
           | 
        
      
 
 
  
  
      
        
          | bool CCalVisualisable::readFile  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 80 of file CCalVisualisable.cc.
   82     G4cerr << 
"ERROR: No file was specified from which to read Visualisation parameters"  
   89   G4cout << 
" ==> Opening file " << visFile 
 
   90        << 
" to read visualisation parameters..." 
   96   G4cout << 
"Viualisable : Path " << pathname << 
" FIle " << visFile << 
G4endl;
 
  100     G4cout << 
"WARNING: Could not read " << visFile << 
G4endl;
 
  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;
 
  136     r=checkColorRange(r,
'R');
 
  137     g=checkColorRange(g,
'G');
 
  138     b=checkColorRange(b,
'B');
 
  143        << r << 
" " << g << 
" "<< b << 
tab 
  146       theParameters[vt]=visParameters(isvisible, r, g, b, wireframe);
 
bool openGeomFile(std::ifstream &is, const G4String &pathname, const G4String &filename)
 
std::istream & jump(std::istream &)
 
std::ifstream & readName(std::ifstream &, G4String &)
 
G4GLOB_DLL std::ostream G4cout
 
std::ostream & tab(std::ostream &)
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
      
        
          | void CCalVisualisable::setColor  | 
          ( | 
          visType  | 
          v,  | 
        
        
           | 
           | 
          double  | 
          r,  | 
        
        
           | 
           | 
          double  | 
          g,  | 
        
        
           | 
           | 
          double  | 
          b  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 62 of file CCalVisualisable.cc.
   63   theParameters[
v].rColor=r;
 
   64   theParameters[
v].gColor=
g;
 
   65   theParameters[
v].bColor=
b;
 
 
 
 
  
  
      
        
          | void CCalVisualisable::setColorBlue  | 
          ( | 
          visType  | 
          v,  | 
         
        
           | 
           | 
          double  | 
          b  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void CCalVisualisable::setColorGreen  | 
          ( | 
          visType  | 
          v,  | 
         
        
           | 
           | 
          double  | 
          g  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void CCalVisualisable::setColorRed  | 
          ( | 
          visType  | 
          v,  | 
         
        
           | 
           | 
          double  | 
          r  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void CCalVisualisable::setDefault  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | void CCalVisualisable::setPath  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
Definition at line 68 of file CCalVisualisable.cc.
   72      ed << 
"ERROR: " << 
visEnvName << 
" environmental variable not set!"  
   74      ed << 
"       Set it and restart." << 
G4endl;
 
   75      G4Exception(
"CCalVisualisable::setPath()",
"ccal007",
 
std::ostringstream G4ExceptionDescription
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
  
  
      
        
          | void CCalVisualisable::setVisible  | 
          ( | 
          visType  | 
          v,  | 
         
        
           | 
           | 
          bool  | 
          flag = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void CCalVisualisable::setWireFrame  | 
          ( | 
          visType  | 
          v,  | 
         
        
           | 
           | 
          bool  | 
          wf = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
The documentation for this class was generated from the following files: