Geant4
10.01.p02
|
#include <CCalVisualisable.hh>
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 |
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 | ) |
Definition at line 41 of file CCalVisualisable.cc.
References pathName, readFile(), setDefault(), and setPath().
|
inlinevirtual |
Definition at line 71 of file CCalVisualisable.hh.
|
private |
Definition at line 159 of file CCalVisualisable.cc.
References G4cerr, G4endl, and visFile.
Referenced by readFile().
|
inline |
Definition at line 85 of file CCalVisualisable.hh.
References CCalVisualisable::visParameters::bColor, and theParameters.
Referenced by CCalG4Able::setVisType().
|
inline |
Definition at line 84 of file CCalVisualisable.hh.
References CCalVisualisable::visParameters::gColor, and theParameters.
Referenced by CCalG4Able::setVisType().
|
inline |
Definition at line 83 of file CCalVisualisable.hh.
References CCalVisualisable::visParameters::rColor, and theParameters.
Referenced by CCalG4Able::setVisType().
|
inline |
Definition at line 80 of file CCalVisualisable.hh.
References theParameters, and CCalVisualisable::visParameters::visibility.
Referenced by CCalG4Able::setVisType().
|
inline |
Definition at line 91 of file CCalVisualisable.hh.
References theParameters, and CCalVisualisable::visParameters::wireframe.
Referenced by CCalG4Able::setVisType().
bool CCalVisualisable::readFile | ( | G4String | file | ) |
Definition at line 48 of file CCalVisualisable.cc.
References readFile(), and visFile.
|
protected |
Definition at line 80 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().
void CCalVisualisable::setColor | ( | visType | v, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Definition at line 62 of file CCalVisualisable.cc.
References CCalVisualisable::visParameters::bColor, g, CCalVisualisable::visParameters::gColor, CCalVisualisable::visParameters::rColor, and theParameters.
|
inline |
Definition at line 88 of file CCalVisualisable.hh.
References CCalVisualisable::visParameters::bColor, and theParameters.
|
inline |
Definition at line 87 of file CCalVisualisable.hh.
References g, CCalVisualisable::visParameters::gColor, and theParameters.
|
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().
|
staticprotected |
Definition at line 68 of file CCalVisualisable.cc.
References FatalException, G4endl, G4Exception(), pathName, and visEnvName.
Referenced by CCalVisualisable().
|
inline |
Definition at line 81 of file CCalVisualisable.hh.
References theParameters, and CCalVisualisable::visParameters::visibility.
|
inline |
Definition at line 92 of file CCalVisualisable.hh.
References theParameters, and CCalVisualisable::visParameters::wireframe.
|
staticprivate |
Definition at line 102 of file CCalVisualisable.hh.
Referenced by CCalVisualisable(), readFile(), and setPath().
|
private |
Definition at line 104 of file CCalVisualisable.hh.
Referenced by colorBlue(), colorGreen(), colorRed(), isVisible(), isWireFrame(), readFile(), setColor(), setColorBlue(), setColorGreen(), setColorRed(), setDefault(), setVisible(), and setWireFrame().
|
private |
Definition at line 103 of file CCalVisualisable.hh.
Referenced by checkColorRange(), and readFile().