Geant4  10.00.p03
CCalVisualisable Class Reference

#include <CCalVisualisable.hh>

+ Collaboration diagram for CCalVisualisable:

Classes

class  visParameters
 

Public Types

enum  visType {
  Sensitive =0, Electronics =1, Support =2, Cable =3,
  Absorber =4, OtherServices =5, PseudoVolumes =6, TotalVisTypes =7,
  Undefined =-1
}
 

Public Member Functions

 CCalVisualisable (G4String file)
 
virtual ~CCalVisualisable ()
 
bool readFile (G4String file)
 
void setDefault ()
 
bool isVisible (visType v) const
 
void setVisible (visType v, bool flag=true)
 
double colorRed (visType v) const
 
double colorGreen (visType v) const
 
double colorBlue (visType v) const
 
void setColorRed (visType v, double r)
 
void setColorGreen (visType v, double g)
 
void setColorBlue (visType v, double b)
 
void setColor (visType v, double r, double g, double b)
 
bool isWireFrame (visType v) const
 
void setWireFrame (visType v, bool wf=true)
 

Protected Member Functions

bool readFile ()
 

Static Protected Member Functions

static void setPath ()
 

Private Member Functions

double checkColorRange (double color, char type) const
 

Private Attributes

G4String visFile
 
visParameters theParameters [TotalVisTypes]
 

Static Private Attributes

static const char * pathName =0
 

Detailed Description

Definition at line 39 of file CCalVisualisable.hh.

Member Enumeration Documentation

Enumerator
Sensitive 
Electronics 
Support 
Cable 
Absorber 
OtherServices 
PseudoVolumes 
TotalVisTypes 
Undefined 

Definition at line 43 of file CCalVisualisable.hh.

Constructor & Destructor Documentation

CCalVisualisable::CCalVisualisable ( G4String  file)

Definition at line 41 of file CCalVisualisable.cc.

References pathName, readFile(), setDefault(), and setPath().

+ Here is the call graph for this function:

virtual CCalVisualisable::~CCalVisualisable ( )
inlinevirtual

Definition at line 71 of file CCalVisualisable.hh.

Member Function Documentation

double CCalVisualisable::checkColorRange ( double  color,
char  type 
) const
private

Definition at line 157 of file CCalVisualisable.cc.

References G4cerr, G4endl, and visFile.

Referenced by readFile().

+ Here is the caller graph for this function:

double CCalVisualisable::colorBlue ( visType  v) const
inline

Definition at line 85 of file CCalVisualisable.hh.

References CCalVisualisable::visParameters::bColor, and theParameters.

Referenced by CCalG4Able::setVisType().

+ Here is the caller graph for this function:

double CCalVisualisable::colorGreen ( visType  v) const
inline

Definition at line 84 of file CCalVisualisable.hh.

References CCalVisualisable::visParameters::gColor, and theParameters.

Referenced by CCalG4Able::setVisType().

+ Here is the caller graph for this function:

double CCalVisualisable::colorRed ( visType  v) const
inline

Definition at line 83 of file CCalVisualisable.hh.

References CCalVisualisable::visParameters::rColor, and theParameters.

Referenced by CCalG4Able::setVisType().

+ Here is the caller graph for this function:

bool CCalVisualisable::isVisible ( visType  v) const
inline

Definition at line 80 of file CCalVisualisable.hh.

References theParameters, and CCalVisualisable::visParameters::visibility.

Referenced by CCalG4Able::setVisType().

+ Here is the caller graph for this function:

bool CCalVisualisable::isWireFrame ( visType  v) const
inline

Definition at line 91 of file CCalVisualisable.hh.

References theParameters, and CCalVisualisable::visParameters::wireframe.

Referenced by CCalG4Able::setVisType().

+ Here is the caller graph for this function:

bool CCalVisualisable::readFile ( G4String  file)

Definition at line 48 of file CCalVisualisable.cc.

References readFile(), and visFile.

+ Here is the call graph for this function:

bool CCalVisualisable::readFile ( )
protected

Definition at line 78 of file CCalVisualisable.cc.

References Absorber, Cable, checkColorRange(), Electronics, g, G4cerr, G4cout, G4endl, jump(), openGeomFile(), OtherServices, pathName, PseudoVolumes, readName(), Sensitive, Support, tab(), theParameters, Undefined, and visFile.

Referenced by CCalVisualisable(), and readFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalVisualisable::setColor ( visType  v,
double  r,
double  g,
double  b 
)
void CCalVisualisable::setColorBlue ( visType  v,
double  b 
)
inline

Definition at line 88 of file CCalVisualisable.hh.

References CCalVisualisable::visParameters::bColor, and theParameters.

void CCalVisualisable::setColorGreen ( visType  v,
double  g 
)
inline

Definition at line 87 of file CCalVisualisable.hh.

References g, CCalVisualisable::visParameters::gColor, and theParameters.

void CCalVisualisable::setColorRed ( visType  v,
double  r 
)
inline

Definition at line 86 of file CCalVisualisable.hh.

References CCalVisualisable::visParameters::rColor, and theParameters.

void CCalVisualisable::setDefault ( )

Definition at line 53 of file CCalVisualisable.cc.

References Cable, Electronics, OtherServices, PseudoVolumes, Sensitive, Support, and theParameters.

Referenced by CCalVisualisable().

+ Here is the caller graph for this function:

void CCalVisualisable::setPath ( )
staticprotected

Definition at line 68 of file CCalVisualisable.cc.

References G4cerr, G4endl, pathName, and visEnvName.

Referenced by CCalVisualisable().

+ Here is the caller graph for this function:

void CCalVisualisable::setVisible ( visType  v,
bool  flag = true 
)
inline
void CCalVisualisable::setWireFrame ( visType  v,
bool  wf = true 
)
inline

Member Data Documentation

const char * CCalVisualisable::pathName =0
staticprivate

Definition at line 102 of file CCalVisualisable.hh.

Referenced by CCalVisualisable(), readFile(), and setPath().

G4String CCalVisualisable::visFile
private

Definition at line 103 of file CCalVisualisable.hh.

Referenced by checkColorRange(), and readFile().


The documentation for this class was generated from the following files: