Geant4
10.01.p03
|
#include <G4HepRepFileSceneHandler.hh>
Static Protected Attributes | |
static G4int | fSceneIdCount = 0 |
Private Member Functions | |
void | AddHepRepInstance (const char *primName, const G4Visible visible) |
void | CheckFileOpen () |
Private Attributes | |
G4HepRepFileXMLWriter * | hepRepXMLWriter |
int | fileCounter |
G4bool | haveVisible |
G4bool | inPrimitives2D |
G4bool | warnedAbout3DText |
G4bool | warnedAbout2DMarkers |
G4bool | drawingTraj |
G4bool | doneInitTraj |
G4bool | drawingHit |
G4bool | doneInitHit |
const G4VisTrajContext * | trajContext |
std::vector< G4AttValue > * | trajAttValues |
std::map< G4String, G4AttDef > * | trajAttDefs |
std::vector< G4AttValue > * | hitAttValues |
std::map< G4String, G4AttDef > * | hitAttDefs |
Additional Inherited Members | |
Public Types inherited from G4VSceneHandler | |
enum | MarkerSizeType { world, screen } |
Protected Member Functions inherited from G4VSceneHandler | |
virtual void | ProcessScene () |
virtual void | RequestPrimitives (const G4VSolid &solid) |
virtual G4VSolid * | CreateSectionSolid () |
virtual G4VSolid * | CreateCutawaySolid () |
void | LoadAtts (const G4Visible &, G4AttHolder *) |
Protected Attributes inherited from G4VSceneHandler | |
G4VGraphicsSystem & | fSystem |
const G4int | fSceneHandlerId |
G4String | fName |
G4int | fViewCount |
G4ViewerList | fViewerList |
G4VViewer * | fpViewer |
G4Scene * | fpScene |
G4bool | fMarkForClearingTransientStore |
G4bool | fReadyForTransients |
G4bool | fTransientsDrawnThisEvent |
G4bool | fTransientsDrawnThisRun |
G4bool | fProcessingSolid |
G4bool | fProcessing2D |
G4VModel * | fpModel |
G4Transform3D | fObjectTransformation |
G4int | fNestingDepth |
const G4VisAttributes * | fpVisAttribs |
const G4Transform3D | fIdentityTransformation |
Definition at line 59 of file G4HepRepFileSceneHandler.hh.
G4HepRepFileSceneHandler::G4HepRepFileSceneHandler | ( | G4VGraphicsSystem & | system, |
const G4String & | name | ||
) |
Definition at line 70 of file G4HepRepFileSceneHandler.cc.
References doneInitHit, doneInitTraj, drawingHit, drawingTraj, fileCounter, GetHepRepXMLWriter(), haveVisible, hepRepXMLWriter, hitAttDefs, hitAttValues, inPrimitives2D, trajAttDefs, trajAttValues, trajContext, warnedAbout2DMarkers, and warnedAbout3DText.
|
virtual |
Definition at line 93 of file G4HepRepFileSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 485 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttDef(), G4HepRepFileXMLWriter::addAttValue(), G4VSceneHandler::AddCompound(), G4HepRepFileXMLWriter::addInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), G4HepRepFileXMLWriter::addType(), CheckFileOpen(), G4VTrajectoryPoint::CreateAttValues(), G4VTrajectory::CreateAttValues(), doneInitTraj, drawingTraj, error, FatalException, G4VSceneHandler::fpModel, G4cout, G4endl, G4Exception(), G4VTrajectoryPoint::GetAttDefs(), G4VTrajectory::GetAttDefs(), G4VTrajectoryPoint::GetAuxiliaryPoints(), G4VisTrajContext::GetAuxPtsColour(), G4VisTrajContext::GetAuxPtsSize(), G4VisTrajContext::GetAuxPtsType(), G4VisTrajContext::GetAuxPtsVisible(), G4Colour::GetBlue(), G4VisTrajContext::GetDrawAuxPts(), G4VisTrajContext::GetDrawStepPts(), G4Colour::GetGreen(), G4VTrajectory::GetPoint(), G4VTrajectory::GetPointEntries(), G4VTrajectoryPoint::GetPosition(), G4Colour::GetRed(), G4VisTrajContext::GetStepPtsColour(), G4VisTrajContext::GetStepPtsSize(), G4VisTrajContext::GetStepPtsType(), G4VisTrajContext::GetStepPtsVisible(), hepRepXMLWriter, InitTrajectory(), G4HepRepFileXMLWriter::prevTypeName, G4Polymarker::squares, trajAttDefs, trajAttValues, and trajContext.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 850 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttDef(), G4HepRepFileXMLWriter::addAttValue(), G4VSceneHandler::AddCompound(), G4HepRepFileXMLWriter::addInstance(), G4HepRepFileXMLWriter::addType(), CheckFileOpen(), G4VHit::CreateAttValues(), doneInitHit, drawingHit, error, G4cout, G4endl, G4VHit::GetAttDefs(), hepRepXMLWriter, hitAttDefs, hitAttValues, and G4HepRepFileXMLWriter::prevTypeName.
|
inlinevirtual |
Reimplemented from G4VSceneHandler.
Definition at line 83 of file G4HepRepFileSceneHandler.hh.
References G4VSceneHandler::AddCompound().
|
inlinevirtual |
Reimplemented from G4VSceneHandler.
Definition at line 86 of file G4HepRepFileSceneHandler.hh.
References G4VSceneHandler::AddCompound().
|
private |
Definition at line 1278 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), G4HepRepFileXMLWriter::addInstance(), G4HepRepFileXMLWriter::addType(), CheckFileOpen(), drawingHit, drawingTraj, G4VSceneHandler::fpModel, G4VSceneHandler::fpViewer, G4VSceneHandler::fpVisAttribs, G4VSceneHandler::fReadyForTransients, G4cout, G4endl, G4Colour::GetBlue(), G4VisAttributes::GetColour(), G4VSceneHandler::GetColour(), G4HepRepMessenger::getCullInvisibles(), G4PhysicalVolumeModel::GetCurrentDepth(), G4PhysicalVolumeModel::GetCurrentLV(), G4PhysicalVolumeModel::GetCurrentMaterial(), G4PhysicalVolumeModel::GetCurrentPV(), G4Material::GetDensity(), G4PhysicalVolumeModel::GetDrawnPVPath(), G4VSolid::GetEntityType(), G4Colour::GetGreen(), G4HepRepMessenger::GetInstance(), G4VSolid::GetName(), G4Region::GetName(), G4VPhysicalVolume::GetName(), G4Material::GetName(), G4LogicalVolume::GetName(), G4Material::GetRadlen(), G4Colour::GetRed(), G4LogicalVolume::GetRegion(), G4LogicalVolume::GetSolid(), G4Material::GetState(), G4Visible::GetVisAttributes(), haveVisible, hepRepXMLWriter, G4LogicalVolume::IsRootRegion(), G4VisAttributes::IsVisible(), kg, kStateUndefined, m, m3, G4HepRepFileXMLWriter::prevTypeName, and G4HepRepFileXMLWriter::typeDepth.
Referenced by AddPrimitive(), and AddSolid().
|
virtual |
Implements G4VSceneHandler.
Definition at line 994 of file G4HepRepFileSceneHandler.cc.
References AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), haveVisible, hepRepXMLWriter, InitHit(), InitTrajectory(), inPrimitives2D, G4VisAttributes::IsVisible(), and warnedAbout2DMarkers.
|
virtual |
Implements G4VSceneHandler.
Definition at line 1082 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPrimitive(), G4cout, G4endl, G4Colour::GetBlue(), G4Colour::GetGreen(), G4VSceneHandler::GetMarkerSize(), G4Colour::GetRed(), G4Text::GetText(), G4VSceneHandler::GetTextColour(), G4Text::GetXOffset(), G4Text::GetYOffset(), haveVisible, hepRepXMLWriter, inPrimitives2D, warnedAbout3DText, and G4VSceneHandler::world.
|
virtual |
Implements G4VSceneHandler.
Definition at line 1138 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), G4VSceneHandler::GetMarkerSize(), G4VMarker::GetPosition(), G4VMarker::GetWorldRadius(), haveVisible, hepRepXMLWriter, InitHit(), inPrimitives2D, G4VisAttributes::IsVisible(), warnedAbout2DMarkers, and G4VSceneHandler::world.
|
virtual |
Implements G4VSceneHandler.
Definition at line 1184 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), G4VSceneHandler::GetMarkerSize(), G4VMarker::GetPosition(), G4VMarker::GetWorldRadius(), haveVisible, hepRepXMLWriter, InitHit(), inPrimitives2D, G4VisAttributes::IsVisible(), warnedAbout2DMarkers, and G4VSceneHandler::world.
|
virtual |
Implements G4VSceneHandler.
Definition at line 1230 of file G4HepRepFileSceneHandler.cc.
References AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), haveVisible, hepRepXMLWriter, InitHit(), and G4VisAttributes::IsVisible().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1035 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), G4VSceneHandler::GetMarkerSize(), haveVisible, hepRepXMLWriter, InitHit(), inPrimitives2D, G4VisAttributes::IsVisible(), warnedAbout2DMarkers, and G4VSceneHandler::world.
|
inlinevirtual |
Reimplemented from G4VSceneHandler.
Definition at line 108 of file G4HepRepFileSceneHandler.hh.
References G4VSceneHandler::AddPrimitive().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 151 of file G4HepRepFileSceneHandler.cc.
References AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), G4VSolid::GetName(), G4Box::GetXHalfLength(), G4Box::GetYHalfLength(), G4Box::GetZHalfLength(), haveVisible, hepRepXMLWriter, InitHit(), and G4VisAttributes::IsVisible().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 209 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), G4VSceneHandler::AddSolid(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4Cons::GetDeltaPhiAngle(), G4Cons::GetInnerRadiusMinusZ(), G4Cons::GetInnerRadiusPlusZ(), G4HepRepMessenger::GetInstance(), G4VSolid::GetName(), G4Cons::GetOuterRadiusMinusZ(), G4Cons::GetOuterRadiusPlusZ(), G4HepRepMessenger::getScale(), G4Cons::GetZHalfLength(), haveVisible, hepRepXMLWriter, InitHit(), G4VisAttributes::IsVisible(), G4INCL::Math::pi, and G4HepRepMessenger::renderCylAsPolygons().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 274 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), G4VSceneHandler::AddSolid(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4Tubs::GetDeltaPhiAngle(), G4Tubs::GetInnerRadius(), G4HepRepMessenger::GetInstance(), G4VSolid::GetName(), G4Tubs::GetOuterRadius(), G4HepRepMessenger::getScale(), G4Tubs::GetZHalfLength(), haveVisible, hepRepXMLWriter, InitHit(), G4VisAttributes::IsVisible(), G4INCL::Math::pi, and G4HepRepMessenger::renderCylAsPolygons().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 341 of file G4HepRepFileSceneHandler.cc.
References AddHepRepInstance(), G4HepRepFileXMLWriter::addPoint(), G4HepRepFileXMLWriter::addPrimitive(), drawingHit, drawingTraj, G4VSceneHandler::fObjectTransformation, G4VSceneHandler::fpVisAttribs, G4cout, G4endl, G4HepRepMessenger::getCullInvisibles(), G4HepRepMessenger::GetInstance(), G4VSolid::GetName(), G4Trd::GetXHalfLength1(), G4Trd::GetXHalfLength2(), G4Trd::GetYHalfLength1(), G4Trd::GetYHalfLength2(), G4Trd::GetZHalfLength(), haveVisible, hepRepXMLWriter, InitHit(), and G4VisAttributes::IsVisible().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 401 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 413 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 425 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 437 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 449 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 461 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 473 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 96 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::BeginModeling(), G4VisManager::CurrentTrajDrawModel(), G4VTrajectoryModel::GetContext(), G4VisManager::GetInstance(), and trajContext.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 110 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::BeginPrimitives2D(), G4cout, and G4endl.
|
private |
Definition at line 1504 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttDef(), G4HepRepFileXMLWriter::addAttValue(), G4UIcommand::ConvertToString(), fileCounter, G4cout, G4Date, G4endl, G4Version, G4HepRepMessenger::getFileDir(), G4HepRepMessenger::getFileName(), G4HepRepMessenger::GetInstance(), G4HepRepMessenger::getOverwrite(), hepRepXMLWriter, G4HepRepFileXMLWriter::isOpen, and G4HepRepFileXMLWriter::open().
Referenced by AddCompound(), and AddHepRepInstance().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1548 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::fpViewer.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 105 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::EndModeling().
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 118 of file G4HepRepFileSceneHandler.cc.
References G4VSceneHandler::EndPrimitives2D(), G4cout, G4endl, and inPrimitives2D.
G4HepRepFileXMLWriter * G4HepRepFileSceneHandler::GetHepRepXMLWriter | ( | ) |
Definition at line 1273 of file G4HepRepFileSceneHandler.cc.
References hepRepXMLWriter.
Referenced by G4HepRepFileSceneHandler().
void G4HepRepFileSceneHandler::InitHit | ( | ) |
Definition at line 971 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), G4HepRepFileXMLWriter::addInstance(), doneInitHit, hepRepXMLWriter, hitAttDefs, and hitAttValues.
Referenced by AddPrimitive(), and AddSolid().
void G4HepRepFileSceneHandler::InitTrajectory | ( | ) |
Definition at line 948 of file G4HepRepFileSceneHandler.cc.
References G4HepRepFileXMLWriter::addAttValue(), G4HepRepFileXMLWriter::addInstance(), doneInitTraj, hepRepXMLWriter, trajAttDefs, and trajAttValues.
Referenced by AddCompound(), and AddPrimitive().
|
private |
Definition at line 151 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().
|
private |
Definition at line 149 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitTrajectory().
|
private |
Definition at line 150 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), AddHepRepInstance(), AddPrimitive(), AddSolid(), and G4HepRepFileSceneHandler().
|
private |
Definition at line 148 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), AddHepRepInstance(), AddPrimitive(), AddSolid(), and G4HepRepFileSceneHandler().
|
private |
Definition at line 143 of file G4HepRepFileSceneHandler.hh.
Referenced by CheckFileOpen(), and G4HepRepFileSceneHandler().
|
staticprotected |
Definition at line 136 of file G4HepRepFileSceneHandler.hh.
|
private |
Definition at line 144 of file G4HepRepFileSceneHandler.hh.
Referenced by AddHepRepInstance(), AddPrimitive(), AddSolid(), and G4HepRepFileSceneHandler().
|
private |
Definition at line 139 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), AddHepRepInstance(), AddPrimitive(), AddSolid(), CheckFileOpen(), G4HepRepFileSceneHandler(), GetHepRepXMLWriter(), InitHit(), and InitTrajectory().
Definition at line 158 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().
|
private |
Definition at line 157 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().
|
private |
Definition at line 145 of file G4HepRepFileSceneHandler.hh.
Referenced by AddPrimitive(), EndPrimitives2D(), and G4HepRepFileSceneHandler().
Definition at line 156 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitTrajectory().
|
private |
Definition at line 155 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitTrajectory().
|
private |
Definition at line 153 of file G4HepRepFileSceneHandler.hh.
Referenced by AddCompound(), BeginModeling(), and G4HepRepFileSceneHandler().
|
private |
Definition at line 147 of file G4HepRepFileSceneHandler.hh.
Referenced by AddPrimitive(), and G4HepRepFileSceneHandler().
|
private |
Definition at line 146 of file G4HepRepFileSceneHandler.hh.
Referenced by AddPrimitive(), and G4HepRepFileSceneHandler().