Geant4  10.02.p02
G4HepRepFileSceneHandler Class Reference

#include <G4HepRepFileSceneHandler.hh>

+ Inheritance diagram for G4HepRepFileSceneHandler:
+ Collaboration diagram for G4HepRepFileSceneHandler:

Public Member Functions

 G4HepRepFileSceneHandler (G4VGraphicsSystem &system, const G4String &name)
 
virtual ~G4HepRepFileSceneHandler ()
 
void AddSolid (const G4Box &)
 
void AddSolid (const G4Cons &)
 
void AddSolid (const G4Tubs &)
 
void AddSolid (const G4Trd &)
 
void AddSolid (const G4Trap &)
 
void AddSolid (const G4Sphere &)
 
void AddSolid (const G4Para &)
 
void AddSolid (const G4Torus &)
 
void AddSolid (const G4Polycone &)
 
void AddSolid (const G4Polyhedra &)
 
void AddSolid (const G4VSolid &)
 
void AddCompound (const G4VTrajectory &)
 
void InitTrajectory ()
 
void AddCompound (const G4VHit &)
 
void InitHit ()
 
void AddCompound (const G4THitsMap< G4double > &hits)
 
void AddCompound (const G4VDigi &digi)
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polyhedron &)
 
void AddPrimitive (const G4Polymarker &)
 
void AddPrimitive (const G4Scale &scale)
 
void BeginModeling ()
 
void EndModeling ()
 
void BeginPrimitives2D (const G4Transform3D &objectTransformation)
 
void EndPrimitives2D ()
 
void ClearTransientStore ()
 
G4HepRepFileXMLWriterGetHepRepXMLWriter ()
 
- Public Member Functions inherited from G4VSceneHandler
 G4VSceneHandler (G4VGraphicsSystem &system, G4int id, const G4String &name="")
 
virtual ~G4VSceneHandler ()
 
virtual void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &)
 
virtual void PostAddSolid ()
 
virtual void BeginPrimitives (const G4Transform3D &objectTransformation)
 
virtual void EndPrimitives ()
 
virtual const G4VisExtentGetExtent () const
 
const G4StringGetName () const
 
G4int GetSceneHandlerId () const
 
G4int GetViewCount () const
 
G4VGraphicsSystemGetGraphicsSystem () const
 
G4SceneGetScene () const
 
const G4ViewerListGetViewerList () const
 
G4VModelGetModel () const
 
G4VViewerGetCurrentViewer () const
 
G4bool GetMarkForClearingTransientStore () const
 
G4bool IsReadyForTransients () const
 
G4bool GetTransientsDrawnThisEvent () const
 
G4bool GetTransientsDrawnThisRun () const
 
const G4Transform3DGetObjectTransformation () const
 
void SetName (const G4String &)
 
void SetCurrentViewer (G4VViewer *)
 
virtual void SetScene (G4Scene *)
 
G4ViewerListSetViewerList ()
 
void SetModel (G4VModel *)
 
void SetMarkForClearingTransientStore (G4bool)
 
void SetTransientsDrawnThisEvent (G4bool)
 
void SetTransientsDrawnThisRun (G4bool)
 
void SetObjectTransformation (const G4Transform3D &)
 
const G4ColourGetColour (const G4Visible &)
 
const G4ColourGetColor (const G4Visible &)
 
const G4ColourGetTextColour (const G4Text &)
 
const G4ColourGetTextColor (const G4Text &)
 
G4double GetLineWidth (const G4VisAttributes *)
 
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes *)
 
G4bool GetAuxEdgeVisible (const G4VisAttributes *)
 
G4int GetNoOfSides (const G4VisAttributes *)
 
G4double GetMarkerSize (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerDiameter (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerRadius (const G4VMarker &, MarkerSizeType &)
 
G4ModelingParametersCreateModelingParameters ()
 
void DrawEvent (const G4Event *)
 
void DrawEndOfRunModels ()
 
G4int IncrementViewCount ()
 
virtual void ClearStore ()
 
void AddViewerToList (G4VViewer *pView)
 
void RemoveViewerFromList (G4VViewer *pView)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 

Static Protected Attributes

static G4int fSceneIdCount = 0
 

Private Member Functions

void AddHepRepInstance (const char *primName, const G4Visible visible)
 
void CheckFileOpen ()
 

Private Attributes

G4HepRepFileXMLWriterhepRepXMLWriter
 
int fileCounter
 
G4bool haveVisible
 
G4bool inPrimitives2D
 
G4bool warnedAbout3DText
 
G4bool warnedAbout2DMarkers
 
G4bool drawingTraj
 
G4bool doneInitTraj
 
G4bool drawingHit
 
G4bool doneInitHit
 
const G4VisTrajContexttrajContext
 
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 G4VSolidCreateSectionSolid ()
 
virtual G4VSolidCreateCutawaySolid ()
 
void LoadAtts (const G4Visible &, G4AttHolder *)
 
- Protected Attributes inherited from G4VSceneHandler
G4VGraphicsSystemfSystem
 
const G4int fSceneHandlerId
 
G4String fName
 
G4int fViewCount
 
G4ViewerList fViewerList
 
G4VViewerfpViewer
 
G4ScenefpScene
 
G4bool fMarkForClearingTransientStore
 
G4bool fReadyForTransients
 
G4bool fTransientsDrawnThisEvent
 
G4bool fTransientsDrawnThisRun
 
G4bool fProcessingSolid
 
G4bool fProcessing2D
 
G4VModelfpModel
 
G4Transform3D fObjectTransformation
 
G4int fNestingDepth
 
const G4VisAttributesfpVisAttribs
 
const G4Transform3D fIdentityTransformation
 

Detailed Description

Definition at line 59 of file G4HepRepFileSceneHandler.hh.

Constructor & Destructor Documentation

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.

+ Here is the call graph for this function:

G4HepRepFileSceneHandler::~G4HepRepFileSceneHandler ( )
virtual

Definition at line 93 of file G4HepRepFileSceneHandler.cc.

Member Function Documentation

void G4HepRepFileSceneHandler::AddCompound ( const G4VTrajectory traj)
virtual
void G4HepRepFileSceneHandler::AddCompound ( const G4VHit hit)
virtual
void G4HepRepFileSceneHandler::AddCompound ( const G4THitsMap< G4double > &  hits)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 83 of file G4HepRepFileSceneHandler.hh.

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddCompound ( const G4VDigi digi)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 86 of file G4HepRepFileSceneHandler.hh.

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddHepRepInstance ( const char *  primName,
const G4Visible  visible 
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepFileSceneHandler::AddPrimitive ( const G4Polyline polyline)
virtual
void G4HepRepFileSceneHandler::AddPrimitive ( const G4Text text)
virtual
void G4HepRepFileSceneHandler::AddPrimitive ( const G4Polyhedron polyhedron)
virtual
void G4HepRepFileSceneHandler::AddPrimitive ( const G4Scale scale)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 108 of file G4HepRepFileSceneHandler.hh.

References G4VSceneHandler::AddPrimitive().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Box box)
virtual
void G4HepRepFileSceneHandler::AddSolid ( const G4Trap trap)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 401 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Sphere sphere)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 413 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Para para)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 425 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Torus torus)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 437 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Polycone polycone)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 449 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4Polyhedra polyhedra)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 461 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::AddSolid ( const G4VSolid solid)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 473 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::AddSolid(), G4cout, G4endl, and G4VSolid::GetName().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::BeginModeling ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 96 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::BeginModeling(), G4VisManager::CurrentTrajDrawModel(), G4VTrajectoryModel::GetContext(), G4VisManager::GetInstance(), and trajContext.

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::BeginPrimitives2D ( const G4Transform3D objectTransformation)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 110 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::BeginPrimitives2D(), G4cout, and G4endl.

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::CheckFileOpen ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepFileSceneHandler::ClearTransientStore ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 1548 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::fpViewer.

void G4HepRepFileSceneHandler::EndModeling ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 105 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::EndModeling().

+ Here is the call graph for this function:

void G4HepRepFileSceneHandler::EndPrimitives2D ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 118 of file G4HepRepFileSceneHandler.cc.

References G4VSceneHandler::EndPrimitives2D(), G4cout, G4endl, and inPrimitives2D.

+ Here is the call graph for this function:

G4HepRepFileXMLWriter * G4HepRepFileSceneHandler::GetHepRepXMLWriter ( )

Definition at line 1273 of file G4HepRepFileSceneHandler.cc.

References hepRepXMLWriter.

Referenced by G4HepRepFileSceneHandler().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4bool G4HepRepFileSceneHandler::doneInitHit
private

Definition at line 151 of file G4HepRepFileSceneHandler.hh.

Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().

G4bool G4HepRepFileSceneHandler::doneInitTraj
private
G4bool G4HepRepFileSceneHandler::drawingHit
private
G4bool G4HepRepFileSceneHandler::drawingTraj
private
int G4HepRepFileSceneHandler::fileCounter
private

Definition at line 143 of file G4HepRepFileSceneHandler.hh.

Referenced by CheckFileOpen(), and G4HepRepFileSceneHandler().

G4int G4HepRepFileSceneHandler::fSceneIdCount = 0
staticprotected

Definition at line 136 of file G4HepRepFileSceneHandler.hh.

G4bool G4HepRepFileSceneHandler::haveVisible
private
std::map<G4String,G4AttDef>* G4HepRepFileSceneHandler::hitAttDefs
private

Definition at line 158 of file G4HepRepFileSceneHandler.hh.

Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().

std::vector<G4AttValue>* G4HepRepFileSceneHandler::hitAttValues
private

Definition at line 157 of file G4HepRepFileSceneHandler.hh.

Referenced by AddCompound(), G4HepRepFileSceneHandler(), and InitHit().

G4bool G4HepRepFileSceneHandler::inPrimitives2D
private
std::map<G4String,G4AttDef>* G4HepRepFileSceneHandler::trajAttDefs
private
std::vector<G4AttValue>* G4HepRepFileSceneHandler::trajAttValues
private
const G4VisTrajContext* G4HepRepFileSceneHandler::trajContext
private
G4bool G4HepRepFileSceneHandler::warnedAbout2DMarkers
private

Definition at line 147 of file G4HepRepFileSceneHandler.hh.

Referenced by AddPrimitive(), and G4HepRepFileSceneHandler().

G4bool G4HepRepFileSceneHandler::warnedAbout3DText
private

Definition at line 146 of file G4HepRepFileSceneHandler.hh.

Referenced by AddPrimitive(), and G4HepRepFileSceneHandler().


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