Geant4-11
|
#include <G4HepRepFileXMLWriter.hh>
Public Member Functions | |
void | addAttDef (const char *name, const char *desc, const char *type, const char *extra) |
void | addAttValue (const char *name, bool value) |
void | addAttValue (const char *name, const char *value) |
void | addAttValue (const char *name, double value) |
void | addAttValue (const char *name, double value1, double value2, double value3) |
void | addAttValue (const char *name, int value) |
void | addInstance () |
void | addPoint (double x, double y, double z) |
void | addPrimitive () |
void | addType (const char *name, int newTypeDepth) |
void | close () |
void | endTypes () |
G4HepRepFileXMLWriter () | |
void | open (const char *filespec) |
Data Fields | |
bool | inInstance [50] |
bool | inType [50] |
bool | isOpen |
char * | prevTypeName [50] |
int | typeDepth |
Private Member Functions | |
void | endInstance () |
void | endPoint () |
void | endPrimitive () |
void | endType () |
void | indent () |
void | init () |
Private Attributes | |
std::ofstream | fout |
bool | inPoint |
bool | inPrimitive |
Definition at line 50 of file G4HepRepFileXMLWriter.hh.
G4HepRepFileXMLWriter::G4HepRepFileXMLWriter | ( | ) |
Definition at line 47 of file G4HepRepFileXMLWriter.cc.
void G4HepRepFileXMLWriter::addAttDef | ( | const char * | name, |
const char * | desc, | ||
const char * | type, | ||
const char * | extra | ||
) |
Definition at line 221 of file G4HepRepFileXMLWriter.cc.
References fout, G4cout, G4endl, indent(), and G4InuclParticleNames::name().
Referenced by G4HepRepFileSceneHandler::AddCompound(), and G4HepRepFileSceneHandler::CheckFileOpen().
void G4HepRepFileXMLWriter::addAttValue | ( | const char * | name, |
bool | value | ||
) |
void G4HepRepFileXMLWriter::addAttValue | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 242 of file G4HepRepFileXMLWriter.cc.
References fout, G4cout, G4endl, indent(), and G4InuclParticleNames::name().
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddHepRepInstance(), G4HepRepFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddSolid(), G4HepRepFileSceneHandler::CheckFileOpen(), G4HepRepFileSceneHandler::InitHit(), and G4HepRepFileSceneHandler::InitTrajectory().
void G4HepRepFileXMLWriter::addAttValue | ( | const char * | name, |
double | value | ||
) |
void G4HepRepFileXMLWriter::addAttValue | ( | const char * | name, |
double | value1, | ||
double | value2, | ||
double | value3 | ||
) |
Definition at line 321 of file G4HepRepFileXMLWriter.cc.
References fout, G4cout, G4endl, indent(), and G4InuclParticleNames::name().
void G4HepRepFileXMLWriter::addAttValue | ( | const char * | name, |
int | value | ||
) |
void G4HepRepFileXMLWriter::addInstance | ( | ) |
Definition at line 124 of file G4HepRepFileXMLWriter.cc.
References endInstance(), fout, G4cout, G4endl, indent(), inInstance, inType, and typeDepth.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddHepRepInstance(), addType(), G4HepRepFileSceneHandler::InitHit(), and G4HepRepFileSceneHandler::InitTrajectory().
void G4HepRepFileXMLWriter::addPoint | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 182 of file G4HepRepFileXMLWriter.cc.
References endPoint(), fout, G4cout, G4endl, G4HepRepMessenger::getCenter(), G4HepRepMessenger::GetInstance(), G4HepRepMessenger::getScale(), indent(), inPoint, inPrimitive, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddPrimitive(), and G4HepRepFileSceneHandler::AddSolid().
void G4HepRepFileXMLWriter::addPrimitive | ( | ) |
Definition at line 153 of file G4HepRepFileXMLWriter.cc.
References endPrimitive(), fout, G4cout, G4endl, indent(), inInstance, inPrimitive, and typeDepth.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddPrimitive(), and G4HepRepFileSceneHandler::AddSolid().
void G4HepRepFileXMLWriter::addType | ( | const char * | name, |
int | newTypeDepth | ||
) |
Definition at line 71 of file G4HepRepFileXMLWriter.cc.
References addInstance(), addType(), endPrimitive(), endType(), fout, G4cout, G4endl, indent(), inType, G4InuclParticleNames::name(), prevTypeName, and typeDepth.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddHepRepInstance(), and addType().
void G4HepRepFileXMLWriter::close | ( | ) |
Definition at line 372 of file G4HepRepFileXMLWriter.cc.
References endTypes(), fout, G4cout, G4endl, and isOpen.
Referenced by open(), and G4HepRepFileViewer::ShowView().
|
private |
Definition at line 408 of file G4HepRepFileXMLWriter.cc.
References endPrimitive(), fout, G4endl, indent(), inInstance, and typeDepth.
Referenced by addInstance(), and endType().
|
private |
Definition at line 430 of file G4HepRepFileXMLWriter.cc.
References fout, G4endl, indent(), and inPoint.
Referenced by addPoint(), and endPrimitive().
|
private |
Definition at line 419 of file G4HepRepFileXMLWriter.cc.
References endPoint(), fout, G4endl, indent(), and inPrimitive.
Referenced by addPrimitive(), addType(), and endInstance().
|
private |
Definition at line 396 of file G4HepRepFileXMLWriter.cc.
References endInstance(), fout, G4endl, indent(), inType, prevTypeName, and typeDepth.
Referenced by addType(), and endTypes().
void G4HepRepFileXMLWriter::endTypes | ( | ) |
|
private |
Definition at line 440 of file G4HepRepFileXMLWriter.cc.
References fout, inInstance, inPoint, inPrimitive, and inType.
Referenced by addAttDef(), addAttValue(), addInstance(), addPoint(), addPrimitive(), addType(), endInstance(), endPoint(), endPrimitive(), and endType().
|
private |
Definition at line 53 of file G4HepRepFileXMLWriter.cc.
References inInstance, inPoint, inPrimitive, inType, prevTypeName, and typeDepth.
Referenced by demo.App::__init__(), testem0.App::__init__(), Lesson1.App::__init__(), ExN03.App::__init__(), G4HepRepFileXMLWriter(), and open().
void G4HepRepFileXMLWriter::open | ( | const char * | filespec | ) |
Definition at line 345 of file G4HepRepFileXMLWriter.cc.
References close(), fout, G4cout, G4endl, init(), and isOpen.
Referenced by G4HepRepFileSceneHandler::CheckFileOpen().
|
private |
Definition at line 86 of file G4HepRepFileXMLWriter.hh.
Referenced by addAttDef(), addAttValue(), addInstance(), addPoint(), addPrimitive(), addType(), close(), endInstance(), endPoint(), endPrimitive(), endType(), indent(), and open().
bool G4HepRepFileXMLWriter::inInstance[50] |
Definition at line 82 of file G4HepRepFileXMLWriter.hh.
Referenced by addInstance(), addPrimitive(), endInstance(), indent(), and init().
|
private |
Definition at line 91 of file G4HepRepFileXMLWriter.hh.
Referenced by addPoint(), endPoint(), indent(), and init().
|
private |
Definition at line 90 of file G4HepRepFileXMLWriter.hh.
Referenced by addPoint(), addPrimitive(), endPrimitive(), indent(), and init().
bool G4HepRepFileXMLWriter::inType[50] |
Definition at line 81 of file G4HepRepFileXMLWriter.hh.
Referenced by addInstance(), addType(), endType(), indent(), and init().
bool G4HepRepFileXMLWriter::isOpen |
Definition at line 79 of file G4HepRepFileXMLWriter.hh.
Referenced by G4HepRepFileSceneHandler::CheckFileOpen(), close(), G4HepRepFileXMLWriter(), open(), and G4HepRepFileViewer::ShowView().
char* G4HepRepFileXMLWriter::prevTypeName[50] |
Definition at line 83 of file G4HepRepFileXMLWriter.hh.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddHepRepInstance(), addType(), endType(), and init().
int G4HepRepFileXMLWriter::typeDepth |
Definition at line 80 of file G4HepRepFileXMLWriter.hh.
Referenced by G4HepRepFileSceneHandler::AddHepRepInstance(), addInstance(), addPrimitive(), addType(), endInstance(), endType(), endTypes(), and init().